def site_features(): objects = [] for hf in get_features('home'): objects.append(hf.content_object) return { 'objects': objects, }
def home(request): home_features = get_features('home') return render_to_response( 'home/home.html', { "home_features": home_features, }, context_instance=RequestContext(request))
def site_features(): objects = [] for hf in get_features('home'): objects.append(hf.content_object) return { 'objects': objects, }
def home(request): """ Show feature objects """ # Home Features home_features = get_features('home') return render_to_response( 'homepage.html', { "home_features": home_features, }, context_instance=RequestContext(request))