gremmie@1: """ gremmie@1: Views for the POTD application. gremmie@1: """ gremmie@1: gremmie@1: from django.shortcuts import render_to_response gremmie@1: from django.template import RequestContext gremmie@1: gremmie@1: from potd.models import Current gremmie@1: gremmie@1: gremmie@1: def view(request): gremmie@1: potd = Current.objects.get_current_photo() gremmie@1: return render_to_response('potd/view.html', { gremmie@1: 'potd': potd, gremmie@1: }, gremmie@1: context_instance = RequestContext(request))