module documentation

Undocumented

Constant PY310 Undocumented
Constant PY36 Undocumented
Constant PY37 Undocumented
Constant PY38 Undocumented
Constant PY39 Undocumented
Variable version​_component​_re Undocumented
Function get​_complete​_version Return a tuple of the django version. If version argument is non-empty, check for correctness of the tuple provided.
Function get​_docs​_version Undocumented
Function get​_git​_changeset Return a numeric identifier of the latest git changeset.
Function get​_main​_version Return main version (X.Y[.Z]) from VERSION.
Function get​_version Return a PEP 440-compliant version number from VERSION.
Function get​_version​_tuple Return a tuple of version numbers (e.g. (1, 2, 3)) from the version string (e.g. '1.2.3').
PY310 =

Undocumented

Value
(sys.version_info >= (3, 10))
PY36 =

Undocumented

Value
(sys.version_info >= (3, 6))
PY37 =

Undocumented

Value
(sys.version_info >= (3, 7))
PY38 =

Undocumented

Value
(sys.version_info >= (3, 8))
PY39 =

Undocumented

Value
(sys.version_info >= (3, 9))
version_component_re =

Undocumented

def get_complete_version(version=None):
Return a tuple of the django version. If version argument is non-empty, check for correctness of the tuple provided.
def get_docs_version(version=None):

Undocumented

@functools.lru_cache()
def get_git_changeset():

Return a numeric identifier of the latest git changeset.

The result is the UTC timestamp of the changeset in YYYYMMDDHHMMSS format. This value isn't guaranteed to be unique, but collisions are very unlikely, so it's sufficient for generating the development version numbers.

def get_main_version(version=None):
Return main version (X.Y[.Z]) from VERSION.
def get_version(version=None):
Return a PEP 440-compliant version number from VERSION.
def get_version_tuple(version):
Return a tuple of version numbers (e.g. (1, 2, 3)) from the version string (e.g. '1.2.3').