gis.geoip2.GeoIP2.geos()

GeoIP2.geos(query) Returns a Point object corresponding to the query.

db.models.Options.permissions

Options.permissions Extra permissions to enter into the permissions table when creating this object. Add, delete and change permissions are automatically created for each model. This example specifies an extra permission, can_deliver_pizzas: permissions = (("can_deliver_pizzas", "Can deliver pizzas"),) This is a list or tuple of 2-tuples in the format (permission_code, human_readable_permission_name).

admin.models.LogEntry.get_change_message()

LogEntry.get_change_message() New in Django 1.10. Formats and translates change_message into the current user language. Messages created before Django 1.10 will always be displayed in the language in which they were logged.

views.generic.dates.BaseDateListView.get_dated_queryset()

get_dated_queryset(**lookup) [source] Returns a queryset, filtered using the query arguments defined by lookup. Enforces any restrictions on the queryset, such as allow_empty and allow_future.

utils.timezone.get_default_timezone()

get_default_timezone() [source] Returns a tzinfo instance that represents the default time zone.

Performance and optimization

This document provides an overview of techniques and tools that can help get your Django code running more efficiently - faster, and using fewer system resources. Introduction Generally one’s first concern is to write code that works, whose logic functions as required to produce the expected output. Sometimes, however, this will not be enough to make the code work as efficiently as one would like. In this case, what’s needed is something - and in practice, often a collection of things - to impr

gis.gdal.OGRGeometry.geom_name

geom_name Returns the name of the type of this geometry: >>> polygon.geom_name 'POLYGON'

sites.requests.RequestSite.__init__()

__init__(request) Sets the name and domain attributes to the value of get_host().

db.models.fields.files.FieldFile.name

FieldFile.name The name of the file including the relative path from the root of the Storage of the associated FileField.

gis.gdal.GeometryCollection

class GeometryCollection add(geom) Adds a geometry to this geometry collection. Not applicable to other geometry types.