> At 2011-12-31 16:00:44 -0800, Chris Kavanagh wrote:
>
> > On Dec 31, 6:48 pm, Bart Nagel <b...@tremby.net> 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 args.py 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
> django-admin:
> python args.py startproject mysite
>
> When I run that I get
> 3 arguments: ['args.py', 'startproject', 'mysite']
>
> Paste your own output.
>
> --bart
I get the same as you:
C:\Python27\Scripts>python args.py startproject mysite
3 arguements: ['args.py', 'startproject', 'mysite']
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment