Skip to content
Class Based Views backported from Django trunk
Python
Find file
Latest commit 4daffa4 Jul 28, 2011 @brutasse 0.2 on PyPI
Failed to load latest commit information.
cbv
diffs django updates for us too Jan 16, 2011
.gitignore initial commit Dec 7, 2010
LICENSE
MANIFEST.in initial commit Dec 7, 2010
README.rst
setup.py 0.2 on PyPI Jul 28, 2011

README.rst

Django Class Based Views

This is Django Class Based Views taken from Django trunk.

Use CBVs like this:

import cbv as generic

Then write your class-based views as expained in the Django documentation:

class SomeView(generic.TemplateView):
    template_name = 'some_template.html'

You will need the following middleware installed:

cbv.middleware.DeferredRenderingMiddleware

Once you're ready to use Django 1.3, you'll only need to switch the import statement to:

from django.views import generic
Something went wrong with that request. Please try again.