On Jul 12, 1:22 am, Gisborne <[email protected]> wrote: > TurboGears 2.1. I did: > > $paster restcontroller thing things > > Then in my routing.py, I have: > > map = Mapper(… > map.minimization=False > > map.resource('thing', 'things') > > Then I have a controllers/things.py, which has this: > > … > class ThingsController(self, format='html') > … > > and so on, all just generated by paster. > > I fire this up, go to /things, and I get a 404 error. > > Okay, so: > > - can anyone tell me from here what I've done wrong?
It's hard to tell without seeing all of your routes. A route that you defined before this one could be matching. > - (more importantly) how do I get more information than just "404"? > I've got all my logging set to debug in my config file. If this was > Rails, I'd have a detailed log being produced that tells me what > controller it was going to, what arguments it received, and so on. If logging is set up properly in your INI file, you should be able to see similar logging info. I'll post an example later when I get to my dev machine. Also, to get into the debugger, you'd have to make sure your StatusCodeRedirect middleware isn't catching 404s. -- 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.
