Renames the Jinja2 extension for Python 2.7 compatibility.
This commit is contained in:
parent
04afa3f439
commit
01163c1f29
|
@ -72,4 +72,4 @@ class CachalotExtension(Extension):
|
|||
return out
|
||||
|
||||
|
||||
ext = CachalotExtension
|
||||
cachalot = CachalotExtension
|
|
@ -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:
|
||||
|
|
|
@ -111,7 +111,7 @@ TEMPLATES = [
|
|||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'extensions': [
|
||||
'cachalot.jinja2.ext',
|
||||
'cachalot.jinja2ext.cachalot',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue