Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named django_extensions

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

python manage.py makemigrations

I get the error:

ImportError: No module named django_extensions

How can I solve this?

I am running it in a virtualenv

like image 810
Hari Krishnan Avatar asked May 31 '17 16:05

Hari Krishnan


1 Answers

It looks as if your sample project relies on django-extensions. You can install it by activating your virtualenv, then running:

pip install django-extensions

Once you have installed django-extensions, you may get a different import error if there are other packages missing from your virtualenv. Hopefully, your sample project will have a requirements.txt file which lists the requirements. If so, you can install the required packages with:

pip install -r requirements.txt
like image 175
Alasdair Avatar answered Oct 23 '22 10:10

Alasdair