3π
β
βIs this correct behavior?β No, itβs not. In 4 years of Djangoing Iβve never seen this particular problem.
One way of testing that the CommonMiddleware is causing this is to comment it out in your settings.py
file, restart, and then see if you get the same behavior. It can also be instructive to use the standalone development server and stick print
βs in interesting places to see who is mangling it.
π€Peter Rowell
0π
Check your URLβs. You most likely have defined your URLβs a bit incorrectly. If you have
(r'^admin', include(admin.site.urls))
instead of the correct
(r'^admin/', include(admin.site.urls)),
You will see this type of 404 with the middleware
π€John
Source:stackexchange.com