diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2008-09-16 11:02:34 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2008-09-16 11:02:34 +0200 |
commit | 110e4c2ad2ee14e3bc69bbf300be2940fd7af6d4 (patch) | |
tree | 3fe62c4287e0533e95b62cd419350dcc431924ef /ext | |
parent | 35f8d2de76c61cb4f52b1e4f4a8125ce17b77355 (diff) | |
download | jinja2-110e4c2ad2ee14e3bc69bbf300be2940fd7af6d4.tar.gz |
Moved django configuration into the __main__ section
--HG--
branch : trunk
Diffstat (limited to 'ext')
-rw-r--r-- | ext/django2jinja/django2jinja.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/django2jinja/django2jinja.py b/ext/django2jinja/django2jinja.py index 1c9130d..4c03f85 100644 --- a/ext/django2jinja/django2jinja.py +++ b/ext/django2jinja/django2jinja.py @@ -12,7 +12,6 @@ import sys import re from jinja2.defaults import * from django.conf import settings -settings.configure(TEMPLATE_DEBUG=True, TEMPLATE_DIRS=['templates']) from django.template import defaulttags as core_tags, loader, TextNode, \ FilterExpression, libraries, Variable, loader_tags from django.template.debug import DebugVariableNode as VariableNode @@ -255,4 +254,5 @@ def extends(node, writer): if __name__ == '__main__': + settings.configure(TEMPLATE_DEBUG=True, TEMPLATE_DIRS=['templates']) Writer().body(loader.get_template('index.html')) |