gis.db.models.functions.Envelope

class Envelope(expression, **extra) Availability: MySQL, PostGIS, SpatiaLite Accepts a single geographic field or expression and returns the geometry representing the bounding box of the geometry.

db.migrations.operations.AlterIndexTogether

class AlterIndexTogether(name, index_together) [source] Changes the model’s set of custom indexes (the index_together option on the Meta subclass).

db.models.as_vendorname()

as_vendorname(self, compiler, connection) Works like as_sql() method. When an expression is compiled by compiler.compile(), Django will first try to call as_vendorname(), where vendorname is the vendor name of the backend used for executing the query. The vendorname is one of postgresql, oracle, sqlite, or mysql for Django’s built-in backends.

admin.ModelAdmin.actions_on_bottom

ModelAdmin.actions_on_bottom Controls where on the page the actions bar appears. By default, the admin changelist displays actions at the top of the page (actions_on_top = True; actions_on_bottom = False).

urls.ResolverMatch.url_name

url_name The name of the URL pattern that matches the URL.

utils.http.base36_to_int()

base36_to_int(s) [source] Converts a base 36 string to an integer. On Python 2 the output is guaranteed to be an int and not a long.

gis.geos.PreparedGeometry.contains()

contains(other)

Databases

Django attempts to support as many features as possible on all database backends. However, not all database backends are alike, and we’ve had to make design decisions on which features to support and which assumptions we can make safely. This file describes some of the features that might be relevant to Django usage. Of course, it is not intended as a replacement for server-specific documentation or reference manuals. General notes Persistent connections Persistent connections avoid the overhea

utils.feedgenerator.SyndicationFeed.root_attributes()

root_attributes() [source] Return extra attributes to place on the root (i.e. feed/channel) element. Called from write().

gis.db.models.functions.ForceRHR

class ForceRHR(expression, **extra) Availability: PostGIS Accepts a single geographic field or expression and returns a modified version of the polygon/multipolygon in which all of the vertices follow the right-hand rule.