bgneal@12: """ bgneal@12: Views for the Smiley application. bgneal@12: """ bgneal@12: from django.shortcuts import render_to_response bgneal@12: from django.template import RequestContext bgneal@12: from django.contrib.auth.decorators import login_required bgneal@12: from django.views.decorators.http import require_GET bgneal@12: bgneal@12: from smiley.models import Smiley bgneal@12: bgneal@12: @login_required bgneal@12: @require_GET bgneal@12: def farm(request): bgneal@12: return render_to_response('smiley/smiley_farm.html', { bgneal@12: 'smilies': Smiley.objects.get_smilies(), bgneal@12: }, bgneal@12: context_instance = RequestContext(request)) bgneal@12: bgneal@12: # vim: ts=4 sw=4