Something wrong with mime-types, obviously. You return plain text,
which, as your server thinks, should be downloaded, not displayed in
the browser.
I'm not an Apache guru, so just google about mime-types configuration
in apache.

On Apr 3, 6:57 pm, Dan Steingart <[email protected]> wrote:
> So I'm using web.py  with CGI, and when I navigate to the app, rather
> than displaying the web on a page, my browser downloads a text file.
> For example, rather than seeing "hello world" on the web I get a text
> file that says "hello world".
>
> Here's the code.  Thanks!
>
> #!/usr/bin/python
>
> import web
>
> urls = (
>   '/', 'index'
> )
>
> app = web.application(urls, globals())
>
> class index:
>     def GET(self):
>                 a = "Hello World!"
>                 return a
>
> if __name__ == "__main__": app.run()

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

Reply via email to