mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.7.x] Fixed #24519 -- Clarified location of templates directory in tutorial 2.
Backport of 2acf9d099d29f45c829ee0127e55b7cfdd201995 from master
This commit is contained in:
parent
db4e160754
commit
da07f4b08f
@ -482,10 +482,10 @@ system.
|
|||||||
Customizing your *project's* templates
|
Customizing your *project's* templates
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
||||||
Create a ``templates`` directory in your project directory. Templates can
|
Create a ``templates`` directory in your project directory (the one that
|
||||||
live anywhere on your filesystem that Django can access. (Django runs as
|
contains ``manage.py``). Templates can live anywhere on your filesystem that
|
||||||
whatever user your server runs.) However, keeping your templates within the
|
Django can access. (Django runs as whatever user your server runs.) However,
|
||||||
project is a good convention to follow.
|
keeping your templates within the project is a good convention to follow.
|
||||||
|
|
||||||
Open your settings file (:file:`mysite/settings.py`, remember) and add a
|
Open your settings file (:file:`mysite/settings.py`, remember) and add a
|
||||||
:setting:`TEMPLATE_DIRS` setting:
|
:setting:`TEMPLATE_DIRS` setting:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user