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,520 points
6,354 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,840 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
2,539 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,720 points
6,933 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,020 points
2,765 views
0 votes
1 answer

Python error "ImportError: No module named pygame.locals"

You need to download and install the ...READ MORE

answered Jun 18, 2019 in Python by Greg
6,965 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,840 points
3,884 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,840 points
2,460 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,840 points
13,852 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
• 500 points
16,058 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP