Skip to content
Snippets Groups Projects
Commit 063c6fa1 authored by Dave St.Germain's avatar Dave St.Germain
Browse files

Reload has moved in python3

parent 05e1ec5b
No related branches found
No related tags found
No related merge requests found
...@@ -5,11 +5,15 @@ Utility functions related to urls. ...@@ -5,11 +5,15 @@ Utility functions related to urls.
from __future__ import absolute_import from __future__ import absolute_import
import sys import sys
import six
from importlib import import_module from importlib import import_module
from django.conf import settings from django.conf import settings
from django.urls import set_urlconf from django.urls import set_urlconf
if six.PY3:
from importlib import reload # pylint: disable=no-name-in-module,redefined-builtin
def reload_django_url_config(): def reload_django_url_config():
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment