I'm using django admin on my website. When I enter url without slash after admin (http://example.com/admin) I receive 404 error. I thought that django automatically added slash on the end of url. Of course when I enter url ended with slash it works fine. What I am doing wrong, or which settings I have to change. Thanks for any ideas.
Try setting APPEND_SLASH = True
in settings.py.
On second thoughts, I think the default setting is True
.
https://docs.djangoproject.com/en/dev/ref/settings/#append-slash
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With