Fix error on python 2

This commit is contained in:
Garret Wassermann 2017-12-28 09:22:57 -05:00
parent d18ce1f1d5
commit 4b78704180

View File

@ -20,7 +20,9 @@ def get_staff_user(username='helpdesk.staff', password='password'):
def reload_urlconf(urlconf=None):
from importlib import reload # python 3 needs this import.
from django.utils import six
if six.PY3:
from importlib import reload
if urlconf is None:
from django.conf import settings