mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-03-16 21:30:24 +00:00
Conditional importing of django in main __init__
This commit is contained in:
parent
d16484091b
commit
6ac8119bf2
1 changed files with 7 additions and 4 deletions
|
|
@ -1,10 +1,13 @@
|
|||
import django
|
||||
try:
|
||||
import django
|
||||
|
||||
if django.VERSION[:3] <= (3, 2, 0):
|
||||
default_app_config = "rosetta.apps.RosettaAppConfig"
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
VERSION = (0, 9, 8)
|
||||
|
||||
if django.VERSION[:3] <= (3, 2, 0):
|
||||
default_app_config = "rosetta.apps.RosettaAppConfig"
|
||||
|
||||
|
||||
def get_version(limit=3):
|
||||
"""Return the version as a human-format string."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue