summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial02.txt
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-02-23 09:19:32 -0500
committerTim Graham <timograham@gmail.com>2013-02-23 09:19:32 -0500
commit1b7fb29dfb8579dc627208b8ca6500b5341489a9 (patch)
tree6a3e33edab6c7d59aae567af6aba18452ba2fba1 /docs/intro/tutorial02.txt
parent6bbf4e57c8b250d09a70d3d840531a42147705e9 (diff)
Changed "mysite/mytemplates/" -> "mysite/templates" in tutorial.
Thanks James Pic.
Diffstat (limited to 'docs/intro/tutorial02.txt')
-rw-r--r--docs/intro/tutorial02.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index 966921f8a5..4382602c54 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -404,7 +404,7 @@ system.
Customizing your *project's* templates
--------------------------------------
-Create a ``mytemplates`` directory in your project directory. Templates can
+Create a ``templates`` directory in your project directory. Templates can
live anywhere on your filesystem that Django can access. (Django runs as
whatever user your server runs.) However, keeping your templates within the
project is a good convention to follow.
@@ -412,13 +412,12 @@ project is a good convention to follow.
Open your settings file (``mysite/settings.py``, remember) and add a
:setting:`TEMPLATE_DIRS` setting::
- TEMPLATE_DIRS = (os.path.join(BASE_DIR, 'mytemplates'),)
+ TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
-Don't forget the trailing comma. :setting:`TEMPLATE_DIRS` is a tuple of
-filesystem directories to check when loading Django templates; it's a search
-path.
+:setting:`TEMPLATE_DIRS` is an iterable of filesystem directories to check when
+loading Django templates; it's a search path.
-Now create a directory called ``admin`` inside ``mytemplates``, and copy the
+Now create a directory called ``admin`` inside ``templates``, and copy the
template ``admin/base_site.html`` from within the default Django admin
template directory in the source code of Django itself
(``django/contrib/admin/templates``) into that directory.