Buy cPanel Python web hosting here

  1. Log into the cPanel control panel
  2. In Software section, select “Setup Python App
  3. Select the desired Python version from the drop-down list. We have 2.7, 3.3, 3.4, 3.5, 3.6 Python version on hosting.
  4. Select the path to install, and also select the domain on which you want to install the framework
  5. Click the “Setup” button, wait until the installation is complete.
  6. In the “Existing applications” section, in the “modules” field, click “show”, in the field for data entry, type “Django”, select “django” and the version you need, and click “Add”
  7. Then click “Update”, wait for the update process to complete.
  8. Editing “.bash_profile” can be done in cPanel -> File Manager. Make sure that hidden files are displayed. To do this, go to “Settings” and tick the “Show hidden files (dotfiles)” field in the “.bash_profile” file to add:

 virtualenv / NN / VV / bin / activate

where NN is the path specified when installing the "APP directory" VV framework, the selected version of Python Python.

Next, go back to “Setting up Python applications” in the path “WSGI file location” and specify the full path wsgi.py.

eg /home3/website.com/python/wsgi.py:application

Bu cavab sizə kömək etdi? 0 istifadəçi bunu faydalı hesab edir (0 səs)