Sign in
apache
/
incubator-retired-slider
/
08ffa87e64091ead7de83df381ca3214821dfc43
/
.
/
slider-agent
/
src
/
main
/
python
/
jinja2
/
ext
/
django2jinja
/
example.py
blob: 2d4ab9add849a874fe5b6620966848b563bacfc2 [
file
] [
log
] [
blame
]
from
django
.
conf
import
settings
settings
.
configure
(
TEMPLATE_DIRS
=[
'templates'
],
TEMPLATE_DEBUG
=
True
)
from
django2jinja
import
convert_templates
,
Writer
writer
=
Writer
(
use_jinja_autoescape
=
True
)
convert_templates
(
'converted'
,
writer
=
writer
)