Cannot start tutorial that begins with '"jango-admin.py startproject mysite"

62 views
Skip to first unread message

Jo MM

unread,
Aug 29, 2014, 1:43:55 AM8/29/14
to django...@googlegroups.com
Hello.
I believe I have successfully installed Django based on having no problems with testing "import django" at the command prompt and in the Python interpreter.
However, I cannot get the tutorial started. 
As explained by the tutorial ("From the command line, cd into a directory where you’d like to store your code, then run the following command:
django-admin.py startproject mysite") I cd over to: C:\Users\John. When I type "django-admin . . ." nothing happens. "mysite" is not created.
I have looked at group messages. One thing I notice is that I appear to be missing "Lib\site-packages\django\bin", but I don't know how to find/download this.
Also, at the command prompt when I cd to Python27\Scripts and enter "django-admin.py startproject mysite" I get "Import Error: No module named django.core".

My set-up:
1. Windows 7 32-bit
2. C:\Python27\Scripts\django-admin.py
3. End portion of my System Path as shown in Environmental Variables: . . ;C:\Python27\Scripts; C:\Python27\Lib\site-packages\django\bin; C:\Python27\Scripts\django-admin.py


aseds

unread,
Sep 2, 2014, 4:07:11 AM9/2/14
to django...@googlegroups.com
for me

django-admin.py

does not work, but

django-admin

does work. i don't know why.

Collin Anderson

unread,
Sep 2, 2014, 11:41:11 AM9/2/14
to django...@googlegroups.com
django-admin (without .py) only works in django 1.7 what version are you using?

gamiho

unread,
Feb 16, 2018, 4:08:55 PM2/16/18
to Django users
I know that's 4 years later, but django-admin without .py worked for me too, Im using v. 1.11.5, and on another pc, the same version of django, works normally with django-admin.py.
Reply all
Reply to author
Forward
0 new messages