1👍
✅
The Django URL resolver will return the first URL pattern that matches the incoming request. The regex for your ‘main’ view r"$"
will match ANY incoming request since you are only looking for $
which is an end of string character.
You need to alter your ‘main’ URL regex to be r'^$'
.
Alternatively, if you would like a catch-all view, you could move the ‘main’ view to the bottom of your URLs
Source:stackexchange.com