Pass it in to the Configurator as a "setting" while setting up your
application:
config = Configurator(settings={'mako.directories':['house:templates']})
- C
On Fri, 2011-01-21 at 12:35 -0800, svaha wrote:
> With Pyramid and mod_wsgi, to use mako templates you just add this
> line to development.ini:
> mako.directories = house:templates
>
> Unfortunately, Pyramid in the Google App Engine doesn't have a
> development.ini file. What is the best way to pass this environment
> variable without placing it in development.ini?
>
> Error I get:
> File "/Users/tormenta/Documents/Python/appengine-monkey/pyramidapp/app/
> lib/python/pyramid-1.0a9-py2.5.egg/pyramid/mako_templating.py", line
> 74, in renderer_factory
> 'Mako template used without a ``mako.directories`` setting')
> ConfigurationError: Mako template used without a mako.directories
> setting
>
--
You received this message because you are subscribed to the Google Groups
"pylons-devel" 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/pylons-devel?hl=en.