diff options
-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 |