MCPcopy
hub / github.com/django/django / get_complete_version

Function get_complete_version

django/utils/version.py:55–66  ·  view source on GitHub ↗

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

(version=None)

Source from the content-addressed store, hash-verified

53
54
55def get_complete_version(version=None):
56 """
57 Return a tuple of the django version. If version argument is non-empty,
58 check for correctness of the tuple provided.
59 """
60 if version is None:
61 from django import VERSION as version
62 else:
63 assert len(version) == 5
64 assert version[3] in ("alpha", "beta", "rc", "final")
65
66 return version
67
68
69def get_docs_version(version=None):

Callers 4

get_versionFunction · 0.85
get_main_versionFunction · 0.85
get_docs_versionFunction · 0.85

Calls

no outgoing calls

Tested by 1