On Mon, 2011-08-29 at 15:09 -0700, Ben Sizer wrote:
...
> > config.add_route('all_libs', '/all_libs')
> > config.add_view(views.view_all_libraries, 'all_libs',
> > renderer='myapp:templates/view_libraries.pt')
...
> Having got the app working thanks to Chris, I still have this problem,
> but with a slightly different message now.
>
>
> 2011-08-29 17:04:23,792 route matched for url http://blah.blah.com/all_libs;
> route_name: 'all_libs', path_info: '/all_libs', pattern: '/all_libs',
> matchdict: {}, predicates: []
> 2011-08-29 17:04:23,792 debug_notfound of url http://blah.blah.com/all_libs;
> path_info: '/all_libs', context: <myapp.resources.Root object at
> 0xa0b596c>, view_name: u'', subpath: (), traversed: (), root:
> <myapp.resources.Root object at 0xa0b596c>, vroot:
> <myapp.resources.Root object at 0xa0b596c>, vroot_path: ()
>
> This doesn't tell me anything useful. What can I do to get some more
> information out of this look-up mechanism?
Didn't notice this before but I think you meant to say:
config.add_view(views.view_all_libraries,
route_name='all_libs',
renderer='myapp:templates/view_libraries.pt')
Note the "route_name=" in there.
- C
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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-discuss?hl=en.