[Answer]-Deploy Django Project On Apache Server with Cpanel

1👍

You have to use mod_wsgi with Apache. Documentation link.

Basic steps:

  1. Install mod_wsgi. Instructions on github project
  2. Edit your Apache’s httpd.conf file. Sample (copied from Django’s docs):

    WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
    WSGIPythonPath /path/to/mysite.com
    
    <Directory /path/to/mysite.com/mysite>
    <Files wsgi.py>
    Require all granted
    </Files>
    </Directory>
    
👤avi

Leave a comment