Back to Browse

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

40.0K views
Jun 19, 2020
13:23

#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

Download

1 formats

Video Formats

360pmp421.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

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