Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment
Possible causes of this error include:
- You moved your project to a different folder breaking the PYTHONPATH that had been added to env variables when you created your venv. To resolve this, either edit the python path manually in ~/.bashrc, then source ~/.bashrc, or just recreate the venv which will add the PYTHONPATH with the correct folder path.
- You may not have installed django, install it by running `pip install django`
Comments
Post a Comment