How to run Python 3.6/3.7 dJango project using cPanel shared hosting | Without Terminal

How to run Python 3.6/3.7 dJango project using cPanel shared hosting | Without Terminal


shared hosting python

#python #cPanel #noTerminal
It’s hard to deploy python django project in cPanel without Terminal, Here’s how you can do it.
How to do it:
First, create a requirements.txt of your project using pip freeze {Greater-than sign} requirements.txt
Now zip and upload the project into your hosting server/shared host and extract it
create a python app from cPanel and use the application root as the same folder of the project.
Stop the application
Now, using cPanel install requirements.txt
then on the application root, there will be a passenger_wsgi.py file open the file change and import application from your project wsgi eg. from myproject.wsgi import application
run the python app, it should be working. Fix the static by changing static dir to public_html and moving the files to public_html

Thank you, hope this helps

19 thoughts on “How to run Python 3.6/3.7 dJango project using cPanel shared hosting | Without Terminal

  1. Hi thanks for the tutorial, though in my own case I have django models that I have created and I am looking for a way to migrate it to the database I created on cpanel then if I try running pip install mysqlclient it is not working

  2. Thank you for your helpful video. I m a newbie. just bought shared server from bluehost. There is no python in the software of its cpanel. How can I install python in the bluehost's cpanel?

Leave a Reply

Your email address will not be published. Required fields are marked *