title: Why am I getting this error in Django?
body: <p>I have a script that imports a models.py from an app, but it will not import!
  I don't believe I am supposed to manually create an "export DJANGO..." environment variable...I'm doing something else wrong.</p>
  
  <pre><code> Traceback (most recent call last):
        File "parse.py", line 8, in ?
          from butterfly.flower.models import Channel, Item
        File "/home/user/shri/butterfly/flower/models.py", line 1, in ?
          from django.db import models
        File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 10, in ?
          if not settings.DATABASE_ENGINE:
        File "/usr/lib/python2.4/site-packages/django/utils/functional.py", line 269, in __getattr__
          self._setup()
        File "/usr/lib/python2.4/site-packages/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.
  </code></pre>