Re: Dumb URL question

2007-04-14 Thread Mike Axiak
Mike, You probably don't have APPEND_SLASH=True in your settings configuration. (Or you don't have commonmiddleware enabled.) This means that the common middleware won't take http://foo/bar and automatically redirect it to http://foo/bar/ to match your regex. Just a thought, though. Cheers, Mik

Re: Dumb URL question

2007-04-14 Thread Doug Van Horn
On Apr 14, 11:15 am, "Mike Hostetler" <[EMAIL PROTECTED]> wrote: > > Does anyone need more info? Because I'm stuck. > I'm not seeing the same problem. I set up a little example app with the following urls.py: urlpatterns = patterns('', (r'^admin/myapp/mymodel/', 'webcode.myapp.views.mymode

Re: Dumb URL question

2007-04-14 Thread Mike Hostetler
Thought about that, but that's why I put it just after the empty pattern. My full pattern list is this: urlpatterns = patterns('', (r'^admin/myapp/mymodel/', 'myapp.views.viewmodels'), (r'^admin/print/(?P[-\w]+)/(?P\d+)', 'satchmo.shipping.views.displayDoc'), (r'^admin/$', 'satchm

Re: Dumb URL question

2007-04-14 Thread Todd O'Bryan
Just a guess, but if the admin is enabled, that pattern is probably checked first. It's never getting to your pattern because it's matching the admin pattern. Todd On Sat, 2007-04-14 at 09:34 -0500, Mike Hostetler wrote: > I've been looking at this for a couple of hours and I have no idea > what