[Tutor] Opening .py files in firefox
Brian Gustin
brian at daviesinc.com
Sun Mar 19 22:53:02 CET 2006
server needs to be set up with a handler to tell it what to do with the
file , otherwise it will look at local host to determine what to do with
it , via the extension, and if no extension is found, then it will
simply offer to download the file to your computer . if you want it to
display as text, the webserver needs to be set up to do so :) If it is
Apache Webserver, you need to use the AddHandler or SetHandler
directives (note these directives differ between apache 1.3.x and 2.x)
HTH
Andre Roberge wrote:
> Hi everyone-
>
> This is not strictly speaking a Python question but it's probably
> something that other pythonistas have encountered and, hopefully
> solved :-)
>
> When I click on a link to a ".py" file (either remotely or on my
> computer) using firefox, it gives me two options: running the script
> with the default Python app, or saving the file. What I would like is
> to display the file as text in the browser. Any ideas? This is on
> Windows XP.
>
> André
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
> !DSPAM:441dcd08315282096420017!
>
>
More information about the Tutor
mailing list