title: Python Django urls not working how they should?
body: <pre><code>from django.contrib import admin
  from django.urls import path
  
  import main.views
  urlpatterns = [
      path('', main.views.index, name="index"),
      path('story/', main.views.story, name="story"),
      path('haxs/', main.views.haxs, name="haxs"),
      path('contact/', main.views.contact, name="contact"),
      path('admin/', admin.site.urls),
  ]
  </code></pre>
  
  <p>.</p>
  
  <pre><code>&lt;li class="nav-item"&gt;&lt;a class="nav-link" href="/"&gt;home&lt;/a&gt;&lt;/li&gt;
  &lt;li class="nav-item"&gt;&lt;a class="nav-link" href="story/"&gt;our story&lt;/a&gt;&lt;/li&gt;
  &lt;li class="nav-item"&gt;&lt;a class="nav-link" href="haxs/"&gt;haxs&lt;/a&gt;&lt;/li&gt;
  &lt;li class="nav-item"&gt;&lt;a class="nav-link" href="contact/"&gt;contact us&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>I am working on a python django website and my urls are not working properly. I have included my urls.py and the nav links which are the same on each page. From home I can go to all the other pages and from the other pages I can go back to home. </p>
  
  <p>My problem is when I go from for example: haxs to contact it does not work and the code url becomes "<a href="http://127.0.0.1:8000/haxs/story/" rel="nofollow noreferrer">http://127.0.0.1:8000/haxs/story/</a>" when it should just be "<a href="http://127.0.0.1:8000/story/" rel="nofollow noreferrer">http://127.0.0.1:8000/story/</a>" . It is like that with  our story/haxs/contact, I can not go between them pages. How do I fix this?</p>