Quantcast
Channel: How to make trailing slash optional in django - Stack Overflow
Viewing all articles
Browse latest Browse all 3

How to make trailing slash optional in django

$
0
0

I have a django app. In the app I have a url that looks like:-

path('url/', views.appmain, name="main")

The problem is that the trailing slash is required. I want to make the slash optional and the url accessible both with or without the slash.I checked APPEND_SLASH but it doesn't work. What's the solution for it.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>