Support Django 2.2 and 3.0

This commit is contained in:
Yohann D'ANELLO
2020-04-25 02:59:37 +02:00
committed by Valentin Samir
parent 5f30d614e5
commit 4129687e41
15 changed files with 113 additions and 19 deletions

View File

@ -12,10 +12,15 @@
"""Default values for the app's settings"""
from django.conf import settings
from django.templatetags.static import static
from django.utils.translation import ugettext_lazy as _
from importlib import import_module
import sys
if sys.version_info < (3, ):
from django.utils.translation import ugettext_lazy as _
else:
from django.utils.translation import gettext_lazy as _
try:
#: URL to the logo showed in the up left corner on the default templates.