mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-03-17 05:40:26 +00:00
14 lines
313 B
Python
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, 9)
|
|
|
|
|
|
def get_version(limit=3):
|
|
"""Return the version as a human-format string."""
|
|
return ".".join([str(i) for i in VERSION[:limit]])
|