This tutorial explains how to use Django framework.
Step One:
  1. Login to your cPanel account.
  2. Click on “Setup Python App”
 
Step Two:
  1. Select Python version from the drop-down list.
  2. Specify your application directory.
  3. Click “setup” button.
Step Three:
  1. Go to “modules” and click on “Show”.
  2.  Type “Django” and click on it.
  3.  Select the desired Django version.
  4. Click “Add”.
  5. Click on “Update” button followed by restart button.
 
 
Step Four:
  1. Edit “.bash_profile”. You can do that from cPanel –> File Manager.
    Make sure that “Show Hidden Files (dotfiles)” is selected from File Manager –> Settings.
  2. Add the following line at the bottom and save:
    source virtualenv / NN / VV / bin / activate
    Where NN is the folder that is created in Step Three, and VV is the version of Python.
 
Step Five:
  1. Go back to “Setup Python App”
  2.  Click on “Edit” next to “WSGI file location” and add the wsgi.py path.
    ie. python/wsgi.py:application
Was this answer helpful? 2 Users Found This Useful (3 Votes)