Update docs/overview.txt

This commit is contained in:
bmihelac 2012-01-09 13:12:19 +01:00
parent cb3fe58a6e
commit 3e18bc9784

View file

@ -30,11 +30,16 @@ Setup
It should look something like this::
TEMPLATE_LOADERS = (
'dbtemplates.loader.Loader',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'dbtemplates.loader.Loader',
)
Order of TEMPLATE_LOADERS is important. In the former example, templates from database
will be used as a fallback (ie. when template does not exists in other locations).
If you want template from database to be used to override templates in other locations,
put ``dbtemplates.loader.Loader`` at beginning of ``TEMPLATE_LOADERS`` settting.
4. Sync your database ``python manage.py syncdb``
5. Restart your Django server