On Aug 29, 9:14 pm, Ben Sizer <[email protected]> wrote: > Hi all, I just started another Pyramid project with my WebFaction > account, and am having problems debugging it because there's not much > information being logged, as far as I can tell. > > I set up a view/route like this, based loosely on the Wiki example: > > config.add_route('all_libs', '/all_libs') > config.add_view(views.view_all_libraries, 'all_libs', > renderer='myapp:templates/view_libraries.pt') > > I start the app like this: > > ./bin/paster serve development.ini > > Then I visit /all_libs with my browser, but instead of seeing my page, > I get this: > > 404 Not Found > The resource could not be found. > > /all_libs
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? -- Ben Sizer -- 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.
