Django URL without trailing slash not working
<p><a href="https://i.stack.imgur.com/luW58.png" rel="noreferrer"><img src="https://i.stack.imgur.com/luW58.png" alt="Updated Page not found (404)"></a></p>

<p>This is a silly problem. I just created a project and have been trying to figure out this problem.</p>

<pre><code>from django.conf.urls import url
from django.views.generic import TemplateView

urlpatterns = [
    url(r'^$', TemplateView.as_view(template_name="index.html")),
    url(r'^about$', TemplateView.as_view(template_name="about.html")),
    url(r'^contact$', TemplateView.as_view(template_name="contact.html"), name="contact"),
    url(r'^test$', TemplateView.as_view(template_name="test_start"), name="test_start"),
    url(r'^test/sample$', TemplateView.as_view(template_name="test_start"), name="test_start"),
]
</code></pre>

<p>is included into</p>

<pre><code>from django.conf.urls import url, include
from django.contrib import admin

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^', include('frontend.urls'))
]
</code></pre>

<p>When I go to <code>localhost:8000/about</code>, I get redirected to <code>localhost:8000/about/</code> and there I get 404 Not Found.</p>

<p>UPDATE: I added more URLs into my URLconf.</p>

<p>UPDATE 2: I meant to not include trailing slashes. My apologies.</p>

<p>UPDATE 3: I opened the same URL in Firefox and the URL works like I intend. Could this be a problem with redirection and browser cache?</p>