auth.models.User

class models.User User objects have the following fields: username Required. 150 characters or fewer. Usernames may contain alphanumeric, _, @, +, . and - characters. The max_length should be sufficient for many use cases. If you need a longer length, please use a custom user model. If you use MySQL with the utf8mb4 encoding (recommended for proper Unicode support), specify at most max_length=191 because MySQL can only create unique indexes with 191 characters in that case by default. Us

views.generic.dates.DateMixin.get_date_field()

get_date_field() [source] Returns the name of the field that contains the date data that this view will operate on. Returns date_field by default.

forms.SplitDateTimeWidget.time_format

time_format Similar to TimeInput.format

views.generic.dates.DayMixin.get_day()

get_day() [source] Returns the day for which this view will display data, as a string. Tries the following sources, in order: The value of the DayMixin.day attribute. The value of the day argument captured in the URL pattern. The value of the day GET query argument. Raises a 404 if no valid day specification can be found.

gis.db.models.BaseSpatialField.spatial_index

BaseSpatialField.spatial_index Defaults to True. Creates a spatial index for the given geometry field. Note This is different from the db_index field option because spatial indexes are created in a different manner than regular database indexes. Specifically, spatial indexes are typically created using a variant of the R-Tree, while regular database indexes typically use B-Trees.

utils.http.urlquote()

urlquote(url, safe='/') [source] A version of Python’s urllib.quote() function that can operate on unicode strings. The url is first UTF-8 encoded before quoting. The returned string can safely be used as part of an argument to a subsequent iri_to_uri() call without double-quoting occurring. Employs lazy execution.

core.signing.loads()

loads(string, key=None, salt='django.core.signing', max_age=None) [source] Reverse of dumps(), raises BadSignature if signature fails. Checks max_age (in seconds) if given.

urls.ResolverMatch.kwargs

kwargs The keyword arguments that would be passed to the view function, as parsed from the URL.

db.migrations.operations.RunSQL

class RunSQL(sql, reverse_sql=None, state_operations=None, hints=None, elidable=False) [source] Allows running of arbitrary SQL on the database - useful for more advanced features of database backends that Django doesn’t support directly, like partial indexes. sql, and reverse_sql if provided, should be strings of SQL to run on the database. On most database backends (all but PostgreSQL), Django will split the SQL into individual statements prior to executing them. This requires installing t

gis.geos.GEOSGeometry.relate_pattern()

GEOSGeometry.relate_pattern(other, pattern) Returns True if the elements in the DE-9IM intersection matrix for this geometry and the other matches the given pattern – a string of nine characters from the alphabet: {T, F, *, 0}.