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.
>> 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
>>
>>
2 matches
Mail list logo