Mercurial > public > sg101
comparison gpp/potd/views.py @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | 7b6540b185d9 |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 """ | |
2 Views for the POTD application. | |
3 """ | |
4 | |
5 from django.shortcuts import render_to_response | |
6 from django.template import RequestContext | |
7 | |
8 from potd.models import Current | |
9 | |
10 | |
11 def view(request): | |
12 potd = Current.objects.get_current_photo() | |
13 return render_to_response('potd/view.html', { | |
14 'potd': potd, | |
15 }, | |
16 context_instance = RequestContext(request)) |