You need to have a settings file specified. Read this: http://www.djangoproject.com/documentation/settings/
If you have a project, you need to make sure you are in the project directory and using ./manage.py shell so all the right stuff gets loaded up for you. Michael Trier blog.michaeltrier.com On Dec 21, 2007 11:46 AM, newDjangoer <[EMAIL PROTECTED]> wrote: > > I am experiencing an error when I try to run the following: > > >>> from django.db import connection > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/db/__init__.py", line 7, in <module> > if not settings.DATABASE_ENGINE: > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/conf/__init__.py", line 28, in > __getattr__ > self._import_settings() > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/conf/__init__.py", line 53, in > _import_settings > raise EnvironmentError, "Environment variable %s is undefined." % > ENVIRONMENT_VARIABLE > EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is > undefined. > >>> > > Not sure how to remedy this > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---