gis.geos.WKBWriter.write()

write(geom) Returns the WKB of the given geometry as a Python buffer object. Example: >>> from django.contrib.gis.geos import Point, WKBWriter >>> pnt = Point(1, 1) >>> wkb_w = WKBWriter() >>> wkb_w.write(pnt) <read-only buffer for 0x103a898f0, size -1, offset 0 at 0x103a89930>

admin.InlineModelAdmin.verbose_name

InlineModelAdmin.verbose_name An override to the verbose_name found in the model’s inner Meta class.

utils.cache.patch_vary_headers()

patch_vary_headers(response, newheaders) [source] Adds (or updates) the Vary header in the given HttpResponse object. newheaders is a list of header names that should be in Vary. Existing headers in Vary aren’t removed.

gis.geoip.GeoIP.lon_lat()

GeoIP.lon_lat(query) Returns a coordinate tuple of (longitude, latitude).

utils.dateparse.parse_datetime()

parse_datetime(value) [source] Parses a string and returns a datetime.datetime. UTC offsets are supported; if value describes one, the result’s tzinfo attribute is a FixedOffset instance.

utils.http.urlquote_plus()

urlquote_plus(url, safe='') [source] A version of Python’s urllib.quote_plus() function that can operate on unicode strings. The url is first UTF-8 encoded before quoting. The returned string can safely be used as part of an argument to a subsequent iri_to_uri() call without double-quoting occurring. Employs lazy execution.

views.generic.dates.BaseMonthArchiveView

class BaseMonthArchiveView [source]

Built-in class-based generic views

Writing Web applications can be monotonous, because we repeat certain patterns again and again. Django tries to take away some of that monotony at the model and template layers, but Web developers also experience this boredom at the view level. Django’s generic views were developed to ease that pain. They take certain common idioms and patterns found in view development and abstract them so that you can quickly write common views of data without having to write too much code. We can recognize c

utils.translation.pgettext()

pgettext(context, message) [source] Translates message given the context and returns it in a unicode string. For more information, see Contextual markers.

admin.ModelAdmin.show_full_result_count

ModelAdmin.show_full_result_count Set show_full_result_count to control whether the full count of objects should be displayed on a filtered admin page (e.g. 99 results (103 total)). If this option is set to False, a text like 99 results (Show all) is displayed instead. The default of show_full_result_count=True generates a query to perform a full count on the table which can be expensive if the table contains a large number of rows.