On Nov 8, 2007 10:46 AM, i am a ramone <[EMAIL PROTECTED]> wrote:
>
> I used template to render the html, but it cant be displayed
> correctly.
>
> http://181920.net/
>
> in ie, it runs well
> in firefox, the page is just html code...
>
> who know why? My site is at DreamHost
For some reason you're sending a header:
Content-Type: text/plain
It should be something like:
Content-Type: text/html;
You can set it by doing:
web.header("Content-Type","text/html")
Although, web.py by default (I think) sends out a text/html
content-type. Make sure you haven't changed it anywhere, and check
your hosting settings. It might be something to do with Dreamhost.
--
Hermann Käser
http://theragingche.com/
http://semicir.cl/user/hermzz
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---