反转 'password_reset_confirm'
Reverse for 'password_reset_confirm'
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')),
}
根据文档,https://django-registration.readthedocs.io/en/2.2/quickstart.html#quickstart:django.contrib.auth
必须在 INSTALLED_APPS
中,我建议在 registration
之前添加,以便包可以覆盖核心
如错误报告中所述,registration
必须早于 admin。不完全确定为什么,显然很难修复,因为这个包是由几个 Django 核心团队成员维护的:)。
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')),
}
根据文档,https://django-registration.readthedocs.io/en/2.2/quickstart.html#quickstart:django.contrib.auth
必须在 INSTALLED_APPS
中,我建议在 registration
之前添加,以便包可以覆盖核心
如错误报告中所述,registration
必须早于 admin。不完全确定为什么,显然很难修复,因为这个包是由几个 Django 核心团队成员维护的:)。