Opened 6 years ago

Closed 6 years ago

#20239 closed Uncategorized (duplicate)

Clarify 404 handling when DEBUG = FALSE in tutorial

Reported by: JamesDomingo Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The section titled
Write a 404 (page not found) view
in the tutorial for version 1.5 needs to clarify what happens when the DEBUG setting is FALSE.
In version 1.5, the
default value for ALLOWED_HOSTS changed.
If a developer following the tutorial creates a custom 404 template and sets DEBUG to FALSE, she will get a 500 server error.
To see the custom 404 template, she needs to change ALLOWED_HOSTS (e.g., ALLOWED_HOSTS = ['localhost'] ).

Change History (1)

comment:1 Changed 6 years ago by Tim Graham

Resolution: duplicate
Status: newclosed

Duplicate of #19875

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