changeset 2:0994ae3e4518

Fix compilation on Django 1.10+.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 07 Sep 2017 16:45:01 +0100
parents 913ab5948119
children 677c11228f33
files build_website.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build_website.py
+++ b/build_website.py
@@ -53,7 +53,7 @@ def generate_page(language):
     from django.template import Template, Context
     import gzip
 
-    settings.configure(LANGUAGE_CODE=language, LOCALE_PATHS=['locale'])
+    settings.configure(LANGUAGE_CODE=language, LOCALE_PATHS=['locale'], TEMPLATES=[{'BACKEND': 'django.template.backends.django.DjangoTemplates'}])
 
     django.setup()