title: TemplateDoesNotExist, registration/login.html Django
body: <p>Am using Django Authentication Model.
  The problem is when i visit /accounts/login, i get TemplateDoesNotExist: registration/login.html error message. Now the problem is i already specified a template for the LoginView.</p>
  
  <p>Here is my accounts/urls.py file</p>
  
  <pre><code>from django.urls import path
  from django.contrib.auth import views as auth_views
  from . import views
  app_name = 'accounts'
  urlpatterns = [
      path('login/',auth_views.LoginView.as_view(template_name='accounts/login.html'), name='login'),
      path('join/', views.SignupView.as_view(), name='join'),
      path('logout/', auth_views.LogoutView.as_view(), name='logout'),
  ]
  </code></pre>
  
  <p>The login template is located at accounts/templates/accounts/login.html</p>
  
  <p>And here is the TEMPLATES </p>
  
  <pre><code>TEMPLATES = [
  {
      'BACKEND': 'django.template.backends.django.DjangoTemplates',
      'DIRS': [os.path.join(BASE_DIR, 'templates')],
      'APP_DIRS': True,
      'OPTIONS': {
          'context_processors': [
              'django.template.context_processors.debug',
              'django.template.context_processors.request',
              'django.contrib.auth.context_processors.auth',
              'django.contrib.messages.context_processors.messages',
          ],
      },
  },
  </code></pre>
  
  <p>]</p>
  
  <p>My projects urls.py file has these</p>
  
  <pre><code>path('accounts/', include('django.contrib.auth.urls')),
  path('accounts/', include('accounts.urls')),
  </code></pre>