Saturday, December 31, 2011

Re: startproject will NOT work.

At 2011-12-31 16:00:44 -0800, Chris Kavanagh wrote:
> On Dec 31, 6:48 pm, Bart Nagel <> wrote:
> > Does this little script tell you correctly the number of arguments you
> > pass to it?
> Yes, it tells me the number of args.

Okay, in that case the arguments should also be getting to the
django-admin script. To give you the help message it must not be able
to read the "startproject" argument, since the name of the project
shouldn't matter to it. Perhaps something bad is happening to it,
possibly due to the registry stuff you folks were talking about
earlier, or some other Windows sorcery.

Change a little to this:

import sys
print "%d arguments: %s" % (len(sys.argv), sys.argv)

And now run it with the arguments you were trying to give to
python startproject mysite

When I run that I get
3 arguments: ['', 'startproject', 'mysite']

Paste your own output.


You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment