admin.AdminSite.app_index_template

AdminSite.app_index_template Path to a custom template that will be used by the admin site app index view.

db.models.ManyToManyField

class ManyToManyField(othermodel, **options) [source] A many-to-many relationship. Requires a positional argument: the class to which the model is related, which works exactly the same as it does for ForeignKey, including recursive and lazy relationships. Related objects can be added, removed, or created with the field’s RelatedManager.

gis.gdal.SpatialReference.proj4

proj4 Alias for SpatialReference.proj.

gis.widgets.BaseGeometryWidget.template_name

BaseGeometryWidget.template_name The template used to render the map widget. You can pass widget attributes in the same manner that for any other Django widget. For example: from django.contrib.gis import forms class MyGeoForm(forms.Form): point = forms.PointField(widget= forms.OSMWidget(attrs={'map_width': 800, 'map_height': 500}))

gis.geoip.GeoIP.country_name_by_name()

GeoIP.country_name_by_name(query)

gis.gdal.SpatialReference.from_esri()

from_esri() Morphs this SpatialReference from ESRI’s format to EPSG

admin.ModelAdmin.get_prepopulated_fields()

ModelAdmin.get_prepopulated_fields(request, obj=None) The get_prepopulated_fields method is given the HttpRequest and the obj being edited (or None on an add form) and is expected to return a dictionary, as described above in the ModelAdmin.prepopulated_fields section.

gis.db.models.functions.Centroid

class Centroid(expression, **extra) Availability: MySQL, PostGIS, Oracle, SpatiaLite Accepts a single geographic field or expression and returns the centroid value of the geometry.

gis.geos.GEOSGeometry.empty

GEOSGeometry.empty Returns whether or not the set of points in the geometry is empty.

forms.TypedChoiceField.empty_value

empty_value The value to use to represent “empty.” Defaults to the empty string; None is another common choice here. Note that this value will not be coerced by the function given in the coerce argument, so choose it accordingly.