[Answered ]-Django installation – trouble with creating a mysite directory

1👍

You should remove dot from the end of a string.

python django-admin.py startproject mysite
👤Kee

1👍

Clearly you have .py in %PATHEXTS%. But in all probability it’s not set up to pass on command line arguments – the default only registers .py files to run python.exe $1, not python.exe $1 $2 $3 $4 $5 $6 $7 $8 $9 (unfortunately it doesn’t support $*). The easiest way to deal with it is to run C:\path\to\python C:\path\to\django-admin.py startproject mysite.

0👍

Read this

https://docs.djangoproject.com/en/1.3/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

Leave a comment