On 7/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've also looked in the doc which says: > --- > Just run this command: > > python /path/to/django/contrib/auth/create_superuser.py > --- > but if I do it I have: > EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is > undefined.
Whenever you are not using manage.py, you will need to manually set this variable so Django knows where your settings file is. If your settings file was 'settings.py' in the directory 'myproject', you would type this at a command line: export DJANGO_SETTINGS_MODULE=myproject.settings -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---