mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Update docs/overview.txt
This commit is contained in:
parent
cb3fe58a6e
commit
3e18bc9784
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue