1
我使用django 1.5.1與Django註冊1.0。django註冊URL無法解析
我得到一個錯誤:
NoReverseMatch at /accounts/password/reset/
Reverse for 'django.contrib.auth.views.password_reset_done' with arguments '()' and keyword arguments '{}' not found.
Request Method: GET
Request URL: http://localhost:8000/accounts/password/reset/
Django Version: 1.5.1
Exception Type: NoReverseMatch
Exception Value:
Reverse for 'django.contrib.auth.views.password_reset_done' with arguments '()' and keyword arguments '{}' not found.
在我的urls.py我:
url(r'^accounts/', include('registration.backends.default.urls', namespace='re gistration', app_name='registration')),
與在此之前任何人都遇到問題?
你有沒有包含'django.contrib.auth.urls'? ([見這裏](https://github.com/django/django/blob/master/django/contrib/auth/urls.py))'registration.backends.default.urls'不提供登錄/註銷/密碼管理。 –
是的。將它包含在一個新行url(r'^ account /',include('django.contrib.auth.urls'), – Max