pyramid, pyramid_jinja2, sqla ..
some background: i'm a pyramid newbie so the "solution" i'm applying to my "problem" may not be the "best".
Pyramid's virtual hosting as described here
http://example.com - main website
http://example.com/admin - admin site as a separate wsgi app
defined a "main" composite app - important parts below:
use = egg:Paste#urlmap
/ = web
/admin = admin
use = egg:Example#main
jinja2.directories = example:templates/web
use = egg:Example#admin
jinja2.directories = example:templates/admin
This also means that i have 2 separate entry points in my setup.py (main and admin) which in turn means that i'm creating 2 Configurator() instances inorder to create the corresponding wsgi apps (both entry points being app factories that have to return wsgi apps - Configurator().make_wsgi_app() ).
The value of jinja2.directories for the 1st app created is clobbered by the jinja2.directories value for the last app created.
Please note that this might be a "faux" problem because am not sure if its "right" to create 2 (or more) configurator instances within the same pyramid project. On the other hand i don't see how we can avoid creating several of those when creating a composite app (or maybe composite app is not the way to go..?).
Hope i've been precise..
I wrote a test to try and reproduce this... b60c4d8
The test shows that this issue is actually invalid. There must be a problem elsewhere.