Code

#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@…

Attachments (0)

Change History (1)

comment:1 Changed 11 months ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.