1👍
This should match urls without trailing slash:
r'^(?P<full_slug>[-\w/]+)/$'
You can redirect this matches to full_slug + “/”.
- [Answered ]-Django with Apache : Global variable in view.py
- [Answered ]-How to use Ajax(?) in Django to update an image from the server
- [Answered ]-MongoDB and dynamic html forms
- [Answered ]-Django: Accessing OneToOneField in template
1👍
Turns out my pattern was off slightly. The correct pattern in the URLConf is (r'^(?P<full_slug>[-\w/]+/)$'
Source:stackexchange.com