mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Extended docs about using the Loader class instead of the previously available function. Fixes #11.
This commit is contained in:
parent
692a77725d
commit
7449de7483
3 changed files with 21 additions and 6 deletions
|
|
@ -1,13 +1,28 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
1.1.1 (07-08-11)
|
||||
----------------
|
||||
|
||||
* Fixed bug in cache loading (again).
|
||||
|
||||
* Fixed bugs in the documentation.
|
||||
|
||||
.. note::
|
||||
|
||||
Since ``dbtemplates`` removed support for Django lower than 1.2 you
|
||||
have to use the template loader class in the ``TEMPLATE_LOADERS``
|
||||
(``'dbtemplates.loader.Loader'``) and **not** the previosly included
|
||||
function that ended with ``load_template_source``.
|
||||
|
||||
1.1 (07-06-11)
|
||||
--------------
|
||||
|
||||
* **BACKWARDS-INCOMPATIBLE** Requires Django 1.2 or higher.
|
||||
For previous Django versions use an older versions of dbtemplates, e.g.::
|
||||
For previous Django versions use an older versions of ``dbtemplates``,
|
||||
e.g.::
|
||||
|
||||
$ pip install django-dbtemplates<1.1
|
||||
$ pip install "django-dbtemplates<1.1"
|
||||
|
||||
* Added South migrations.
|
||||
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ Setup
|
|||
It should look something like this::
|
||||
|
||||
TEMPLATE_LOADERS = (
|
||||
'django.template.loaders.filesystem.load_template_source',
|
||||
'django.template.loaders.app_directories.load_template_source',
|
||||
'django.template.loaders.filesystem.Loader',
|
||||
'django.template.loaders.app_directories.Loader',
|
||||
'dbtemplates.loader.Loader',
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@ if not settings.configured:
|
|||
'dbtemplates',
|
||||
],
|
||||
TEMPLATE_LOADERS = (
|
||||
'django.template.loaders.filesystem.load_template_source',
|
||||
'django.template.loaders.app_directories.load_template_source',
|
||||
'django.template.loaders.filesystem.Loader',
|
||||
'django.template.loaders.app_directories.Loader',
|
||||
'dbtemplates.loader.Loader',
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue