+44-20-3695-1294 (ID:288445)
Not a customer yet? Sign up now!

HomeBlogHow 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


#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
source

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Visit Us On FacebookVisit Us On Youtube