【发布时间】:2013-07-06 12:35:36
【问题描述】:
我正在使用 django 1.5.1 和 django-registration 1.0。
我收到一个错误:
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吗? (see it here)registration.backends.default.urls不提供登录/注销/密码管理。 -
是的。将其包含在新行中 url(r'^account/', include('django.contrib.auth.urls'),
标签: django django-registration