summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2014-09-22 11:11:55 +0200
committerHostmaster of the Day <root@localhost>2014-09-22 11:11:55 +0200
commit9c9a72736cf0157cbbd40d71aa72b51aade74033 (patch)
tree1f69e90d14f0fe89e5e70d070110e46498e2b471
parent90cd412923fedeac8f5a4abb9b17ba787990cc53 (diff)
downloaddev-account-master.tar.gz
dev-account-master.tar.xz
dev-account-master.zip
django 1.6 compatibilityHEADmaster
-rw-r--r--index.py7
1 files 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