utils.http.base36_to_int()

base36_to_int(s) [source] Converts a base 36 string to an integer. On Python 2 the output is guaranteed to be an int and not a long.

gis.geos.PreparedGeometry.contains()

contains(other)

http.HttpResponse.closed

HttpResponse.closed True if the response has been closed.

utils.timezone.get_current_timezone_name()

get_current_timezone_name() [source] Returns the name of the current time zone.

Databases

Django attempts to support as many features as possible on all database backends. However, not all database backends are alike, and we’ve had to make design decisions on which features to support and which assumptions we can make safely. This file describes some of the features that might be relevant to Django usage. Of course, it is not intended as a replacement for server-specific documentation or reference manuals. General notes Persistent connections Persistent connections avoid the overhea

utils.feedgenerator.SyndicationFeed.root_attributes()

root_attributes() [source] Return extra attributes to place on the root (i.e. feed/channel) element. Called from write().

db.models.Expression.relabeled_clone()

relabeled_clone(change_map) Returns a clone (copy) of self, with any column aliases relabeled. Column aliases are renamed when subqueries are created. relabeled_clone() should also be called on any nested expressions and assigned to the clone. change_map is a dictionary mapping old aliases to new aliases. Example: def relabeled_clone(self, change_map): clone = copy.copy(self) clone.expression = self.expression.relabeled_clone(change_map) return clone

gis.gdal.SpatialReference.import_wkt()

import_wkt(wkt) Import spatial reference from WKT.

forms.Form.order_fields()

Form.order_fields(field_order) New in Django 1.9. You may rearrange the fields any time using order_fields() with a list of field names as in field_order.

http.StreamingHttpResponse.reason_phrase

StreamingHttpResponse.reason_phrase The HTTP reason phrase for the response. Changed in Django 1.9: reason_phrase no longer defaults to all capital letters. It now uses the HTTP standard’s default reason phrases. Unless explicitly set, reason_phrase is determined by the current value of status_code.