Renames the Jinja2 extension for Python 2.7 compatibility.

This commit is contained in:
Bertrand Bordage 2016-09-13 20:30:18 +02:00
parent 04afa3f439
commit 01163c1f29
3 changed files with 3 additions and 3 deletions

View File

@ -72,4 +72,4 @@ class CachalotExtension(Extension):
return out
ext = CachalotExtension
cachalot = CachalotExtension

View File

@ -222,7 +222,7 @@ Jinja2 statement and function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A Jinja2 extension for django-cachalot can be used, simply add
``''cachalot.jinja2.ext','`` to the ``'extensions'`` list of the ``OPTIONS``
``''cachalot.jinja2ext.cachalot','`` to the ``'extensions'`` list of the ``OPTIONS``
dict in the Django ``TEMPLATES`` settings.
It provides:

View File

@ -111,7 +111,7 @@ TEMPLATES = [
'APP_DIRS': True,
'OPTIONS': {
'extensions': [
'cachalot.jinja2.ext',
'cachalot.jinja2ext.cachalot',
],
},
}