http.HttpRequest.read()

HttpRequest.read(size=None) [source]

views.generic.dates.DayMixin.day_format

day_format The strftime() format to use when parsing the day. By default, this is '%d'.

gis.geos.PreparedGeometry.touches()

touches(other)

utils.translation.ugettext()

ugettext(message) [source] Translates message and returns it in a unicode string

views.generic.edit.FormMixin.success_url

success_url The URL to redirect to when the form is successfully processed.

test.modify_settings()

modify_settings() [source] Likewise, Django provides the modify_settings() decorator: from django.test import TestCase, modify_settings class MiddlewareTestCase(TestCase): @modify_settings(MIDDLEWARE={ 'append': 'django.middleware.cache.FetchFromCacheMiddleware', 'prepend': 'django.middleware.cache.UpdateCacheMiddleware', }) def test_cache_middleware(self): response = self.client.get('/') # ... The decorator can also be applied to test case clas

db.transaction.set_rollback()

set_rollback(rollback, using=None) [source] Setting the rollback flag to True forces a rollback when exiting the innermost atomic block. This may be useful to trigger a rollback without raising an exception. Setting it to False prevents such a rollback. Before doing that, make sure you’ve rolled back the transaction to a known-good savepoint within the current atomic block! Otherwise you’re breaking atomicity and data corruption may occur.

gis.geos.MultiLineString.closed

closed New in Django 1.10. Returns True if and only if all elements are closed. Requires GEOS 3.5.

views.generic.base.RedirectView

class django.views.generic.base.RedirectView Redirects to a given URL. The given URL may contain dictionary-style string formatting, which will be interpolated against the parameters captured in the URL. Because keyword interpolation is always done (even if no arguments are passed in), any "%" characters in the URL must be written as "%%" so that Python will convert them to a single percent sign on output. If the given URL is None, Django will return an HttpResponseGone (410). Ancestors (MRO

Built-in class-based views API

Class-based views API reference. For introductory material, see the Class-based views topic guide. Base viewsView TemplateView RedirectView Generic display viewsDetailView ListView Generic editing viewsFormView CreateView UpdateView DeleteView Generic date viewsArchiveIndexView YearArchiveView MonthArchiveView WeekArchiveView DayArchiveView TodayArchiveView DateDetailView Class-based views mixins Simple mixinsContextMixin TemplateResponseMixin Single object mixinsSingleObjectMixin Si