Skip to content
Myr

Merge pull request #362 from topher86/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update djangojinja2.py

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 15e78c6, 0741329 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:ext/djangojinja2.py+1 added-1 removed
43 unmodified lines
44 """Create a new Jinja2 environment."""45 searchpath = list(settings.JINJA2_TEMPLATE_DIRS)46 return Environment(loader=FileSystemLoader(searchpath),47 auto_reload=settings.TEMPLATE_DEBUG,48 cache_size=getattr(settings, 'JINJA2_CACHE_SIZE', 50),48 cache_size=getattr(settings, 'JINJA2_CACHE_SIZE', 400),49 extensions=getattr(settings, 'JINJA2_EXTENSIONS', ()))505152def get_template(template_name, globals=None):
34 unmodified lines