Re: Multiple apps on one template

2008-03-08 Thread James Bennett
On Sat, Mar 8, 2008 at 2:52 PM, DuncanM <[EMAIL PROTECTED]> wrote: > And I have a home page that I would like to display a "widget" (5 most > relevant of each) on that home page... > In the current situation I have created the view in the Events > application. How would I create a view extern

Re: Multiple apps on one template

2008-03-08 Thread DuncanM
Nick, Thanks for the reply. How would I scale something like this though? Imagine I had the apps: News, Events, Menus, Offers And I have a home page that I would like to display a "widget" (5 most relevant of each) on that home page... In the current situation I have created the view in the Eve

Re: Multiple apps on one template

2008-03-08 Thread Nick Fishman
DuncanM wrote: > My events.views: > [code] > from sakushi.events.models import Event > from sakushi.news.models import News > from django.shortcuts import get_object_or_404, render_to_response > from django.http import HttpResponseRedirect > > def events(request): > latest_events_list = Event.ob