Do you have an __init__.py in your template directory?
Is uWSGI running under a user that has access to this directory?
> After setting genshi.search_path like this:
> genshi.search_path = '/srv/staging/vodo-net/vodo_net/templates/'
> I get 'TemplateNotFound: Template "vodo_net.templates.index" not
> found'
Is /srv/staging correct in production? Anyway, normally you should not
need to set genshi.search_path.
-- Christoph
Ok, we've found the problem but don't understand the reason.
It works if we start uwsgi from the project package like this:
(venv)rama@maindev:/srv/vodo-net/vodo_net$ uwsgi --ini /etc/uwsgi.ini
Do you know why this could be?
It would be good to fix or document this somehow.
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
You might get away with os.chdir() in your WSGI script, but python
setup.py develop/install is the proper solution.
See also
http://www.turbogears.org/1.5/docs/Deploy/NginxWsgi.html#using-a-virtual-environment
-- Christoph