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:

  1. 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.
  2. You may not have installed django, install it by running `pip install django`

Comments

Popular posts from this blog

How to add jinja2 templating in django step by step