【发布时间】:2017-06-25 11:47:39
【问题描述】:
Django==1.11.2
django-registration-redux==1.6
当我尝试重置密码 (http://localhost:8000/accounts/password/reset/) 时,我出现在一个标题为 Django 管理的页面上,并且下面有面包屑:主页 › 密码重置。所以,这是 Django 功能的一部分。不过,这可能很重要,我不知道如何。但无论如何,这不是 django-registration-redux 的功能。
我输入了一封电子邮件。得到这个:
Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name.
在 django-registration-redux 中使用了另一个名称。即auth_password_reset_confirm。
好吧,你能在这里踢我一脚吗?我的设置如下:
settings.py
INCLUDE_REGISTER_URL = True
INCLUDE_AUTH_URLS = True
urls.py
urlpatterns = [
url(r'^accounts/', include('registration.backends.default.urls')),
}
【问题讨论】:
-
提到here
-
是的,它确实有帮助。谢谢你。如果您写“通过 django.contrib.admin 进行注册”作为答案,我很乐意接受。
标签: django django-registration