dc
django-cbv
pypi i django-cbv
dc

django-cbv

Class Based Views backported from Django trunk

by Bruno Renié

0.2 (see all)License:BSD
pypi i django-cbv
Readme

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'

.. _Django documentation: http://docs.djangoproject.com/en/dev/topics/class-based-views

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

GitHub Stars

15

LAST COMMIT

11yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
0.2
11yrs ago
0.1.5
11yrs ago
0.1.4
12yrs ago
0.1.3
12yrs ago
No alternatives found
No tutorials found
Add a tutorial