diff --git a/cachalot/jinja2.py b/cachalot/jinja2ext.py similarity index 98% rename from cachalot/jinja2.py rename to cachalot/jinja2ext.py index 16a0511..b189b62 100644 --- a/cachalot/jinja2.py +++ b/cachalot/jinja2ext.py @@ -72,4 +72,4 @@ class CachalotExtension(Extension): return out -ext = CachalotExtension +cachalot = CachalotExtension diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 1788de5..a93de8b 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -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: diff --git a/settings.py b/settings.py index 7a9430e..1db1a21 100644 --- a/settings.py +++ b/settings.py @@ -111,7 +111,7 @@ TEMPLATES = [ 'APP_DIRS': True, 'OPTIONS': { 'extensions': [ - 'cachalot.jinja2.ext', + 'cachalot.jinja2ext.cachalot', ], }, }