From 7449de74830aea3045388cb9e289b4bd0401ed00 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 8 Jul 2011 14:56:24 +0200 Subject: [PATCH] Extended docs about using the Loader class instead of the previously available function. Fixes #11. --- docs/changelog.txt | 19 +++++++++++++++++-- docs/overview.txt | 4 ++-- runtests.py | 4 ++-- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 7cd4a85..5a78419 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -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. diff --git a/docs/overview.txt b/docs/overview.txt index 2465a3c..c1229f4 100644 --- a/docs/overview.txt +++ b/docs/overview.txt @@ -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', ) diff --git a/runtests.py b/runtests.py index e0d6ef6..68b0b6c 100644 --- a/runtests.py +++ b/runtests.py @@ -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', ) )