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.

Reply via email to