Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.
Sounds like the .py extension isn't seen as using python, should be an easy fix. Check your file associations (where they are in Win7) I'll have to find at work tomorrow, but that should fix your issue. Or, it could be some new security scheme that MS has come up with to not allow associations at the CMD level? sounds like that would break too much stuff though, I'll try it at work tomorrow and if it's not an association thing, I'll check back on this thread. J On Nov 30, 8:36 am, Rodrigo Cea wrote: > Following an abortive attempt to install Python2.6 on Windows 7, I > can't run the Django dev server without prepending "python" before > "manage.py runserver". > > I tried recently to install Python2.6 on a windows 7 system that > already has python 2.5 installed. I had problems running some Django > applications I'm working on, so I uninstalled it. > > Now I can't run the dev server the way I used to: "manage.py > runserver", I get: > > "Type 'manage.py help' for usage." > > If I run it like so: "python manage.py runserver" it works. > > I have checked for other python installs on the system, and there was > just one in Cygwin which I have deleted. > I have checked running programs with and without "python" and the > executable is the same: "C:\python2.5\python.exe". > > This also affects other programs, e.g.: easy_setup, which I can't just > run as "easy_setup package_name" anymore, but rather "python /path/to/ > easy_setup package_name". > > This is more annoying than anything else, but any help is greatly > appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.
Thanks for the response. Doing some more tests python programs do work, they just seem to not recieve sys.argv. The results of calling "manage.py runserver" is the same as calling just "manage.py". Other simple scripts bear this out. Thanks, Rodrigo On Dec 1, 6:32 am, John M wrote: > Sounds like the .py extension isn't seen as using python, should be an > easy fix. Check your file associations (where they are in Win7) I'll > have to find at work tomorrow, but that should fix your issue. > > Or, it could be some new security scheme that MS has come up with to > not allow associations at the CMD level? sounds like that would break > too much stuff though, I'll try it at work tomorrow and if it's not an > association thing, I'll check back on this thread. > > J > > On Nov 30, 8:36 am, Rodrigo Cea wrote: > > > Following an abortive attempt to install Python2.6 on Windows 7, I > > can't run the Django dev server without prepending "python" before > > "manage.py runserver". > > > I tried recently to install Python2.6 on a windows 7 system that > > already has python 2.5 installed. I had problems running some Django > > applications I'm working on, so I uninstalled it. > > > Now I can't run the dev server the way I used to: "manage.py > > runserver", I get: > > > "Type 'manage.py help' for usage." > > > If I run it like so: "python manage.py runserver" it works. > > > I have checked for other python installs on the system, and there was > > just one in Cygwin which I have deleted. > > I have checked running programs with and without "python" and the > > executable is the same: "C:\python2.5\python.exe". > > > This also affects other programs, e.g.: easy_setup, which I can't just > > run as "easy_setup package_name" anymore, but rather "python /path/to/ > > easy_setup package_name". > > > This is more annoying than anything else, but any help is greatly > > appreciated. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.
Hi, Check this out - on my XP system anyway (understand it hasn't changed much for W7) use the 'assoc' and 'ftype' commands to find out what ".py" is doing on your system. It should look something like this, except for file paths appropriate for your system. If your ftype is messed up (missing the "%*" maybe), you wouldn't see the args. Ken C:\>*assoc .py* .py=Python.File C:\>*ftype Python.File* Python.File="C:\Python25\python.exe" "%1" %* On Tue, Dec 1, 2009 at 7:18 AM, Rodrigo Cea wrote: > Thanks for the response. > > Doing some more tests python programs do work, they just seem to not > recieve sys.argv. The results of calling "manage.py runserver" is the > same as calling just "manage.py". Other simple scripts bear this out. > > Thanks, > > Rodrigo > > On Dec 1, 6:32 am, John M wrote: > > Sounds like the .py extension isn't seen as using python, should be an > > easy fix. Check your file associations (where they are in Win7) I'll > > have to find at work tomorrow, but that should fix your issue. > > > > Or, it could be some new security scheme that MS has come up with to > > not allow associations at the CMD level? sounds like that would break > > too much stuff though, I'll try it at work tomorrow and if it's not an > > association thing, I'll check back on this thread. > > > > J > > > > On Nov 30, 8:36 am, Rodrigo Cea wrote: > > > > > Following an abortive attempt to install Python2.6 on Windows 7, I > > > can't run the Django dev server without prepending "python" before > > > "manage.py runserver". > > > > > I tried recently to install Python2.6 on a windows 7 system that > > > already has python 2.5 installed. I had problems running some Django > > > applications I'm working on, so I uninstalled it. > > > > > Now I can't run the dev server the way I used to: "manage.py > > > runserver", I get: > > > > > "Type 'manage.py help' for usage." > > > > > If I run it like so: "python manage.py runserver" it works. > > > > > I have checked for other python installs on the system, and there was > > > just one in Cygwin which I have deleted. > > > I have checked running programs with and without "python" and the > > > executable is the same: "C:\python2.5\python.exe". > > > > > This also affects other programs, e.g.: easy_setup, which I can't just > > > run as "easy_setup package_name" anymore, but rather "python /path/to/ > > > easy_setup package_name". > > > > > This is more annoying than anything else, but any help is greatly > > > appreciated. > > > > > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.
Hi Ken, thanks for your response, I get the exact same results as you, .py=Python.File and Python.File="C:\Python25\python.exe" "%1" %* Thanks, Rodrigo On Dec 1, 11:49 am, Ken MacDonald wrote: > Hi, > Check this out - on my XP system anyway (understand it hasn't changed much > for W7) use the 'assoc' and 'ftype' commands to find out what ".py" is doing > on your system. It should look something like this, except for file paths > appropriate for your system. If your ftype is messed up (missing the "%*" > maybe), you wouldn't see the args. > Ken > > C:\>*assoc .py* > .py=Python.File > > C:\>*ftype Python.File* > Python.File="C:\Python25\python.exe" "%1" %* > > On Tue, Dec 1, 2009 at 7:18 AM, Rodrigo Cea wrote: > > Thanks for the response. > > > Doing some more tests python programs do work, they just seem to not > > recieve sys.argv. The results of calling "manage.py runserver" is the > > same as calling just "manage.py". Other simple scripts bear this out. > > > Thanks, > > > Rodrigo > > > On Dec 1, 6:32 am, John M wrote: > > > Sounds like the .py extension isn't seen as using python, should be an > > > easy fix. Check your file associations (where they are in Win7) I'll > > > have to find at work tomorrow, but that should fix your issue. > > > > Or, it could be some new security scheme that MS has come up with to > > > not allow associations at the CMD level? sounds like that would break > > > too much stuff though, I'll try it at work tomorrow and if it's not an > > > association thing, I'll check back on this thread. > > > > J > > > > On Nov 30, 8:36 am, Rodrigo Cea wrote: > > > > > Following an abortive attempt to install Python2.6 on Windows 7, I > > > > can't run the Django dev server without prepending "python" before > > > > "manage.py runserver". > > > > > I tried recently to install Python2.6 on a windows 7 system that > > > > already has python 2.5 installed. I had problems running some Django > > > > applications I'm working on, so I uninstalled it. > > > > > Now I can't run the dev server the way I used to: "manage.py > > > > runserver", I get: > > > > > "Type 'manage.py help' for usage." > > > > > If I run it like so: "python manage.py runserver" it works. > > > > > I have checked for other python installs on the system, and there was > > > > just one in Cygwin which I have deleted. > > > > I have checked running programs with and without "python" and the > > > > executable is the same: "C:\python2.5\python.exe". > > > > > This also affects other programs, e.g.: easy_setup, which I can't just > > > > run as "easy_setup package_name" anymore, but rather "python /path/to/ > > > > easy_setup package_name". > > > > > This is more annoying than anything else, but any help is greatly > > > > appreciated. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@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. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.