Skip to main content

Django class-based views, backported from Django trunk

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-cbv-0.2.tar.gz (19.6 kB view details)

Uploaded Source

File details

Details for the file django-cbv-0.2.tar.gz.

File metadata

  • Download URL: django-cbv-0.2.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-cbv-0.2.tar.gz
Algorithm Hash digest
SHA256 7761994190b916d4104094966205b15605d708ede7eda6354608c900635363c3
MD5 3af842a5a7c66ca422272bdd9db2cb66
BLAKE2b-256 f8c142bb5dcf63a12d6fe95311845f329633909941cc485071793dd9d89669ab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page