Commit 26e67cd4 authored by Carlton Gibson's avatar Carlton Gibson

Correct reference to `import_module`

parent b3231479
......@@ -57,7 +57,7 @@ def get_servers(location):
def import_class(path):
module_name, class_name = path.rsplit('.', 1)
try:
module = import_module(module_name)
module = importlib.import_module(module_name)
except ImportError:
raise ImproperlyConfigured('Could not find module "%s"' % module_name)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment