summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-12-17 22:51:42 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-12-28 17:02:30 +0100
commitd3205e3e2eb0202e7bdffaee3e2a80ad444b1ca2 (patch)
tree11cc72ef84a3c35a5736de34b01bd52106fce08f /docs/topics
parentcf0fd65ed42d5d4f0585da413db4b1cf7c6b0d1a (diff)
Deprecated TEMPLATE_DIRS.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/settings.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/topics/settings.txt b/docs/topics/settings.txt
index edec6c5ad5..e84b344e53 100644
--- a/docs/topics/settings.txt
+++ b/docs/topics/settings.txt
@@ -13,9 +13,9 @@ A settings file is just a Python module with module-level variables.
Here are a couple of example settings::
+ ALLOWED_HOSTS = ['www.example.com']
DEBUG = False
DEFAULT_FROM_EMAIL = 'webmaster@example.com'
- TEMPLATE_DIRS = ('/home/templates/mike', '/home/templates/john')
.. note::
@@ -188,8 +188,7 @@ Example::
from django.conf import settings
- settings.configure(DEBUG=True, TEMPLATE_DEBUG=True,
- TEMPLATE_DIRS=('/home/web-apps/myapp', '/home/web-apps/base'))
+ settings.configure(DEBUG=True, TEMPLATE_DEBUG=True)
Pass ``configure()`` as many keyword arguments as you'd like, with each keyword
argument representing a setting and its value. Each argument name should be all