Commit 1e315165 by Gabriel Falcão

Merge pull request #484 from michelts/import_module_deprecation_warning

Avoid deprecation warning about django's importlib and prepare to django 1.9.
parents 764456df 9bdcb6ae
......@@ -16,7 +16,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from os.path import join, dirname
from django.utils.importlib import import_module
try:
from importlib import import_module
except ImportError:
from django.utils.importlib import import_module
from django.conf import settings
......
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