Match multiple URLs to the same pattern

2015-07-14 Thread Mathew Byrne
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.

Re: Match multiple URLs to the same pattern

2015-07-16 Thread Mathew Byrne
>> What do you mean by flat URL structure? >> >> In any case you may have a controller called by the URL dispatcher that >> decides which view to use to process the request. >> >> No need to complicate on writing you own dispatcher replacement >> >>