That type of system is usually called a "Tumblelog" - and you can find a lot of info in these two articles below. Ryan's uses generic foreign keys and an "intermediary" object, so to speak, so that you just query that one object and it knows about all instances of your app1/app2/app3 models. This would require a bit of re-processing of data, basically just doing looping over all the items in app1/app2/app3 and creating the necessary intermediate (which he calls StreamItem). Alex's "Timeline view" covers how to take your app1.object.all / ... info and merge them into one with no intermediate (make sure you read the comments, there is additional helpful discussion on performance and other methods there)
Adam http://ryanberg.net/blog/2008/jun/24/basics-creating-tumblelog-django/ http://lazypython.blogspot.com/2008/11/timeline-view-in-django.html 2008/12/10 davidc <da...@daave.com>: > > Hi, I'm new to Django and am after some advice :) > > I have a variety of applications in my project, each with different > data models, that exist at /app1 /app2 /app3 etc. Each of them > contains a 'newsfeed' style index page with a series of entries and > comments, but the format of the entries differs between the > applications. > > I want to create a 'master' homepage for the project (perhaps in a > 'homepage' application), that combines all the other applications' > 'newsfeeds' (including comments). I don't want to have all the entries > from app1, followed by all from app2, etc.. I want to mash them all > together (in reverse-chronological order), but each entry needs to be > rendered with its corresponding application's template snippet. > > Any thoughts on the best way to achieve this? Thanks! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---