>>> from django import template
>>> t = template.Template('My name is {{ name }}.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/django/template/__init__.py",
line 166, in __init__
if settings.TEMPLATE_DEBUG and origin is None:
File "/usr/lib/pymodules/python2.6/django/utils/functional.py", line
269, in __getattr__
self._setup()
File "/usr/lib/pymodules/python2.6/django/conf/__init__.py", line
38, in _setup
raise ImportError("Settings cannot be imported, because
environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.
I am using Ubuntu (Karmic Koala) and I installed from the Package
Manager Version 1.1.1. I'm guessing I have some sort of a path
problem.
Can anyone give me a quick fix/explanation? I'd rather not skip this
issue because I imagine it will come back to bite me later.
On Dec 18, 1:50 pm, bayousoft <bayous...@gmail.com> wrote: