2013-07-11 22 views
1

我目前正在使用django註冊軟件包。我也配置了我的項目,如下圖所示,如何使用django-registration軟件包?

settings.py

EMAIL_USE_TLS = True 
EMAIL_HOST = 'smtp.yahoo.com' 
EMAIL_HOST_USER = '[email protected]' 
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', 
) 

urls.py

url(r'^accounts/', include('registration.backends.default.urls')), 

enter image description here

當我點擊註冊按鈕我網頁瀏覽器正在加載。但是服務器端沒有迴應,而且我的細節也存儲在數據庫中。請解決我的問題。謝謝..

回答