I am trying to get my application working under mod_wsgi and apache
1.3

It's working to a point except that running it this way seems to
change the working directory.  So when I try and render a page I end
up with a stack trace like this in my error log:

[Sun Mar 30 10:08:14 2008] [error] [client 127.0.0.1]
web.render('index.html')
[Sun Mar 30 10:08:14 2008] [error] [client 127.0.0.1]   File "/Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
web.py-0.23-py2.5.egg/web/cheetah.py", line 89, in render
[Sun Mar 30 10:08:14 2008] [error] [client 127.0.0.1]
compiled_tmpl = _compiletemplate(template, base=base,
isString=isString)
[Sun Mar 30 10:08:14 2008] [error] [client 127.0.0.1]   File "/Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
web.py-0.23-py2.5.egg/web/utils.py", line 286, in __call__
[Sun Mar 30 10:08:14 2008] [error] [client 127.0.0.1]
self.cache[key] = self.func(*args, **keywords)
[Sun Mar 30 10:08:14 2008] [error] [client 127.0.0.1]   File "/Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/
web.py-0.23-py2.5.egg/web/cheetah.py", line 26, in __compiletemplate
[Sun Mar 30 10:08:14 2008] [error] [client 127.0.0.1]     text =
open('templates/'+template).read()
[Sun Mar 30 10:08:14 2008] [error] [client 127.0.0.1] IOError: [Errno
2] No such file or directory: 'templates/index.html'

Is there some setting or line of code I can add somewhere to get the
working directory back to where I want it?

Cheers

G
--~--~---------~--~----~------------~-------~--~----~
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