Migrate project from Django 1.8 to 1.11 and TemplateDoesNotExist at /accounts/login/

i am beginner in Python and Django. I must update project from Django 1.8 to 1.11 (and in past to 2,3,4). I make update my requirements file and pip.

When I write in WSL: ./.venvs/bin/python3 manage.py runserver

I have error i browser:

TemplateDoesNotExist at /accounts/login/
_accounts/login.html
Request Method: GET
Request URL:    http://127.0.0.1:8000/accounts/login/?next=/
Django Version: 1.11
Exception Type: TemplateDoesNotExist
Exception Value:    
_accounts/login.html

my urls.py:


from django.conf import settings
from django.views.generic.base import TemplateView
from django.conf.urls import include, url
from django.contrib.auth.views import login

from go.accounts.decorators import check_login_abuse
from go.accounts.forms import AuthenticationForm, PasswordResetForm


from go.insurance.views import index

urlpatterns = [
    url(r'^$', index),
 url(r'^accounts/login/$', check_login_abuse(login),
        {'template_name': 'accounts/login.html', 'authentication_form': AuthenticationForm}),
    url(r'^accounts/logout/$', logout, {'template_name': 'accounts/logout.html'}),
]

How can i repair this problem? I use Python 3.8

Back to Top