ImportError: No module named django_extensions

I am completely new to python as well as Django. I got a sample Django Rest project. When I run:

python manage.py makemigrations

      

I am getting the error:

ImportError: No module named django_extensions

      

How can I solve this?

I run it in virtualenv

+3


source to share


1 answer


It looks like your sample project is based on django-extensions . You can install it by activating your virtualenv and then running:

pip install django-extensions

      



After installing django extensions, you may get a different import error if your virtual server lacks other packages. Hopefully your sample project has a file requirements.txt

that lists the requirements. If so, you can install the required packages with:

pip install -r requirements.txt

      

+5


source







All Articles