Traceback (most recent call last):
File "C:\Python33\lib\site-packages\django\conf\__init__.py", line 38, in _setup
settings_module = os.environ[ENVIRONMENT_VARIABLE]
File "C:\Python33\lib\os.py", line 676, in __getitem__
raise KeyError(key) from None
KeyError: ‘DJANGO_SETTINGS_MODULE‘
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
t = Template("My name is {{ my_name }}.")
File "C:\Python33\lib\site-packages\django\template\base.py", line 123, in __init__
if settings.TEMPLATE_DEBUG and origin is None:
File "C:\Python33\lib\site-packages\django\conf\__init__.py", line 54, in __getattr__
self._setup(name)
File "C:\Python33\lib\site-packages\django\conf\__init__.py", line 47, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting TEMPLATE_DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.