diff options
Diffstat (limited to 'app/blog/views.py')
-rw-r--r-- | app/blog/views.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/blog/views.py b/app/blog/views.py index 93d7488..0e887bd 100644 --- a/app/blog/views.py +++ b/app/blog/views.py @@ -4,16 +4,18 @@ from django.http import Http404 from django.conf import settings # from django.views.generic import ListView -from blog.models import Entry +from blog.models import Entry, HomepageCurrator from locations.models import Region, Country from photos.models import Photo def home(request): + obj = HomepageCurrator.objects.get(pk=1) + template = obj.template_name context = { - 'object_list': Entry.objects.filter(status__exact=1,home_page_banner=1).select_related()[:4], + 'homepage': obj, } - return render_to_response('archives/homepage.html', context, context_instance=RequestContext(request)) + return render_to_response(template, context, context_instance=RequestContext(request)) def entry_detail(request, year, month, slug): |