diff --git a/django/conf/project_template/project_name/settings.py b/django/conf/project_template/project_name/settings.py
index efe8091..15d2991 100644
|
a
|
b
|
DEBUG = True
|
| 24 | 24 | |
| 25 | 25 | TEMPLATE_DEBUG = True |
| 26 | 26 | |
| | 27 | # required if DEBUG is False |
| 27 | 28 | ALLOWED_HOSTS = [] |
| 28 | 29 | |
| 29 | 30 | |
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt
index 1203691..6193ec4 100644
|
a
|
b
|
template for all 404 errors when :setting:`DEBUG` is set to ``False`` (in your
|
| 473 | 473 | settings module). If you do create the template, add at least some dummy |
| 474 | 474 | content like "Page not found". |
| 475 | 475 | |
| | 476 | .. warning:: |
| | 477 | |
| | 478 | If :setting:`DEBUG` is set to ``False``, all responses will be |
| | 479 | "Bad Request (400)" unless you specify the proper :setting:`ALLOWED_HOSTS` |
| | 480 | as well (something like ``['localhost', '127.0.0.1']`` for |
| | 481 | local development). |
| | 482 | |
| 476 | 483 | A couple more things to note about 404 views: |
| 477 | 484 | |
| 478 | 485 | * If :setting:`DEBUG` is set to ``True`` (in your settings module) then your |
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index b8ebc16..748b2bf 100644
|
a
|
b
|
It is also important to remember that when running with :setting:`DEBUG`
|
| 852 | 852 | turned on, Django will remember every SQL query it executes. This is useful |
| 853 | 853 | when you're debugging, but it'll rapidly consume memory on a production server. |
| 854 | 854 | |
| | 855 | Finally, if :setting:`DEBUG` is ``False``, you also need to properly set |
| | 856 | the :setting:`ALLOWED_HOSTS` setting. Failing to do so will result in all |
| | 857 | requests being returned as "Bad Request (400)". |
| | 858 | |
| 855 | 859 | .. _django/views/debug.py: https://github.com/django/django/blob/master/django/views/debug.py |
| 856 | 860 | |
| 857 | 861 | .. setting:: DEBUG_PROPAGATE_EXCEPTIONS |
diff --git a/docs/topics/settings.txt b/docs/topics/settings.txt
index fa26297..1cfcd26 100644
|
a
|
b
|
Here are a couple of example settings::
|
| 17 | 17 | DEFAULT_FROM_EMAIL = 'webmaster@example.com' |
| 18 | 18 | TEMPLATE_DIRS = ('/home/templates/mike', '/home/templates/john') |
| 19 | 19 | |
| | 20 | .. note:: |
| | 21 | |
| | 22 | If you set :setting:`DEBUG` to ``False``, you also need to properly set |
| | 23 | the :setting:`ALLOWED_HOSTS` setting. |
| | 24 | |
| 20 | 25 | Because a settings file is a Python module, the following apply: |
| 21 | 26 | |
| 22 | 27 | * It doesn't allow for Python syntax errors. |