/johnny/tests/testapp/views.py
https://bitbucket.org/jmoiron/johnny-cache/ · Python · 12 lines · 9 code · 1 blank · 2 comment · 0 complexity · b4860e02f3e356dd7dc91b65b9b5e9c5 MD5 · raw file
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- """Views for Johnny's testapp."""
- from django.shortcuts import render_to_response
- from models import *
- def template_queries(request):
- """Render a simple template that will perform a query."""
- books = Book.objects.all()
- return render_to_response('template_queries.html', locals())