我目前正在研究 django-registration 包。我还配置了我的项目,如下所示,
设置.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',
)
网址.py
url(r'^accounts/', include('registration.backends.default.urls')),
当我单击注册按钮时,我的网络浏览器正在加载。但是服务器端没有响应,我的详细信息也存储在数据库中。请解决我的问题。谢谢..