
Deploying a Django application on cPanel can seem challenging at first, but with the right steps, it becomes manageable. cPanel supports Python applications through its Setup Python App feature, which allows you to run Django projects efficiently. Below is a step-by-step guide to deploying your Django app on cPanel.








7. Click on the Open button by the Application URL or visit the domain used to verify the application is active.


2. Open terminal on the cPanel dashboard, paste the command and hit enter.(If terminal is not enabled, contact support)

3. Print the current directory by running the command “pwd” afterwards install Django by running the “pip install django“.

3. Create the django project folder by running: “django-admin startproject projectname .”.(Note: change the projectname to your preferred project name)

4. On the python application page, update the Application startup file to the wsgi.py in the django directory, that is : “projectname/wsgi.py“.

5. In the File Manager, open the application directory. Open the Django(projectname) directory and locate the settings.py file.


6. In the settings.py file, search for “ALLOWED HOST=[]“. In between the parenthesis, type in the domain or subdomain name the application will be hosted.
(Example: ALLOWED HOST=[‘pytest.shostguide.com’])

7. Restart the python application.

8. The Django application is live.
