Opened 15 years ago
Closed 15 years ago
#13673 closed (worksforme)
DEBUG=False and 404 / Flatpages
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | 1.2 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | yes |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Flatpages and 404 Errors work as expected when running in DEBUG=True mode.
Setting DEBUG=False disables flatpages and 404 errors return the correct 404 page but with 200 Http Code and not 404 code.
Change History (3)
comment:1 by , 15 years ago
Needs documentation: | set |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:3 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
I can't reproduce this. flatpages works fine for me, regardless of the value of DEBUG.
Note:
See TracTickets
for help on using tickets.
one should mention in the docs that when defining own handler404/handler500 in the settings.py that these views do return with HttpResponseNotFound or HttpResponseServerError