From 9c9a72736cf0157cbbd40d71aa72b51aade74033 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 22 Sep 2014 11:11:55 +0200 Subject: django 1.6 compatibility --- index.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.py b/index.py index 8922e3a..6592e90 100644 --- a/index.py +++ b/index.py @@ -1,7 +1,8 @@ # setup django environment, so we can use their template engine -from django.core.management import setup_environ -from account import settings -setup_environ(settings) +import os + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "account.settings") +from django.conf import settings from django.template import Context from django.template.loader import render_to_string -- cgit v1.2.3