how to host django app on cpanel | hosting tutorial | codersmind
I have seen many people face this problem so I have made a solution video on how to #host #django app on #cpanel hope this tutorial gonna help you to solve this problem
here are the steps which you have to follow:-
1. Convert Site folder into a zip file
2. Log into cpanel
3. Open file manager
4. Drop zip file into the public folder
5. From cpanel setup python app
6. Open the pasenger_wsgi.py file from your root folder and edit.
7. Remove all code and write (from Home.wsgi import application). Home folder is that directory that has settings.py.
8. Open settings.py and change- Debug=false
Allowed Host =['your domain name'], STATIC_ROOT = os.path.join(BASE_DIR, 'static')
9. Go to python app install requirements.txt
10. Restart the app.
11. If CSS is not applied move the static and media folder to the public folder
12. Stop the app and start again
Here are more tutorials that can solve your problem:-
How to install and run Ubuntu on Windows 10
[ Ссылка ]
How to install PostgreSQL in Windows
[ Ссылка ]
How to run python in visual studio code on windows 10
[ Ссылка ]
Subscribe to my channel
[ Ссылка ]
Connect with me:-
Facebook
[ Ссылка ]?
Instagram
[ Ссылка ]
Twitter
[ Ссылка ]
![](https://i.ytimg.com/vi/QR9hbYI98fg/maxresdefault.jpg)