forms.Form.is_bound

Form.is_bound If you need to distinguish between bound and unbound form instances at runtime, check the value of the form’s is_bound attribute: >>> f = ContactForm() >>> f.is_bound False >>> f = ContactForm({'subject': 'hello'}) >>> f.is_bound True Note that passing an empty dictionary creates a bound form with empty data: >>> f = ContactForm({}) >>> f.is_bound True If you have a bound Form instance and want to change the data somehow,

gis.gdal.GDALRaster.width

width The width of the source in pixels (X-axis). >>> GDALRaster({'width': 10, 'height': 20, 'srid': 4326}).width 10

staticfiles.testing.StaticLiveServerTestCase

class testing.StaticLiveServerTestCase This unittest TestCase subclass extends django.test.LiveServerTestCase. Just like its parent, you can use it to write tests that involve running the code under test and consuming it with testing tools through HTTP (e.g. Selenium, PhantomJS, etc.), because of which it’s needed that the static assets are also published. But given the fact that it makes use of the django.contrib.staticfiles.views.serve() view described above, it can transparently overlay a

contenttypes.models.ContentTypeManager.get_for_models()

get_for_models(*models, for_concrete_models=True) Takes a variadic number of model classes, and returns a dictionary mapping the model classes to the ContentType instances representing them. for_concrete_models=False allows fetching the ContentType of proxy models.

gis.gdal.GDALRaster.extent

extent Extent (boundary values) of the raster source, as a 4-tuple (xmin, ymin, xmax, ymax) in the spatial reference system of the source. >>> rst = GDALRaster({'width': 10, 'height': 20, 'srid': 4326}) >>> rst.extent (0.0, -20.0, 10.0, 0.0) >>> rst.origin.x = 100 >>> rst.extent (100.0, -20.0, 110.0, 0.0)

http.HttpResponseBadRequest

class HttpResponseBadRequest [source] Acts just like HttpResponse but uses a 400 status code.

forms.SplitDateTimeWidget.date_format

date_format Similar to DateInput.format

dispatch.Signal.disconnect()

Signal.disconnect(receiver=None, sender=None, dispatch_uid=None) [source] To disconnect a receiver from a signal, call Signal.disconnect(). The arguments are as described in Signal.connect(). The method returns True if a receiver was disconnected and False if not. The receiver argument indicates the registered receiver to disconnect. It may be None if dispatch_uid is used to identify the receiver. Deprecated since version 1.9: The weak argument is deprecated as it has no effect. It will be

gis.db.models.functions.Intersection

class Intersection(expr1, expr2, **extra) Availability: MySQL (≥ 5.6.1), PostGIS, Oracle, SpatiaLite Accepts two geographic fields or expressions and returns the geometric intersection between them. Changed in Django 1.10: MySQL support was added.

admin.AdminSite.site_title

AdminSite.site_title The text to put at the end of each admin page’s <title> (a string). By default, this is “Django site admin”.