diff options
| author | Tim Graham <timograham@gmail.com> | 2013-06-09 15:05:15 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-06-09 15:06:23 -0400 |
| commit | 46dacb5bb157ff78e21c19f1f1b109edf378ddcb (patch) | |
| tree | 1824641cda564387575901330f88eb815ce12623 /docs/intro | |
| parent | 3bd9852401cfbc8a1dfec4082303a5514ee69bf4 (diff) | |
[1.5.x] Fixed #19875 - Added warnings regarding DEBUG=False and empty ALLOWED_HOSTS
Backport of 4e94c84e50 from master
Diffstat (limited to 'docs/intro')
| -rw-r--r-- | docs/intro/tutorial03.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index 8f1e5f6a1c..539a5684cc 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -468,6 +468,13 @@ template for all 404 errors when :setting:`DEBUG` is set to ``False`` (in your settings module). If you do create the template, add at least some dummy content like "Page not found". +.. warning:: + + If :setting:`DEBUG` is set to ``False``, all responses will be + "Bad Request (400)" unless you specify the proper :setting:`ALLOWED_HOSTS` + as well (something like ``['localhost', '127.0.0.1']`` for + local development). + A couple more things to note about 404 views: * If :setting:`DEBUG` is set to ``True`` (in your settings module) then your |
