Opened 11 years ago

Closed 11 years ago

#20533 closed Uncategorized (duplicate)

Tutorial 3 content recommendation for 404 handler section

Reported by: aric.beaver@… Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords: ALLOWED_HOSTS, DEBUG, 404, 500
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Document in reference:
https://docs.djangoproject.com/en/1.5/intro/tutorial03/

Permalink in reference
https://docs.djangoproject.com/en/1.5/intro/tutorial03/#write-a-404-page-not-found-view

A description of the ALLOWED_HOSTS variable in "settings.py" would be applicable to this section because the ALLOWED_HOSTS variable is required if the DEBUG variable is False; as described in a comment above the ALLOWED_HOSTS line. Not mentioning this necessity at this step in the tutorial can cause confusion when creating a template for "404.html". The ALLOWED_HOSTS variable will cause a 500 error when incorrect when a novice user is expecting a 404 error. The ALLOWED_HOSTS variable should be set to 'localhost' for the tutorial.

Also see:
http://stackoverflow.com/questions/15128135/django-setting-debug-false-causes-500-error

Thanks,
Aric Beaver
aric.beaver@…

Change History (1)

comment:1 by Tim Graham, 11 years ago

Resolution: duplicate
Status: newclosed

Thanks, this issue has already been raised in #19875, but I will consider your suggestions in developing the patch.

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