On Fri, Jan 9, 2009 at 10:55 PM, Rex <rex.eastbou...@gmail.com> wrote:

>
> I installed Django on my Vista box. Using the Windows command shell, I
> go to the site-packages/django/bin directory and here's what I get
> when I type various commands:
>
> > django-admin.py help
> Type 'django-admin.py help' for usage.
>
> > python django-admin.py help
> [This gives me the proper help instructions]
>
> Why is it only giving me the correct output when I prepend "python"?
> This is a problem because when I'm in a different folder (such as my
> Django projects folder), I can't type "python django-admin.py", since
> that will not look in different Path directories for the file django-
> admin.py. However, typing "django-admin.py help" in any other
> directory gives me the same output as above.
>
> I Googled around, and the only thing I found was this comment:
>
> "you have to change the file association from (cant remember) to "%1″
> %* and it should work"
> Source:
> http://i.justrealized.com/2008/04/08/how-to-install-python-and-django-in-windows-vista/#comment-329
>
> Does anyone understand what this means?
>

I do, but I don't have Vista so I can't give you step-by-step instructions
for changing the file associations there.  On earlier levels you would do
something like Start->Settings->Control Panel->Folder Options, then select
"File Types" tab, then find .py in the list, click "Advanced" button, select
the "open" action and click the "Edit" button,  and put that "%1″ %* string
at the end replacing whatever follows the actual "c:\path\to\python.exe".  I
have no idea if the procedure under Vista is similar or substantially
different.

Karen

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

Reply via email to