http.HttpResponseNotModified

class HttpResponseNotModified [source] The constructor doesn’t take any arguments and no content should be added to this response. Use this to designate that a page hasn’t been modified since the user’s last request (status code 304).

db.models.Expression.asc()

asc() Returns the expression ready to be sorted in ascending order.

utils.feedgenerator.SyndicationFeed.write()

write(outfile, encoding) [source] Outputs the feed in the given encoding to outfile, which is a file-like object. Subclasses should override this.

views.generic.detail.SingleObjectMixin.model

model The model that this view will display data for. Specifying model = Foo is effectively the same as specifying queryset = Foo.objects.all(), where objects stands for Foo’s default manager.

views.generic.base.View.options()

options(request, *args, **kwargs) Handles responding to requests for the OPTIONS HTTP verb. Returns a response with the Allow header containing a list of the view’s allowed HTTP method names.

views.generic.detail.SingleObjectMixin.slug_url_kwarg

slug_url_kwarg The name of the URLConf keyword argument that contains the slug. By default, slug_url_kwarg is 'slug'.

messages.storage.cookie.CookieStorage

class storage.cookie.CookieStorage This class stores the message data in a cookie (signed with a secret hash to prevent manipulation) to persist notifications across requests. Old messages are dropped if the cookie data size would exceed 2048 bytes.

gis.gdal.GDALRaster.bands

bands List of all bands of the source, as GDALBand instances. >>> rst = GDALRaster({"width": 1, "height": 2, 'srid': 4326, ... "bands": [{"data": [0, 1]}, {"data": [2, 3]}]}) >>> len(rst.bands) 2 >>> rst.bands[1].data() array([[ 2., 3.]], dtype=float32)

views.generic.base.RedirectView.url

url The URL to redirect to, as a string. Or None to raise a 410 (Gone) HTTP error.

test.Client.trace()

trace(path, follow=False, secure=False, **extra) [source] Makes a TRACE request on the provided path and returns a Response object. Useful for simulating diagnostic probes. Unlike the other request methods, data is not provided as a keyword parameter in order to comply with RFC 7231#section-4.3.8, which mandates that TRACE requests must not have a body. The follow, secure, and extra arguments act the same as for Client.get().