summaryrefslogtreecommitdiffstats
path: root/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'index.py')
-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