pythondjangopython-3.xdjango-model-utils

No module named 'model_utils'


I'm using Python 3.4.3 and django 1.9.8.

In my models.py, I have

from model_utils.managers import InheritanceManager

But this error occurs:

ImportError: No module named 'model_utils'


Solution

  • You need to install django-model-utils:

    pip install django-model-utils
    

    (documentation)