diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2014-09-22 11:11:55 +0200 |
---|---|---|
committer | Hostmaster of the Day <root@localhost> | 2014-09-22 11:11:55 +0200 |
commit | 9c9a72736cf0157cbbd40d71aa72b51aade74033 (patch) | |
tree | 1f69e90d14f0fe89e5e70d070110e46498e2b471 | |
parent | 90cd412923fedeac8f5a4abb9b17ba787990cc53 (diff) | |
download | dev-account-master.tar.gz dev-account-master.tar.xz dev-account-master.zip |
-rw-r--r-- | index.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |