Skip to content
Myr

Moved django configuration into the __main__ section

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

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 35f8d2d · 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/django2jinja/django2jinja.py+1 added-1 removed
10 unmodified lines
11import sys12import re13from jinja2.defaults import *14from django.conf import settings15settings.configure(TEMPLATE_DEBUG=True, TEMPLATE_DIRS=['templates'])15from django.template import defaulttags as core_tags, loader, TextNode, \16 FilterExpression, libraries, Variable, loader_tags17from django.template.debug import DebugVariableNode as VariableNode18from StringIO import StringIO
234 unmodified lines
253 writer.body(node.nodelist)254255256if __name__ == '__main__':257 settings.configure(TEMPLATE_DEBUG=True, TEMPLATE_DIRS=['templates'])258 Writer().body(loader.get_template('index.html'))