Okay, before anyone tries to solve these beginner issues, i
happened to find the solutions myself, so:
The first problem about the not found template: I forgot to make
the file readable for everybody, permissions should be 755 at least!
Secondly, the wrong headers sent by the web application:
Apparently web.py doesn't take care of sending the correct
headers. There are two ways to solve the problem. Either
directly in the apache .htaccess setup:
<Files code.py>
SetHandler wsgi-script
Options ExecCGI FollowSymLinks
# the following line makes all output of the
# web app html:
ForceType text/html;charset=utf-8
</Files>
Or, more flexible, one could manually set the headers on each
case as needed, for example:
class index:
def GET(self):
web.header('Content-Type','text/html;charset=utf-8')
return render.index()
Best greetings to the group :)
Dragan
--
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.