gis.geos.GEOSGeometry.simple

GEOSGeometry.simple Returns a boolean indicating whether the geometry is ‘simple’. A geometry is simple if and only if it does not intersect itself (except at boundary points). For example, a LineString object is not simple if it intersects itself. Thus, LinearRing and Polygon objects are always simple because they do cannot intersect themselves, by definition.

urls.ResolverMatch.func

func The view function that would be used to serve the URL

db.models.Options.proxy

Options.proxy If proxy = True, a model which subclasses another model will be treated as a proxy model.

db.backends.base.schema.BaseDatabaseSchemaEditor.execute()

BaseDatabaseSchemaEditor.execute(sql, params=[]) [source] Executes the SQL statement passed in, with parameters if supplied. This is a simple wrapper around the normal database cursors that allows capture of the SQL to a .sql file if the user wishes.

core.files.File.read()

read(num_bytes=None) Read content from the file. The optional size is the number of bytes to read; if not specified, the file will be read to the end.

http.HttpResponse.charset

HttpResponse.charset A string denoting the charset in which the response will be encoded. If not given at HttpResponse instantiation time, it will be extracted from content_type and if that is unsuccessful, the DEFAULT_CHARSET setting will be used.

gis.geoip2.GeoIP2.country()

GeoIP2.country(query) Returns a dictionary with the country code and country for the given query.

db.models.query.QuerySet.select_for_update()

select_for_update(nowait=False) Returns a queryset that will lock rows until the end of the transaction, generating a SELECT ... FOR UPDATE SQL statement on supported databases. For example: entries = Entry.objects.select_for_update().filter(author=request.user) All matched entries will be locked until the end of the transaction block, meaning that other transactions will be prevented from changing or acquiring locks on them. Usually, if another transaction has already acquired a lock on on

db.models.Aggregate.function

function A class attribute describing the aggregate function that will be generated. Specifically, the function will be interpolated as the function placeholder within template. Defaults to None.

views.decorators.cache.cache_control()

cache_control(**kwargs) [source] This decorator patches the response’s Cache-Control header by adding all of the keyword arguments to it. See patch_cache_control() for the details of the transformation.