django-rosetta/rosetta/__init__.py

15 lines
313 B
Python
Raw Normal View History

try:
import django
2021-08-29 08:21:10 +00:00
if django.VERSION[:3] <= (3, 2, 0):
default_app_config = "rosetta.apps.RosettaAppConfig"
except ImportError:
pass
2021-08-29 08:21:10 +00:00
VERSION = (0, 9, 9)
2011-06-16 09:25:15 +00:00
2019-02-28 07:57:33 +00:00
def get_version(limit=3):
2016-03-08 09:14:15 +00:00
"""Return the version as a human-format string."""
2021-12-08 08:24:34 +00:00
return ".".join([str(i) for i in VERSION[:limit]])