Opened 15 years ago

Closed 15 years ago

#13673 closed (worksforme)

DEBUG=False and 404 / Flatpages

Reported by: michael.miller@… 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 Michael Miller, 15 years ago

Needs documentation: set
Resolution: fixed
Status: newclosed

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

comment:2 by anonymous, 15 years ago

Resolution: fixed
Status: closedreopened

comment:3 by Russell Keith-Magee, 15 years ago

Resolution: worksforme
Status: reopenedclosed

I can't reproduce this. flatpages works fine for me, regardless of the value of DEBUG.

Note: See TracTickets for help on using tickets.
Back to Top