[Answered ]-Django reporting 404 error on simple view?

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 andAPPEND_SLASHis set toTrue`.

Leave a comment