Skip to content

Commit

Permalink
Merge pull request #91 from heyman/django-2.0-fixes
Browse files Browse the repository at this point in the history
Fixed ImportError on Django 2.0
  • Loading branch information
paulocheque committed Oct 20, 2017
2 parents 1a93ba5 + c6ee837 commit 22ebc6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion django_dynamic_fixture/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
import sys

from django.conf import settings
from django.core.urlresolvers import get_mod_func
try:
# Django 2.0
from django.urls import get_mod_func
except ImportError:
# Django <= 1.11
from django.core.urlresolvers import get_mod_func
try:
from importlib import import_module
except ImportError:
Expand Down

0 comments on commit 22ebc6f

Please sign in to comment.