problem building project with python 2.6 startproject won't work

25 views
Skip to first unread message

bizcuit

unread,
Nov 4, 2008, 4:12:46 PM11/4/08
to Django users
I have been using Django with Python 2.5 the past few months.

Today I removed Python 2.5 installed Python 2.6 and downloaded Django.

when I try to create a project from the command line in Windows Vista:

django-admin.py startproject myProject

I get "Type 'django-admin.py help' for usage." returned.

Does anyone know why this is not working?

thanks

-- jk

Karen Tracey

unread,
Nov 4, 2008, 4:44:51 PM11/4/08
to django...@googlegroups.com

Do you have DJANGO_SETTINGS_MODULE defined in the environment?  startproject is not a valid command if settings have been specified, see:

http://code.djangoproject.com/ticket/8639

which links to another ticket that asks for an improved error message in this case.

Karen

Gwynne Reddick

unread,
Nov 4, 2008, 4:58:08 PM11/4/08
to django...@googlegroups.com

I had this problem recently in Vista and it turned out to be a issue with the .py file association, only the first argument was getting passed to the django-admin.py script. Specifically the file association open command was:

python.exe" "%1"

when it needs to be:

python.exe" "%1" %*

unfortunately, unlike XP, you can't directly edit the association in Vista, you need to use something like File Type Doctor, see http://www.annoyances.org/exec/show/article02-500

G

--
Gwynne Reddick, gwy...@mememachines.net on 04/11/2008

Reply all
Reply to author
Forward
0 new messages