skip to navigation
skip to content

Not Logged In

django-cbv 0.2

Django class-based views, backported from Django trunk

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
 
File Type Py Version Uploaded on Size
django-cbv-0.2.tar.gz (md5) Source 2011-07-28 19KB
  • Downloads (All Versions):
  • 73 downloads in the last day
  • 309 downloads in the last week
  • 759 downloads in the last month