Opened 2 years ago

Closed 2 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



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 Changed 2 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 2 years ago by timo

  • Resolution set to duplicate
  • Status changed from new to closed

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

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