On Dec 31, 11:58 am, Bart Nagel <b...@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
As far as other programs, I'm not sure. I'm not a programmer (just learned Python over the last few months) so I haven't tried any other programs yet. Ok, so save the paragraph in a file, then run the commands from the command line EXACTLY as you have them? In other words, from command line, type in Python args.py, then python args.py arg1, and python args.py arg 2?? Forgive my ignorance, working from the command line with this stuff is new to me. And I've never understood exactly what command line args are. . .But I'm learning. And THANK YOU ALL FOR THE HELP!!! -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.