db.models.Options.label_lower

Options.label_lower New in Django 1.9. Representation of the model, returns app_label.model_name, e.g. 'polls.question'.

utils.translation.ngettext()

ngettext(singular, plural, number) [source] Translates singular and plural and returns the appropriate string based on number in a UTF-8 bytestring.

admin.AdminSite.password_change_done_template

AdminSite.password_change_done_template Path to a custom template that will be used by the admin site password change done view.

auth.forms.PasswordChangeForm

class PasswordChangeForm A form for allowing a user to change their password.

admin.ModelAdmin.change_form_template

ModelAdmin.change_form_template Path to a custom template, used by change_view().

core.validators.RegexValidator.regex

regex The regular expression pattern to search for the provided value, or a pre-compiled regular expression. By default, raises a ValidationError with message and code if a match is not found. That standard behavior can be reversed by setting inverse_match to True, in which case the ValidationError is raised when a match is found. By default, matches any string (including an empty string).

gis.gdal.OGRGeometry.srs

srs This property controls the spatial reference for this geometry, or None if no spatial reference system has been assigned to it. If assigned, accessing this property returns a SpatialReference object. It may be set with another SpatialReference object, or any input that SpatialReference accepts. Example: >>> city.geom.srs.name 'GCS_WGS_1984'

Porting to Python 3

Django 1.5 is the first version of Django to support Python 3. The same code runs both on Python 2 (≥ 2.6.5) and Python 3 (≥ 3.2), thanks to the six compatibility layer. This document is primarily targeted at authors of pluggable applications who want to support both Python 2 and 3. It also describes guidelines that apply to Django’s code. Philosophy This document assumes that you are familiar with the changes between Python 2 and Python 3. If you aren’t, read Python’s official porting guide fi

forms.Form.non_field_errors()

Form.non_field_errors() This method returns the list of errors from Form.errors that aren’t associated with a particular field. This includes ValidationErrors that are raised in Form.clean() and errors added using Form.add_error(None, "...").

postgres.aggregates.ArrayAgg

class ArrayAgg(expression, **extra) [source] Returns a list of values, including nulls, concatenated into an array.