can't create django project

3 views
Skip to first unread message

rookie

unread,
May 19, 2009, 4:02:13 PM5/19/09
to Django users
Hi,
I just install django and try to create django project following
the instruction: django-admin.py startproject mysite
However, I got the message sais: 'django-admin.py' is not
recognized as an internal or external command, operable program or
batch file. In pythonwin (Python 2.6 version), import django is no
problem. I also got (1, 0, 2, 'final', 0) from typing
django.VERSION. So it seems like django was installed successfully.
Can anyone tell me how to fix the django-admin.py problem? Thanks.

MFA

unread,
May 19, 2009, 7:09:44 PM5/19/09
to Django users
I'm a rook too and received the same error.

I re-read the installation instructions here:
http://docs.djangoproject.com/en/dev/topics/install/#installing-official-release

It turns out I had to run "python setup.py install". I believe this
copies the django-admin.py to a location, or places a path variable,
so it is accessible.
Once i ran the command above, i was able to successfully use "django-
admin.py startproject X"

good luck.

ashish

unread,
May 21, 2009, 11:23:33 AM5/21/09
to Django users
if ur using the Linux u can get the "django-admin.py" on ur command
shell in any dirctry

eg..

ashish@pylone$
Reply all
Reply to author
Forward
0 new messages