2👍
✅
For some reason your settings seem to override the default for either APPEND_SLASH
or MIDDLEWARE_CLASSES
.
Opening http://example.com/setup
should cause a redirect to http://example.com/setup/
, but somehow it doesn’t for you.
Note that the latter URL is matched by your urls.py
while the former is not (as should be the case).
The above should work if ‘CommonMiddleWareis enabled and
APPEND_SLASHis set to
True`.
Source:stackexchange.com