I have an application that requires a flat URL structure for multiple 
different views.  The single route r"^[\w\-]+" should start by looking at 
slugs for one Model class, and move onto a Category Model class if no match 
is found, then a Vendor model class, and lastly down to the flatpages app.

I'd like to separate all these models into separate views, but regular 
django urlpatterns wont work here since only the first match is followed.

What's the best way to implement this requirement?  Is there a way I can 
create my own URL matcher and dispatch to a view based on custom logic?  Is 
there a way to re-dispatch a request after the point at which a match was 
made?

Thanks,

Mat

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4124aceb-0572-4ee9-ad11-63eb71f71c01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to