title: how do i resolve the issue of no reverse match found?
body: <blockquote>
  <p>django.urls.exceptions.NoReverseMatch: Rever\Python\Python39\lib\site-packages\django\urls\resolvers.py&quot;, line 694, in _reverse
  se for 'user_login' not found. 'user_login'
  is not a valid view function or pattern name</p>
  </blockquote>
  <p>I think the main problem is at the URL mapping as i am really new to this, I am just practicing by watching video lectures and that guy is using some older version of django and the URL mapping used by that guy involves resular expressions i.e ^ and $ sign. He has put dollar sign at the end of a url link for the first time and i can not find any alternate of that in django 3+ as i am using Path function for the mapping instead of regular expressions.</p>
  <p>Views.py</p>
  <pre><code>def user_login(request):
  
  if request.method == 'POST':
      username = request.POST.get('username')
      password = request.POST.get('password')
  
      user = authenticate(username=username, password=password)
  
      if user:
          if user.is_active:
              login(request, user)
              return HttpResponseRedirect(reverse('index'))
  
          else:
              return HttpResponse(&quot;Account not Active&quot;)
  
      else:
          print(&quot;Someone tried to login and failed&quot;)
          print(&quot;Username: {} and Password {}&quot;.format(username, 
  password))
          return HttpResponse(&quot;invalid login details supplied!&quot;)
  
  else:
  
      return render(request, 'basicapp/login.html',{})
  </code></pre>
  <p>urls.py from basicapp</p>
  <pre><code>from django.conf.urls import url
  from django.urls import path
  from basicapp import views
  
  
  
   app_name = 'basicapp'
  
  urlpatterns = [
      path('register/', views.register, name= 'register'),
      path('user_login/', views.user_login, name= 'login'),
  ]
  </code></pre>
  <p>urls.py from project</p>
  <pre><code>from django.contrib import admin
  from django.urls import path, include
  from basicapp import views
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path ('',views.index, name ='index'),
      path ('basicapp/', include('basicapp.urls')),
      path ('logout/', views.user_logout, name='logout'),
      path ('special/', views.special, name = 'special'),
  ]
  </code></pre>
  <p>base template call</p>
  <pre><code>      &lt;div class=&quot;container&quot;&gt;
      &lt;ul class=&quot;nav navbar-nav&quot;&gt;
        &lt;li&gt;&lt;a class='navbar-brand' href=&quot;{% url 'index' %}&quot;&gt;DJANGO&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a class=&quot;navbar-link &quot; href=&quot;{% url 'admin:index' %}&quot;&gt;Admin&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a class=&quot;navbar-link&quot;  href=&quot;{% url 'basicapp:register' %}&quot;&gt;Register&lt;/a&gt;&lt;/li&gt;
  
        {% if user.is_authenticated %}
          &lt;li&gt;&lt;a class='navbar-link' href=&quot;{% url 'logout' %}&quot;&gt;Logout&lt;/a&gt;&lt;/li&gt;
        {% else %}
          &lt;li&gt;&lt;a class=&quot;navbar-link&quot; href=&quot;{% url 'basicapp:user_login' %}&quot;&gt;Login&lt;/a&gt;&lt;/li&gt;
        {% endif %}
  </code></pre>