Hello Snirp, On Sat, Dec 09, 2006 at 08:20:02AM -0800, Snirp wrote: > environment variable DJANGO_SETTINGS_MODULE undefined
I assume mysite is the project you've created under c:\temp using "django-admin.py startproject mysite". To use the shell, you need to have the following environment variables set: PYTHONPATH = c:/temp DJANGO_SETTINGS_MODULE = mysite.settings I haven't tested this, so you may have to play with the PYTHONPATH format (slashes, etc.). > >>>import sys > >>>sys.path.append('c:/temp/mysite') > > This appends the directory to sys.path, but it does not save it I to > the path module I guess. sys.path.append affects only the process it is called in. Setting PYTHONPATH should work for you. With kind regards, Baurzhan. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---