PageRenderTime 28ms CodeModel.GetById 25ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 1#!/usr/bin/env python
 2# -*- coding: utf-8 -*-
 3
 4"""Views for Johnny's testapp."""
 5
 6from django.shortcuts import render_to_response
 7from models import *
 8
 9def template_queries(request):
10    """Render a simple template that will perform a query."""
11    books = Book.objects.all()
12    return render_to_response('template_queries.html', locals())