db.models.Field.value_to_string()

value_to_string(obj) [source] Converts obj to a string. Used to serialize the value of the field. See Converting field data for serialization for usage. When using model forms, the Field needs to know which form field it should be represented by:

core.validators.MaxLengthValidator

class MaxLengthValidator(max_length, message=None) [source] Raises a ValidationError with a code of 'max_length' if the length of value is greater than max_length.

gis.db.models.functions.Envelope

class Envelope(expression, **extra) Availability: MySQL, PostGIS, SpatiaLite Accepts a single geographic field or expression and returns the geometry representing the bounding box of the geometry.

db.migrations.operations.AlterIndexTogether

class AlterIndexTogether(name, index_together) [source] Changes the model’s set of custom indexes (the index_together option on the Meta subclass).

db.models.as_vendorname()

as_vendorname(self, compiler, connection) Works like as_sql() method. When an expression is compiled by compiler.compile(), Django will first try to call as_vendorname(), where vendorname is the vendor name of the backend used for executing the query. The vendorname is one of postgresql, oracle, sqlite, or mysql for Django’s built-in backends.

gis.gdal.OGRGeometry.clone()

clone() Returns a new OGRGeometry clone of this geometry object.

core.management.BaseCommand.can_import_settings

BaseCommand.can_import_settings A boolean indicating whether the command needs to be able to import Django settings; if True, execute() will verify that this is possible before proceeding. Default value is True.

utils.timezone.is_aware()

is_aware(value) [source] Returns True if value is aware, False if it is naive. This function assumes that value is a datetime.

core.files.storage.FileSystemStorage.base_url

base_url URL that serves the files stored at this location. Defaults to the value of your MEDIA_URL setting.

views.decorators.csrf.csrf_exempt()

csrf_exempt(view) [source] This decorator marks a view as being exempt from the protection ensured by the middleware. Example: from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse @csrf_exempt def my_view(request): return HttpResponse('Hello world')