ImportError No module named django extensions

0 votes

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

I am running it in a virtualenv

How can I solve this?

Jun 25, 2020 in Python by kartik
• 37,490 points
1,931 views

1 answer to this question.

0 votes

Hello @kartik,

You can solve this error by installing django-extensions 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, you have a requirements.txt file which lists the requirements. If so, you can install the required packages with:

pip install -r requirements.txt

Hope this helps!

Thank You!

answered Jun 25, 2020 by Niroj
• 82,560 points

Related Questions In Python

0 votes
1 answer

ImportError: No module named requests

Requests is not available for use by ...READ MORE

answered Jun 26, 2018 in Python by Hamartia's Mask
• 1,580 points
1,498 views
+3 votes
1 answer

Tensorflow 1.5 ImportError: No module named tensorflow.python.client

I think it's a bug in Tensorflow ...READ MORE

answered Sep 25, 2018 in Python by charlie_brown
• 7,780 points
5,677 views
0 votes
1 answer

tensorflow 1.5 ImportError: No module named tensorflow.python.client

Some of the modules have changed in ...READ MORE

answered Oct 5, 2018 in Python by Priyaj
• 58,100 points
1,374 views
0 votes
1 answer

tensorflow 1.5 ImportError: No module named tensorflow.python.client

Some of the modules have changed in ...READ MORE

answered Oct 9, 2018 in Python by Priyaj
• 58,100 points
325 views
0 votes
1 answer

Error:No module named pkg_resources

Hello @kartik, This error occur if the requirements.txt contains a ...READ MORE

answered Jun 26, 2020 in Python by Niroj
• 82,560 points
906 views
0 votes
1 answer

How to temporarily disable a foreign key constraint in MySQL?

Hello @kartik, To turn off foreign key constraint ...READ MORE

answered Jun 23, 2020 in Python by Niroj
• 82,560 points
587 views
0 votes
1 answer

ImportError: No module named pip when trying to install packages

Hello @kartik, I found that on Ubuntu, pip ...READ MORE

answered May 27, 2020 in Python by Niroj
• 82,560 points
6,539 views
0 votes
2 answers

Python error “ImportError: No module named”

use the dir() function for particular import ...READ MORE

answered Jun 6, 2020 in Python by sahil
• 540 points
8,593 views