title: NameError: name 'views' is not defined in django 2.2.3 & python 3.7.0
body: <p>I'm doing login and signup in Django but I'm getting the following error. Please help me in solving it.</p>
  <p><strong>File &quot;/home/mritunjay/project/pr/fitbit/accounts/urls.py&quot;, line 7, in 
  path('', views.home, name=&quot;home&quot;),
  NameError: name 'views' is not defined</strong></p>
  <p>Here <strong>urls.py (app)</strong></p>
  <pre><code>from django.urls import path
  
  from accounts.views import home, SignUpView
  
  app_name = &quot;accounts&quot;
  
  
  urlpatterns = [
  
      path('', views.home, name=&quot;home&quot;),
      path('signup/', SignUpView.as_view(), name='signup'),
      path('login/', views.login, name='login'),
      
  ]
  </code></pre>
  <p>Here <strong>views.py</strong> (app)</p>
  <pre><code>from django.shortcuts import render
  
  from django.urls import reverse_lazy
  
  from django.views.generic import CreateView
  
  from accounts.forms import SignUpForm
  
  from django.contrib.auth.models import User
  
  
  class SignUpView(CreateView):
  
      success_url = reverse_lazy('login')
  
      template_name = 'templates/signup.html'
  
  def home(request):
  
      return render(request, &quot;home.html&quot;, {})
  </code></pre>
  <p>Here <strong>urls.py</strong> (project)</p>
  <pre><code>from django.contrib import admin
  from django.urls import path, include
  
  from django.contrib.auth import views as auth_views
  
  from django.views.generic import TemplateView
  
  #from accounts import urls
  
  urlpatterns = [
  
      path('admin/', admin.site.urls),
      path('', include('accounts.urls')),
  
      # Main Page
  
      path('', TemplateView.as_view(template_name='home.html'), name='home'),
  
      # Login and Logout
  
      path('login/', auth_views.LoginView.as_view(redirect_authenticated_user=True, template_name='templates/login.html'), name='login'),
  
      path('logout/', auth_views.LogoutView.as_view(next_page='home'), name='logout'),
  ]
  </code></pre>
  <p>These are code where **NameError: name 'views' is not defined
  ** is showing in <strong>urls.py(app)</strong></p>
  <p>Please help me in this.</p>