title: TemplateDoesNotExist at /accounts/login/ login.html
body: <p>Imm trying to use default django login system. It gives me error that my login.html templates does not exist.</p>
  <p>I have my login templates saved in a root directory..&gt; templates&gt;registration&gt;login.html</p>
  <p>Imm using custom user models and token authentication..</p>
  <p>Here's what i tried ..&gt;</p>
  <h1>account urls.py</h1>
  <pre><code>from django.contrib.auth import views as auth_views
  from django.conf.urls import url
  from django.urls import path 
  
  
  urlpatterns = [
      path(&quot;login/&quot;, auth_views.LoginView.as_view(template_name = &quot;login.html&quot;), name='login'),
      path(&quot;logout/&quot;, auth_views.LogoutView.as_view(), name='logout'),
  ]
  </code></pre>
  <h1>Main App Urls.py</h1>
  <pre><code>from django.contrib import admin
  from django.urls import path, include
  
  from rest_framework.urlpatterns import format_suffix_patterns
  
  from django.conf.urls.static import static
  from django.conf import settings
  from django.conf.urls import url
  
  from articles.views import ArticleDetail, ArticleList
  from account.views import AccountList
  
  from rest_framework.authtoken import views
  
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('article/', ArticleList.as_view()),
      path('article/&lt;int:pk&gt;/', ArticleDetail.as_view()),
      path('accounts/', AccountList.as_view()),
      path('accounts/', include('account.urls'))
  ]
  
  urlpatterns += static(settings.MEDIA_URL,
                                document_root=settings.MEDIA_ROOT)
  
  urlpatterns = format_suffix_patterns(urlpatterns)
  </code></pre>
  <h1>Templates dir in settings.py#</h1>
  <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>Does using a custom user models and Token auth effects default login system ?</p>