from packaging.version import Version from django import get_version def at_least_version(version): return Version(get_version()) > Version(version)