Worked perfectly, with a modification (thanks!). Example below for people with the same problem:
AddType text/html .py Don't forget the "." before py. On Jun 20, 3:33 pm, Justin Davis <[EMAIL PROTECTED]> wrote: > This is a mime-type problem -- your browser grabs the mime type from > Apache (who probably says it's a python file) and figures you want to > download it. > > Try adding this to your .htaccess file (or httpd.conf): > > AddType text/html py > > If that doesn't work, look around other pages for how to set the mime > type for your Apache version. > > Good luck, > Justin > > On Jun 20, 3:44 pm, toasterfun <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I'm having an issue with my installation, and I'm not sure if web.py > > is to blame or something else. I think it's Firefox, or something with > > HTTP headers. > > > I'm using WSGI on apache, and I know it works (tested with the .wsgi > > extension). I installed web.py, and it works, but only when I have the > > ".wsgi" extension handled by the wsgi-script. When I switch it to the > > '.py' extension, and run the script, I get NO errors in any log, and > > Firefox 3 asks me to download "wiki.py", like it's a genuine file > > (such as .avi, .odt, .txt). > > > Once I download it, open it up in gedit, I get exactly what it was > > supposed to output in the browser, HTML. I was worried that the > > wiki.py I downloaded would contain the python code, but it doesn't. > > > This tells me that WSGI is working, web.py is working... but why does > > it ask me to download the file? Is there some sort of a HTTP header > > that I need to send? > > > Does anybody know what's wrong and how I can fix it? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
