postgres.fields.RangeField.range_type

range_type The psycopg2 range type to use.

core.validators.int_list_validator()

int_list_validator(sep=', ', message=None, code='invalid', allow_negative=False) [source] New in Django 1.9. Returns a RegexValidator instance that ensures a string consists of integers separated by sep. It allows negative integers when allow_negative is True. Changed in Django 1.10: The allow_negative parameter was added.

gis.db.models.functions.MakeValid

class MakeValid(expr) New in Django 1.10. Availability: PostGIS Accepts a geographic field or expression and attempts to convert the value into a valid geometry without losing any of the input vertices. Geometries that are already valid are returned without changes. Simple polygons might become a multipolygon and the result might be of lower dimension than the input.

Settings

Core Settings Auth Messages Sessions Sites Static Files Core Settings Topical Index Warning Be careful when you override settings, especially when the default value is a non-empty list or dictionary, such as MIDDLEWARE_CLASSES and STATICFILES_FINDERS. Make sure you keep the components required by the features of Django you wish to use. Core Settings Here’s a list of settings available in Django core and their default values. Settings provided by contrib apps are listed below, followed by a

forms.GenericIPAddressField.protocol

protocol Limits valid inputs to the specified protocol. Accepted values are both (default), IPv4 or IPv6. Matching is case insensitive.

views.generic.edit.ModelFormMixin.fields

fields A list of names of fields. This is interpreted the same way as the Meta.fields attribute of ModelForm. This is a required attribute if you are generating the form class automatically (e.g. using model). Omitting this attribute will result in an ImproperlyConfigured exception.

db.models.FilePathField

class FilePathField(path=None, match=None, recursive=False, max_length=100, **options) [source] A CharField whose choices are limited to the filenames in a certain directory on the filesystem. Has three special arguments, of which the first is required:

gis.widgets.BaseGeometryWidget.display_raw

BaseGeometryWidget.display_raw Boolean value specifying if a textarea input showing the serialized representation of the current geometry is visible, mainly for debugging purposes (default is False).

forms.Form.has_error()

Form.has_error(field, code=None) This method returns a boolean designating whether a field has an error with a specific error code. If code is None, it will return True if the field contains any errors at all. To check for non-field errors use NON_FIELD_ERRORS as the field parameter.

dispatch.Signal

class Signal(providing_args=list) [source] All signals are django.dispatch.Signal instances. The providing_args is a list of the names of arguments the signal will provide to listeners. This is purely documentational, however, as there is nothing that checks that the signal actually provides these arguments to its listeners. For example: import django.dispatch pizza_done = django.dispatch.Signal(providing_args=["toppings", "size"]) This declares a pizza_done signal that will provide receiv