Skip to content
Myr

Update djangojinja2.py

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

Updating to reflect new default global cache size

authored by topher86 · committed by topher86 · parent 85820fc · 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