Opened 11 years ago

Closed 11 years ago

#20592 closed Uncategorized (duplicate)

Improve the 'Write a 404 (page not found) view' section in the tutorial

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

Description

Hi.

I'm a django begginer, and when I was reading the 3rd part of your tutorial, I saw myself in some troubles when I tried to do what you said in the 'Write a 404 (page not found) view' section. As you said, I changed the 'DEBUG' value to False. But that is not enough, you also have to set the 'ALLOWED_HOSTS' variable after that change.

I consider that you should say that in the tutorial, because I tried everything without changing that value, and obviously it didn't work.

Thanks for your attention, I hope that this helped.

Change History (2)

comment:1 by anonymous, 11 years ago

comment:2 by Tim Graham, 11 years ago

Resolution: duplicate
Status: newclosed

A warning about that was recently added, see #19875.

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