django-rosetta/rosetta/__init__.py
2021-12-08 09:24:34 +01:00

14 lines
313 B
Python

try:
import django
if django.VERSION[:3] <= (3, 2, 0):
default_app_config = "rosetta.apps.RosettaAppConfig"
except ImportError:
pass
VERSION = (0, 9, 8)
def get_version(limit=3):
"""Return the version as a human-format string."""
return ".".join([str(i) for i in VERSION[:limit]])