Skip to content

Commit

Permalink
added JINJA2_EXTENSIONS setting variable to init_params
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Gemmill committed Aug 5, 2012
1 parent dd0f2c8 commit 6eb0090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_jinja/base.py
Expand Up @@ -226,7 +226,7 @@ def __getitem__(self, item, value): #for reciprocity with __setitem__
initial_params = {
'autoescape': JINJA2_AUTOESCAPE,
'loader': FileSystemLoader(app_directories.app_template_dirs + settings.TEMPLATE_DIRS),
'extensions':['jinja2.ext.i18n', 'jinja2.ext.autoescape'],
'extensions': JINJA2_EXTENSIONS + ['jinja2.ext.i18n', 'jinja2.ext.autoescape'],
}

initial_params.update(JINJA2_ENVIRONMENT_OPTIONS)
Expand Down

0 comments on commit 6eb0090

Please sign in to comment.