Я включаю аутентификацию URLconf в мои urls.py:
path('accounts/', include('django.contrib.auth.urls')),
И urlpatterns в django .contrib.auth.urls содержит это:
path('login/', views.LoginView.as_view(), name='login'),
path('logout/', views.LogoutView.as_view(), name='logout'),
path('password_change/', views.PasswordChangeView.as_view(), name='password_change'),
path('password_change/done/', views.PasswordChangeDoneView.as_view(), name='password_change_done'),
path('password_reset/', views.PasswordResetView.as_view(), name='password_reset'),
path('password_reset/done/', views.PasswordResetDoneView.as_view(), name='password_reset_done'),
path('reset/<uidb64>/<token>/', views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
path('reset/done/', views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
Но когда я * От 1012 * до 127.0.0.1:8000/accounts отладчик показывает мне эту ошибку:
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/accounts
Using the URLconf defined in locallibrary.urls, Django tried these URL patterns, in this order:
1. admin/
2. catalog/
3. ^static\/(?P<path>.*)$
The current path, accounts, didn't match any of these.
Почему django не видит мой URLconf?