Skip to content

Commit

Permalink
Fixed import to support Django>=1.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisspen committed Feb 28, 2016
1 parent 1c84627 commit acf095b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion socketio/sdjango.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
from socketio import socketio_manage
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.utils.importlib import import_module

try:
# Django versions >= 1.9
from django.utils.module_loading import import_module
except ImportError:
# Django versions < 1.9
from django.utils.importlib import import_module

# for Django 1.3 support
try:
Expand Down

0 comments on commit acf095b

Please # to comment.