views:

118

answers:

3

Hello. I'm totally new to django, and I'm using its documentation to get help on how to use it
but seems like something is missing. i installed django using setup.py install command and i added the ( django/bin ) to system path variable but. i still cant start a new project
i use the following syntax to start a project :
django-admin.py startproject myNewProject
but it says
Type 'django-admin.py help' for usage.
1

UPDATES :
i use windows vista x64 . i checked the environment variables and i don't have DJANGO_SETTINGS_MODULE variable in there . should i add one ?? and with what value ?
do i miss anything ?
thank u

A: 

do you have permission to write to the directory?

W_P
In that case it would be: Error: [Errno 13] Permission denied
Łukasz
Of course, my bad...
W_P
+2  A: 

See http://docs.djangoproject.com/en/dev/ref/django-admin/#startproject-projectname

This command is disabled when the --settings option to django-admin.py is used, or when the environment variable DJANGO_SETTINGS_MODULE has been set. To re-enable it in these situations, either omit the --settings option or unset DJANGO_SETTINGS_MODULE.

S.Lott
i tried 'django-admin.py settings' and help , but it still shows that message.
Moayyad Yaghi
A: 

check whether you have djagno or not and the it is in python path or not.if using linux go to terminal type python and then try to import django

ha22109