views:

34

answers:

1

after installing django I tried django-admin.py startproject mysite and that worked, then I got a simple site working and I wanted to start on something real, so I tried django-admin.py startproject newsite and nothing happened. Whenever I try the command nothing happens now.. any idea what is wrong?

+1  A: 

Do you have a DJANGO_SETTINGS_MODULE environment variable set (presumably from the mysite project)? If so, django thinks you're working on the old project and doesn't give you the startproject option. Try unsetting the environment variable and trying again.

ars
"Do you have a DJANGO_SETTINGS_MODULE environment variable set?" how do I check this?
Erik Vold
@Erik: On unix: `echo $DJANGO_SETTINGS_MODULE` and on windows: `echo %DJANGO_SETTINGS_MODULE%` at the command line.
ars
echo %DJANGO_SETTINGS_MODULE% just returns %DJANGO_SETTINGS_MODULE%
Erik Vold
OK, so the variable isn't set. Have you tried executing django-admin startproject again? Same problem?
ars
ya same problem, it appears that notepad++ is opening django-admin.py whenever I run `django-admin.py startproject something`..
Erik Vold