Django - Static content display based on URL
Posted
by Steven Potter
on Stack Overflow
See other posts from Stack Overflow
or by Steven Potter
Published on 2010-04-24T19:37:49Z
Indexed on
2010/04/24
19:43 UTC
Read the original article
Hit count: 210
django
|content-management
I'm working on a Django site with a basic three column design. Left column navigation, center column content and right column URL specific content blocks.
My question is about the best method of controlling the URL specific content blocks in the right column.
I am thinking of something along the lines of the Flatpages app that will make the content available to the template context if the URL matches a pre-determined pattern (perhaps regex?).
Does anyone know if such an app already exists?
If not, I am looking for some advice about the best way to implement it. Particularly in relation to the matching of patterns to the current URL. Is there any good way to re-use parts of the Django URL dispatcher for this use?
© Stack Overflow or respective owner