http://stackoverflow.com/questions/8771070/unable-dynamic-changing-urlpattern-when-changing-database
I
An alternative method would be to either create a super pattern that calls a view, which in turn makes a DB call. Another approach is to handle this in a middleware class where you test for a 404 error, check if the pattern is likely to be one of your categories, and
django /contrib/flatpages
code for a straightforward implementation of this approach.For how to use middleware class, there is another link for the reference.
http://stackoverflow.com/questions/753909/django-middleware-urls
No comments:
Post a Comment