summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-06-09 15:05:15 -0400
committerTim Graham <timograham@gmail.com>2013-06-09 15:06:23 -0400
commit46dacb5bb157ff78e21c19f1f1b109edf378ddcb (patch)
tree1824641cda564387575901330f88eb815ce12623 /docs/topics
parent3bd9852401cfbc8a1dfec4082303a5514ee69bf4 (diff)
[1.5.x] Fixed #19875 - Added warnings regarding DEBUG=False and empty ALLOWED_HOSTS
Backport of 4e94c84e50 from master
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/settings.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/topics/settings.txt b/docs/topics/settings.txt
index fa26297988..1cfcd262cd 100644
--- a/docs/topics/settings.txt
+++ b/docs/topics/settings.txt
@@ -17,6 +17,11 @@ Here are a couple of example settings::
DEFAULT_FROM_EMAIL = 'webmaster@example.com'
TEMPLATE_DIRS = ('/home/templates/mike', '/home/templates/john')
+.. note::
+
+ If you set :setting:`DEBUG` to ``False``, you also need to properly set
+ the :setting:`ALLOWED_HOSTS` setting.
+
Because a settings file is a Python module, the following apply:
* It doesn't allow for Python syntax errors.