On Wed, Jul 2, 2008 at 11:30 AM, Fernando RodrÃguez <[EMAIL PROTECTED]> wrote: > > Hi, > > I'd like to use WingIDE's own python shell with django, instead of the > terminal you get with manage.py shell. > > However, if I try to eval a file form within Wing, I get this error: > > Traceback (most recent call last): > File "/home/fernando/<string>", line 1, in <module> > File "/var/lib/python-support/python2.5/django/db/__init__.py", line > 7, in <module> > if not settings.DATABASE_ENGINE: > File "/var/lib/python-support/python2.5/django/conf/__init__.py", line > 28, in __getattr__ > self._import_settings() > File "/var/lib/python-support/python2.5/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. > > How can I fix this?
You need to set the environment variable in wingIDE somehow . Not sure how that's done but i'm sure google knows. In bash it would be : export DJANGO_SETTINGS_MODULE='myproject.settings' -- Milan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---