db.models.ForeignKey.on_delete

ForeignKey.on_delete When an object referenced by a ForeignKey is deleted, Django will emulate the behavior of the SQL constraint specified by the on_delete argument. For example, if you have a nullable ForeignKey and you want it to be set null when the referenced object is deleted: user = models.ForeignKey( User, models.SET_NULL, blank=True, null=True, ) Deprecated since version 1.9: on_delete will become a required argument in Django 2.0. In older versions it defaults to

syndication.views.Feed

class views.Feed This example illustrates all possible attributes and methods for a Feed class: from django.contrib.syndication.views import Feed from django.utils import feedgenerator class ExampleFeed(Feed): # FEED TYPE -- Optional. This should be a class that subclasses # django.utils.feedgenerator.SyndicationFeed. This designates # which type of feed this should be: RSS 2.0, Atom 1.0, etc. If # you don't specify feed_type, your feed will be RSS 2.0. This # should be

gis.forms.PointField

class PointField

forms.URLField.max_length

max_length

gis.gdal.OGRGeometry.coords

coords An alias for tuple.

gis.geos.GEOSGeometry.project()

GEOSGeometry.project(point)

Clickjacking Protection

The clickjacking middleware and decorators provide easy-to-use protection against clickjacking. This type of attack occurs when a malicious site tricks a user into clicking on a concealed element of another site which they have loaded in a hidden frame or iframe. An example of clickjacking Suppose an online store has a page where a logged in user can click “Buy Now” to purchase an item. A user has chosen to stay logged into the store all the time for convenience. An attacker site might create a

admin.InlineModelAdmin

class InlineModelAdmin

gis.geos.GEOSGeometry.extent

GEOSGeometry.extent This property returns the extent of this geometry as a 4-tuple, consisting of (xmin, ymin, xmax, ymax).

template.backends.jinja2.Jinja2

class Jinja2 [source] Requires Jinja2 to be installed: $ pip install Jinja2 Set BACKEND to 'django.template.backends.jinja2.Jinja2' to configure a Jinja2 engine. When APP_DIRS is True, Jinja2 engines look for templates in the jinja2 subdirectory of installed applications. The most important entry in OPTIONS is 'environment'. It’s a dotted Python path to a callable returning a Jinja2 environment. It defaults to 'jinja2.Environment'. Django invokes that callable and passes other options as ke