Django documentation

Results

Class-based views

...class-based views reference documentation. Introduction to Class-based views Class-based generic views Form handling with class-based views Using mixins with class-based views Basic examples Djan...

Class-based views

...Class-based views Class-based views API reference. For introductory material, see Class-based views. Base views View TemplateView RedirectView Generic display views DetailView ListView Generic e...

Base views

...class-based views. Many of Django’s built-in class-based views inherit from other class-based views or various mixins. Because this inheritance chain is very important, the ancestor classes are ...

Class-based generic views - flattened index

...class tree are represented under that view. For the reference documentation organized by the class which defines the behavior, see Class-based views Simple generic views View class View Attribut...

Form handling with class-based views

...class-based views here; we don’t have to write any logic ourselves: # views.py from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.core.urlresolvers import rever...

Generic display views

...views The two following generic class-based views are designed to display data. On many projects they are typically the most commonly used views. DetailView class django.views.generic.detail.Detail...

Introduction to Class-based views

...Class-based views Class-based views provide an alternative way to implement views as Python objects instead of functions. They do not replace function-based views, but have certain differences and adv...

Class-based views mixins

...Class-based views mixins Class-based views API reference. For introductory material, see Using mixins with class-based views. Simple mixins Single object mixins Multiple object mixins Editing mixins...

Multiple object mixins

...class django.views.generic.list.MultipleObjectTemplateResponseMixin A mixin class that performs template-based response rendering for views that operate upon a list of object instances. Requires that ...

Generic editing views

...views.generic.base.TemplateResponseMixin django.views.generic.edit.BaseDeleteView django.views.generic.edit.DeletionMixin django.views.generic.detail.BaseDetailView django.views.generic.detail.SingleO...

Single object mixins

...class django.views.generic.detail.SingleObjectTemplateResponseMixin A mixin class that performs template-based response rendering for views that operate upon a single object instance. Requires that th...

Simple mixins

...class-based generic views include a view variable that points to the View instance. Use alters_data where appropriate Note that having the view instance in the template context may expose potentially...

Editing mixins

...views: django.views.generic.edit.FormMixin django.views.generic.edit.ModelFormMixin django.views.generic.edit.ProcessFormView django.views.generic.edit.DeletionMixin Note Examples of how these are ...

Date-based mixins

...BaseDateListView class BaseDateListView A base class that provides common behavior for all date-based views. There won’t normally be a reason to instantiate BaseDateListView; instantiate one o...

Generic date views

...class BaseArchiveIndexView class BaseYearArchiveView class BaseMonthArchiveView class BaseWeekArchiveView class BaseDayArchiveView class BaseTodayArchiveView class BaseDateDeta...

Django 1.2 beta 1 release notes

...class-based approach. Old style function-based test runners will still work, but should be updated to use the new class-based runners. Syndication feeds The django.contrib.syndication.feeds.Feed cla...

Class-based generic views

...class of a generic view, then you may find it more effective to write just the code you need, using your own class-based or functional views. More examples of generic views are available in some third...

Django 1.3 alpha 1 release notes

...Class-based Generic Views for more details. There is also a document to help you convert your function-based generic views to class-based views. Logging Django 1.3 adds framework-level support for P...

The messages framework

...Class Based Views class views.SuccessMessageMixin Adds a success message attribute to FormView based classes get_success_message(cleaned_data) cleaned_data is the cleaned data from the form which ...

Middleware

...class SetRemoteAddrFromForwardedFor This middleware was removed in Django 1.1. See the release notes for details. Locale middleware class LocaleMiddleware Enables language selection based on d...

« Previous | Next »

Questions/Feedback

Having trouble? We'd like to help!