From: Armin Ronacher Date: Tue, 16 Sep 2008 09:02:34 +0000 (+0200) Subject: Moved django configuration into the __main__ section X-Git-Tag: 2.1~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=110e4c2ad2ee14e3bc69bbf300be2940fd7af6d4;p=jinja2.git Moved django configuration into the __main__ section --HG-- branch : trunk --- 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'))