📌  相关文章
📜  django allauth 未找到“password_reset_confirm”的反向. 'password_reset_confirm' 不是有效的视图函数或模式名称. - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.254000             🧑  作者: Mango

代码示例1
from django.views.generic import TemplateView

urlpatterns += [
    path('rest-auth/', include('rest_auth.urls')),
    path('rest-auth/registration/', include('rest_auth.registration.urls')),

    url(r'^', include('django.contrib.auth.urls')),
    url(r'^rest-auth/password-reset/confirm/(?P[0-9A-Za-z_\-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
        TemplateView.as_view(template_name="password_reset_confirm.html"),
        name='password_reset_confirm'),
]