mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Merge pull request #19 from bmihelac/patch-2
Fix typo in docs - ``dbtemplates.loader.Loader`` should be first in ``TEMPLATE_LOADERS``.
This commit is contained in:
commit
b13ffbb248
1 changed files with 5 additions and 0 deletions
|
|
@ -35,6 +35,11 @@ Setup
|
|||
'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