0

I'm using django and virtual environment "virtualenv", activate it, try to run the server in the project folder like this: python manage.py runserver, but I get this error: from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django'.

what could be happening? if someone can help, thank you in advance

1

1 Answer 1

1

First go to the terminal and write pipenv shell he must return for you a file url if he doesn't you must write it again then copy the file url in the bottom of visual studio you will find a place called 3.9.6 or your version (and here he writes for you the name of the project ) click on this place a popup menu will be shown click on error interpreter path then paste the link then click enter and your problem will be solved

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for your support but it does not work
In the bottom of visual study code you could click on select interpetor then click python 3.9.13 and I hope I helped you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.