Skip to content

Commit 90d98f6

Browse files
committed
Merge
2 parents 49065d6 + 787fa5f commit 90d98f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

django_socketio/urls.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
from django.conf.urls import patterns, url
22

33
from django.conf import settings
4-
from django.utils.importlib import import_module
4+
try:
5+
# Django < 1.9
6+
from django.utils.importlib import import_module
7+
except:
8+
# Django >= 1.9
9+
from importlib import import_module
510

611

712
# Try and import an ``events`` module in each installed app,

0 commit comments

Comments
 (0)