summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetup.py2
-rw-r--r--src/cmsplugin_blurp/utils.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 04b9aa4..938b2f3 100755
--- a/setup.py
+++ b/setup.py
@@ -87,7 +87,7 @@ setup(name="django-cmsplugin-blurp",
maintainer_email="bdauvergne@entrouvert.com",
packages=find_packages('src'),
install_requires=[
- 'django>=1.7,<1.8',
+ 'django>=1.8',
'django-classy-tags',
],
package_dir={
diff --git a/src/cmsplugin_blurp/utils.py b/src/cmsplugin_blurp/utils.py
index d7ebe4e..83fc545 100644
--- a/src/cmsplugin_blurp/utils.py
+++ b/src/cmsplugin_blurp/utils.py
@@ -1,4 +1,7 @@
-from django.utils.importlib import import_module
+try:
+ from importlib import import_module
+except ImportError:
+ from django.utils.importlib import import_module
from django.utils.translation import ugettext_lazy as _
from . import app_settings