Skip to main content

get_complete_version

Return a tuple of the django version. If version argument is non-empty, check for correctness of the tuple provided.

def get_complete_version(
version: tuple = None
) - > tuple

Return a tuple of the django version. If version argument is non-empty, check for correctness of the tuple provided.

Parameters

NameTypeDescription
versiontuple = NoneAn optional version tuple to validate; if omitted, the current Django VERSION is used

Returns

TypeDescription
tupleA five-element tuple representing the full version components (major, minor, micro, release level, and serial)