comparison gpp/smiley/views.py @ 12:f408971657b9

Changed the shoutbox: posts are now made by Ajax. The smiley farm is loaded only on demand. jQuery is now in the base template. May add scrolling later.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Apr 2009 01:13:17 +0000
parents dbd703f7d63a
children 3ae999b0c53b
comparison
equal deleted inserted replaced
11:cc8eb028def1 12:f408971657b9
1 # Create your views here. 1 """
2 Views for the Smiley application.
3 """
4 from django.shortcuts import render_to_response
5 from django.template import RequestContext
6 from django.contrib.auth.decorators import login_required
7 from django.views.decorators.http import require_GET
8
9 from smiley.models import Smiley
10
11 @login_required
12 @require_GET
13 def farm(request):
14 return render_to_response('smiley/smiley_farm.html', {
15 'smilies': Smiley.objects.get_smilies(),
16 },
17 context_instance = RequestContext(request))
18
19 # vim: ts=4 sw=4