Just to add: config.add_view('myproject.views.view2', route_name='page') results in a conflict error. (I've done some reading about this in the documentation)
config.add_view('myproject.views.view2', route_name='page') On Mar 14, 10:05 pm, AwaisMuzaffar <awais1...@googlemail.com> wrote: > I have the following view: > > def view1(request): > varOne = 'test string' > return render_to_response('page.mak', {'varOne':varOne}, > request=request) > > Which gets invoked with: > config.add_route('page', '/mypage/', view='myproject.views.view1') > > Next, I have another view: > def view2(request): > varTwo = 'test string 2' > return render_to_response('page.mak', {'varTwo':varTwo}, > request=request) > > How do I invoke this view when view1 is invoked or when the path name > is '/mypage/' > > I have tried: > config.add_view('myproject.views.view2', name='my-blog') > > and: > config.add_view('myproject.views.view2', route_name='page') > > But nothing seems to invoke view2. (Note: both render the same > template) > > Kind Regards, > Awais M. -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@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.