Your URLs only match when there is a /
at the end, and you're testing without that.
By default, if an URL without ending slash isn't found, Django automatically retries the URL with a slash appended to it. You appear to have turned that off.
Check that:
- The
APPEND_SLASH
setting is True. django.middleware.common.CommonMiddleware
is in theMIDDLEWARE
setting.
manpreet
Best Answer
2 years ago
this is list of some of the URLs I am using for a Django project.
Except test/individual/graph api, no other url is found on server. I have corresponding functions written in views. I get following error, for reasons unknown.
The requested URL /pt_test_syllabus was not found on this server. Someone please tell what am i missing.