On Dec 21, 5:46 pm, 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
Read this and look for DJANGO_SETTINGS_MODULE.
http://www.djangoproject.com/documentation/settings/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---