Issue
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
Solution
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
Answered By - Alasdair
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.