Rectifying ModuleNotFoundError: No module named 'django' on alwaysdata

Hello, I am Favour. I am a Python enthusiast. The Coding Process is a place where I document and consolidate what I learn on my journey towards becoming a programmer. Kindly join me. I am also a poet and non-fiction writer. You could visit https://favourolumese.medium.com to read my writings.
Thank you.
You have tested your application on you PC and it is working but you want to deploy on alwaysdata and you are getting Bad Gateway.

Upon checking your log, you notice this error.

Log into your ssh terminal and verify your python version in the virtual environment you are using for your django app.

After verifying the Python version in your virtual environment, head over to your site setting and change the Python version to the Python version in your virtual environment.

After changing the Python version, refresh your site, and check again.

It should be working now. If you are deploying a Django app for the first time on alwaysdata, you may want to check Deploying a Django Project on alwaysdata.



