From 110e4c2ad2ee14e3bc69bbf300be2940fd7af6d4 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 16 Sep 2008 11:02:34 +0200 Subject: [PATCH] Moved django configuration into the __main__ section --HG-- branch : trunk --- ext/django2jinja/django2jinja.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) -- 2.26.2