gis.gdal.SpatialReference.proj

proj Returns the PROJ.4 representation for this spatial reference.

db.models.Model.save()

Model.save(force_insert=False, force_update=False, using=DEFAULT_DB_ALIAS, update_fields=None) [source] If you want customized saving behavior, you can override this save() method. See Overriding predefined model methods for more details. The model save process also has some subtleties; see the sections below.

test.Client.put()

put(path, data='', content_type='application/octet-stream', follow=False, secure=False, **extra) [source] Makes a PUT request on the provided path and returns a Response object. Useful for testing RESTful interfaces. When data is provided, it is used as the request body, and a Content-Type header is set to content_type. The follow, secure and extra arguments act the same as for Client.get().

db.models.Field.many_to_many

Field.many_to_many Boolean flag that is True if the field has a many-to-many relation; False otherwise. The only field included with Django where this is True is ManyToManyField.

One-to-one relationships

To define a one-to-one relationship, use OneToOneField. In this example, a Place optionally can be a Restaurant: from django.db import models class Place(models.Model): name = models.CharField(max_length=50) address = models.CharField(max_length=80) def __str__(self): # __unicode__ on Python 2 return "%s the place" % self.name class Restaurant(models.Model): place = models.OneToOneField( Place, on_delete=models.CASCADE, primary_key

gis.geos.GEOSGeometry.clone()

GEOSGeometry.clone() This method returns a GEOSGeometry that is a clone of the original.

gis.geos.GEOSGeometry.srid

GEOSGeometry.srid Property that may be used to retrieve or set the SRID associated with the geometry. For example: >>> pnt = Point(5, 23) >>> print(pnt.srid) None >>> pnt.srid = 4326 >>> pnt.srid 4326

GeoDjango Utilities

The django.contrib.gis.utils module contains various utilities that are useful in creating geospatial Web applications. LayerMapping data import utilityExample LayerMapping API Troubleshooting OGR Inspectionogrinspect mapping GeoJSON Serializer

views.generic.dates.DayMixin.day

day Optional The value for the day, as a string. By default, set to None, which means the day will be determined using other means.

views.generic.dates.TodayArchiveView

class TodayArchiveView [source] A day archive page showing all objects for today. This is exactly the same as django.views.generic.dates.DayArchiveView, except today’s date is used instead of the year/month/day arguments. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseTodayArchiveView django.views.generic.dates.BaseDayArchiveView django.views.generic.dates.YearMixin django.views.gene