So I want to realise a small content management system. I want to make an 
app that allows for the creation of site content. A site content element 
can be a headline, an image, a block of text, etc... Individual content 
elements will be associated with a content container, which is essentially 
a list. A simple blog article would for instance contain a headline and a 
text block. The site content app will also provide its services for other 
apps. For instance there will be an archive for media files (images, music 
in the form of mp3, videos, etc...). So another content container would be 
a music album. It would be made up of a headline, an image (the cover 
artwork) and a list of music files. Now here it gets a little bit more 
complex. The media files will be handled by yet another app. So the content 
container for a music album would incorporate the headline from the site 
content app, but it would also incorporate the media files from the media 
files app, yet it would be displayed by the archive app.
The before mentioned apps don't really have a hierarchical relationship. My 
instinct tells me that all the content container elements (blog article, 
music album, image gallery, etc...) should all be living insidethe site 
content app. However the site content app would then depend on all sorts of 
models from other apps. So is this the correct way to go about it? I want 
the site content app to be pluggable by itself. Now for the more complex 
container elements I need external models. So I'm thinking I would do a 
conditional import, kinda like this:

try:
    import jsonexcept ImportError:
    import simplejson as json

So then the more complex container models would only be available if the 
needed apps and their models are present.
Any advice on this design approach is very welcome.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e479e9bf-0bbd-4197-8930-1f2c65d2689f%40googlegroups.com.

Reply via email to