mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-19 10:01:09 +00:00
11 lines
298 B
Python
11 lines
298 B
Python
from pathlib import Path
|
|
|
|
try:
|
|
from django import VERSION as _django_version
|
|
|
|
if _django_version < (3, 2):
|
|
default_app_config = 'modeltranslation.apps.ModeltranslationConfig'
|
|
except ImportError:
|
|
pass
|
|
|
|
__version__ = (Path(__file__).parent.parent / "VERSION").read_text().strip()
|