jadolg / webpymail

Automatically exported from code.google.com/p/webpymail
GNU General Public License v3.0
0 stars 0 forks source link

Templates problems when served with FCGI #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The problem is in `TEMPLATE_DIRS` that is not absolute path.
You can solve this with a little trick:

CURDIR = os.path.dirname(__file__)
TEMPLATE_DIRS = ( os.path.join(CURDIR, 'templates').replace('\\', '/'), )

This solution will work on any serving method (test-builtin-webserver, FCGI, 
WCGI etc)

Original issue reported on code.google.com by akimov.alex on 17 Aug 2010 at 2:37

GoogleCodeExporter commented 9 years ago
Made the template path absolute, does this fix your problem? - Right now I'm 
not using FCGI.

Original comment by hguerreiro@gmail.com on 19 Aug 2010 at 8:34

GoogleCodeExporter commented 9 years ago
Yep, thanks.

Original comment by akimov.alex on 19 Aug 2010 at 8:42

GoogleCodeExporter commented 9 years ago
Good!

Original comment by hguerreiro@gmail.com on 19 Aug 2010 at 8:55