This guide shows you how to set up a Python application, such as Django, on your cPanel account.
1. Log in to cPanel
-
Access your cPanel control panel using your account credentials.
2. Open the Python Application Setup
-
In the Software section, click Setup Python App.
3. Create a New Python Application
-
Click the Create Application button.
-
Select the desired Python version from the drop-down list.
-
Choose the installation path and the domain where you want to install the application.
4. Complete the Setup
-
Click the Setup button.
-
Wait until the installation is complete.
5. Install Dependencies (Optional, but Required for Django)
-
After the application is created, use the Virtual Environment created by cPanel to install Python packages.
-
Click Enter to Virtual Environment or use the provided SSH commands.
-
Install Django (or other required packages) using pip. For example:
-
Repeat for any other dependencies your application requires.
Your Python application (Django or other framework) is now ready to use.