I am getting *ConfigurationError('Unknown predicate values: %r' % (kw,))* while
rendering mako template. Below is the structure of my pyramid project.
My pyramid project tree.
|-- web|-- myweb
|-- templates
|-- index.mak
|-- __init__.py
|-- views.py|-- development.ini|-- production.ini
*web/myweb/views.py*
class Main(object):def __init__(self, request):
self.request = requestdef __call__(self):
return {}
*web/myweb/__init__.py*
config.add_route('main', '/',
view='opensilo.views.Main',
renderer='index.mako')
This where i am getting error such as
raise ConfigurationError('Unknown predicate values: %r' % (kw,))
pyramid.exceptions.ConfigurationExecutionError: <class
pyramid.exceptions.ConfigurationError'>: Unknown predicate values:
{'renderer': 'index.mako', 'view': 'myweb.views.Main'}
in: Line 33 of file /home/user/project/web/myweb/__init__.py:
renderer='index.mako')
Here are my .ini files
*development.ini*
[app:myweb]
mako.directories = web:myweb:templates
*production.ini*
[app:myweb]
mako.directories = web:myweb:templates
I don't know what i am missing and cause of this error.
Thanks,
Abdul Wahid
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.