从csv导入用户失败

csv文件格式
email@qq.com,密码
导入用户后提示Page unavailable
日志意思是用户密码不对?需要什么样的书写格式?
[ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /useradmin/batchadduser/
Traceback (most recent call last):
File “/opt/seafile/seafile-server-5.1.1/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/handlers/base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/opt/seafile/seafile-server-5.1.1/seahub/seahub/auth/decorators.py”, line 26, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/opt/seafile/seafile-server-5.1.1/seahub/seahub/base/decorators.py”, line 25, in _decorated
return func(request, *args, **kwargs)
File “/opt/seafile/seafile-server-5.1.1/seahub/seahub/views/sysadmin.py”, line 2114, in batch_add_user
‘password’: password,
File “/opt/seafile/seafile-server-5.1.1/seahub/seahub/utils/mail.py”, line 34, in send_html_email_with_dj_template
backend=backend)
File “/opt/seafile/seafile-server-5.1.1/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/mail.py”, line 152, in send
render_on_delivery, commit=commit, backend=backend)
File “/opt/seafile/seafile-server-5.1.1/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/mail.py”, line 89, in create
email.save()
File “/opt/seafile/seafile-server-5.1.1/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/models.py”, line 149, in save
self.full_clean()
File “/opt/seafile/seafile-server-5.1.1/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/db/models/base.py”, line 1171, in full_clean
raise ValidationError(errors)
ValidationError: {‘from_email’: [u’\u6b64\u5b57\u6bb5\u4e0d\u80fd\u4e3a\u7a7a\u3002’]}

你好,

把 seahub_settings.py 中邮件发送相关的配置注释掉就可以了。

非常感谢,问题已成功解决。电话打扰您实在抱歉。再次感谢先生的帮助。

打开 seahub_settings.py ,注释掉email相关配置,重启服务

#EMAIL_USE_TLS                       = False
#EMAIL_HOST                          = 'localhost'
#EMAIL_HOST_USER                     = ''
#EMAIL_HOST_PASSWORD                 = ''
#EMAIL_PORT                          = '25'
#DEFAULT_FROM_EMAIL                  = EMAIL_HOST_USER
#SERVER_EMAIL                        = EMAIL_HOST_USER