from django.utils.importlib import import_module ImportError: No module named importlib

Viewed 10812

I am new to Django. I got a Django rest project. When i run it, an error shows as

from django.utils.importlib import import_module
ImportError: No module named importlib

I tried installing importlib with the command

pip install importlib

Then it shows

Requirement already satisfied: importlib in ./lib/python2.7/site-packages/gcm/utils.py"

So how coild i install importlib package?

2 Answers

As suggested in the comments the importlib is part of django-appconf which is later deprecated. You need to install approriate version of django-appconf.

pip install django-appconf==1.0.2 
Related