core.signing.Signer

class Signer(key=None, sep=':', salt=None) [source] Returns a signer which uses key to generate signatures and sep to separate values. sep cannot be in the URL safe base64 alphabet. This alphabet contains alphanumeric characters, hyphens, and underscores.

views.generic.detail.SingleObjectMixin.pk_url_kwarg

pk_url_kwarg The name of the URLConf keyword argument that contains the primary key. By default, pk_url_kwarg is 'pk'.

http.HttpRequest.current_app

HttpRequest.current_app The url template tag will use its value as the current_app argument to reverse().

auth.models.User.has_usable_password()

has_usable_password() Returns False if set_unusable_password() has been called for this user.

gis.geoip2.GeoIP2.country_code()

GeoIP2.country_code(query) Returns the country code corresponding to the query.

forms.SplitDateTimeField.input_date_formats

input_date_formats A list of formats used to attempt to convert a string to a valid datetime.date object. If no input_date_formats argument is provided, the default input formats for DateField are used.

core.files.uploadedfile.UploadedFile.size

UploadedFile.size The size, in bytes, of the uploaded file.

db.models.functions.Upper

class Upper(expression, **extra) [source] Accepts a single text field or expression and returns the uppercase representation. It can also be registered as a transform as described in Length. Usage example: >>> from django.db.models.functions import Upper >>> Author.objects.create(name='Margaret Smith') >>> author = Author.objects.annotate(name_upper=Upper('name')).get() >>> print(author.name_upper) MARGARET SMITH Changed in Django 1.9: The ability to reg

core.management.BaseCommand.help

BaseCommand.help A short description of the command, which will be printed in the help message when the user runs the command python manage.py help <command>.

gis.db.models.GeometryField.dim

GeometryField.dim This option may be used for customizing the coordinate dimension of the geometry field. By default, it is set to 2, for representing two-dimensional geometries. For spatial backends that support it, it may be set to 3 for three-dimensional support. Note At this time 3D support is limited to the PostGIS spatial backend.