Yes this works -- <views.py> @view_config(route_name='site1', renderer='templates/site1.pt') </views.py>
but not /with/ the 'name' argument (which gives the same error as that in my previous post) -- <views.py> @view_config(name='site1_view', route_name='site1', renderer='templates/site1.pt') </views.py> Maybe the doc could have made it clearer that view_config() 'name' and 'route_name' arguments can not co-exist (for URL dispatch?). Thanks again. Jerry On Dec 13, 11:48 am, blaflamme <blaise.lafla...@gmail.com> wrote: > You must not define the view in your route, that should work: > > <__init__.py> > config.add_route('site1', '/site1') > config.scan() > </__init__.py> > > <views.py> > @view_config(route_name='site1', renderer='templates/site1.pt') > def site1_view(request): > return {'foo': 'bar'} > </views.py> > > Blaise -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-de...@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.