Skip to content

Commit

Permalink
Merge c663ca5 into b7d4b8d
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfishman committed Dec 8, 2015
2 parents b7d4b8d + c663ca5 commit ecb49cd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion user_sessions/middleware.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import time

import django
from django.conf import settings
from django.utils.cache import patch_vary_headers
from django.utils.http import cookie_date
from django.utils.importlib import import_module

if django.VERSION <= (1, 9):
from django.utils.importlib import import_module
else:
# If the Django version is at least 1.9, this implies that the Python version
# must be at least 2.7
from importlib import import_module


class SessionMiddleware(object):
Expand Down

0 comments on commit ecb49cd

Please sign in to comment.