mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-07-22 13:39:45 +03:00
Merge 5367c488df
into eb9e6eb05a
This commit is contained in:
commit
aa6eedec6e
|
@ -1,5 +1,10 @@
|
||||||
from six import string_types
|
from six import string_types
|
||||||
from 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
|
||||||
|
|
||||||
|
|
||||||
def import_callable(path_or_callable):
|
def import_callable(path_or_callable):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user