Saturday, December 31, 2011

Re: django-admin.py startproject will NOT work.

This has been answered before:



Cheers,
AT

On Sat, Dec 31, 2011 at 2:58 PM, Bart Nagel <bart@tremby.net> wrote:
At 2011-12-31 19:47:35 +0300, Timothy Makobu wrote:
> File associations are fine i reckon, because django-admin is giving you the
> help message because for some reason it thinks you're *giving it improper
> input*.

What about other Python programs? Do they have the same problem?

Put this next paragraph in a file and run it with different numbers of
arguments and see what happens.

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

Save it as args.py

Run
   python args.py
   python args.py arg1
   python args.py arg1 arg2

--
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.


--
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.

Re: django-admin.py startproject will NOT work.

At 2011-12-31 19:47:35 +0300, Timothy Makobu wrote:
> File associations are fine i reckon, because django-admin is giving you the
> help message because for some reason it thinks you're *giving it improper
> input*.

What about other Python programs? Do they have the same problem?

Put this next paragraph in a file and run it with different numbers of
arguments and see what happens.

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

Save it as args.py

Run
python args.py
python args.py arg1
python args.py arg1 arg2

--
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.

Happy new year

Happy new year, Django users :-) !

--
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.

Re: django-admin.py startproject will NOT work.

Hi,

File associations are fine i reckon, because django-admin is giving you the help message because for some reason it thinks you're giving it improper input. 

On Sat, Dec 31, 2011 at 7:40 PM, Chris Kavanagh <ckava3@gmail.com> wrote:
While looking for a solution, I found someone with a similar problem.
he thought there was a problem with the way Python Files are
associated. So I did what was suggested on the command line, using
"assoc.py" and ftype Python.File. What I got back is listed below. I
don't think this is right according to what the message said.
According to him, it should've returned ".py=Python.File" and
"Python.File="C:\Python25\python.exe" "%1" %*". . .Obviously mine was
different. Any suggestions???




C:\>assoc .py
.py=py_auto_file

C:\>ftype python.file
File type 'python.file' not found or no open command associated with
it.

--
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.


--
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.

Re: django-admin.py startproject will NOT work.

At 2011-12-31 08:40:26 -0800, Chris Kavanagh wrote:
> While looking for a solution, I found someone with a similar problem.
> he thought there was a problem with the way Python Files are
> associated. So I did what was suggested on the command line, using
> "assoc.py" and ftype Python.File. What I got back is listed below. I
> don't think this is right according to what the message said.
> According to him, it should've returned ".py=Python.File" and
> "Python.File="C:\Python25\python.exe" "%1" %*". . .Obviously mine was
> different. Any suggestions???
>
>
>
>
> C:\>assoc .py
> .py=py_auto_file
>
> C:\>ftype python.file
> File type 'python.file' not found or no open command associated with
> it.

Try
ftype py_auto_file

--
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.

Re: django-admin.py startproject will NOT work.

While looking for a solution, I found someone with a similar problem.
he thought there was a problem with the way Python Files are
associated. So I did what was suggested on the command line, using
"assoc.py" and ftype Python.File. What I got back is listed below. I
don't think this is right according to what the message said.
According to him, it should've returned ".py=Python.File" and
"Python.File="C:\Python25\python.exe" "%1" %*". . .Obviously mine was
different. Any suggestions???


C:\>assoc .py
.py=py_auto_file

C:\>ftype python.file
File type 'python.file' not found or no open command associated with
it.

--
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.

Re: django-admin.py startproject will NOT work.

On Dec 31, 10:19 am, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote:
> On Fri, 30 Dec 2011 16:36:32 -0800 (PST), Chris Kavanagh
>
> <cka...@gmail.com> wrote:
> >> I'm not sure you'll be able to see the screenshot at the link, it's very small. So, here's a copy/paste of it from my command prompt:
>
> >C:\Documents and Settings\mysite>django-admin.py startproject mysite
>
>         Have you tried that while explicitly specifying the Python
> interpreter on the line?
>
>         I seem to recall that Windows has some problem passing command line
> arguments when the first item (the "program") isn't directly executable.
>
> http://stackoverflow.com/questions/2640971/windows-is-not-passing-com...http://stackoverflow.com/questions/7860872/run-python-scripts-from-wi...
>
> (or for the full google list;http://www.google.com/search?q=windows%20python%20command%20line%20ar...
> )
> --
>         Wulfraed                 Dennis Lee Bieber         AF6VN
>         wlfr...@ix.netcom.com    HTTP://wlfraed.home.netcom.com/


Thanks for the reply Dennis. . .Yeah, I have tried that, LOL. Several
different ways actually. From what I can tell, it seems to solve this
problem for MOST people, but NOT me, lol.

--
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.