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?
views:
34answers:
1
+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
2010-09-09 23:26:34
"Do you have a DJANGO_SETTINGS_MODULE environment variable set?" how do I check this?
Erik Vold
2010-09-10 22:21:46
@Erik: On unix: `echo $DJANGO_SETTINGS_MODULE` and on windows: `echo %DJANGO_SETTINGS_MODULE%` at the command line.
ars
2010-09-10 22:59:17
echo %DJANGO_SETTINGS_MODULE% just returns %DJANGO_SETTINGS_MODULE%
Erik Vold
2010-09-11 22:56:34
OK, so the variable isn't set. Have you tried executing django-admin startproject again? Same problem?
ars
2010-09-11 22:58:53
ya same problem, it appears that notepad++ is opening django-admin.py whenever I run `django-admin.py startproject something`..
Erik Vold
2010-09-12 23:22:25