Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/355.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何使用django注册包?_Python_Django_Django Registration - Fatal编程技术网

Python 如何使用django注册包?

Python 如何使用django注册包?,python,django,django-registration,Python,Django,Django Registration,我目前正在开发django注册软件包。我还配置了我的项目,如下所示 设置.py EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.yahoo.com' EMAIL_HOST_USER = 'myname@yahoo.com' EMAIL_HOST_PASSWORD = 'mypassword' EMAIL_PORT = 587 ACCOUNT_ACTIVATION_DAYS = 7 INSTALLED_APPS = ( 'django.contrib.au

我目前正在开发django注册软件包。我还配置了我的项目,如下所示

设置.py

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.yahoo.com'
EMAIL_HOST_USER = 'myname@yahoo.com'
EMAIL_HOST_PASSWORD = 'mypassword'
EMAIL_PORT = 587

ACCOUNT_ACTIVATION_DAYS = 7
INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'registration',
)
url(r'^accounts/', include('registration.backends.default.urls')),
url.py

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.yahoo.com'
EMAIL_HOST_USER = 'myname@yahoo.com'
EMAIL_HOST_PASSWORD = 'mypassword'
EMAIL_PORT = 587

ACCOUNT_ACTIVATION_DAYS = 7
INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'registration',
)
url(r'^accounts/', include('registration.backends.default.urls')),


单击“注册”按钮时,我的web浏览器正在加载。但服务器端没有响应,我的详细信息也存储在数据库中。请解决我的问题。谢谢。

听起来在发送注册电子邮件时可能会挂起。根据雅虎的邮件帮助,你的服务器设置不正确

发送服务器:smtp.mail.yahoo.com