当前路径account / password_reset /与以下任何路径都不匹配

时间:2019-03-13 18:06:46

标签: django-2.1

Page not found (404)
Request Method: GET
Request URL:    http://127.0.0.1:8000/accounts/password_reset/
Using the URLconf defined in Roland_web.urls, Django tried these URL patterns, in this order:

这是代码部分:

from django.conf.urls import url
from django.contrib.auth.views import LoginView, LogoutView, PasswordResetView, PasswordResetDoneView
from .import views 

urlpatterns = [
    url(r'^password_reset$', PasswordResetView, name='PasswordResetView'),
    url(r'^password_reset/done$', PasswordResetDoneView, name='PasswordResetDoneView')
]

0 个答案:

没有答案