0

I clone repository from github on my second computer, runserver does works but when typing

python manage.py makemigrations

Bash notice about 'no module name rest_framework'

This situation is a second time. Lately I install again rest_framework but then I had install other modules. Finally I create new project but now I want resolve this problem.

my code an installed dependencies

gmc
  • 3,910
  • 2
  • 31
  • 44
wiotrek
  • 31
  • 5
  • The virtualenv you have activated on the shell is the correct one (ex_books_django2) ? – gmc Sep 24 '20 at 21:37
  • It's right, shell uses other virtualenv, because whenever i type 'python manage.py runserver' there is the same error, however when i use shortcuts Shift+F10, then it works. How can i change this? – wiotrek Sep 25 '20 at 10:38
  • Well, PyCharm has an option for auto-activating the virtualenv you selected as Project Interpreter when the integrated shell is opened. If you have that, it'd be a matter of closing and open the shelll again – gmc Sep 25 '20 at 12:10

0 Answers0