How to run a website in Python? Print

  • 1

First you need to log in to the CPANEL hosting control panel through your personal account on the website billur.com

 

Then find the section "Software" => "Set up Python applications" => "create a new application"

 

Fill in the fields, then click on the "Create" button In the “Existing applications” section, in the “modules” field, click “show”, in the data entry field, write “django”, select “django” and the version you need, and click “Add”

 

Then click “Update”, wait until the update process is completed You can edit “.bash_profile” in cPanel –> File Manager.

Make sure that hidden files are displayed, to do this, go to “Settings” and check the box “Show hidden files (dotfiles)” in the “.bash_profile” file you need to add: virtualenv/NN/VV/bin/activate where NN is the path specified when installing the framework "APP directory" VV is the selected version of Python.

Next, return “Setting up Python applications” to the “WSGI file location” path and specify the full path wsgi.py. for example /home/website.com/python/wsgi.py:application


Was this answer helpful?

« Back