How to Set Up a Python Application in cPanel
dotCanada supports Python applications through cPanel's Setup Python App tool. Whether you're running a Flask, Django, or FastAPI project, you can host it on your account with a dedicated Python environment.
Creating a Python Application
- Log in to cPanel and navigate to Software > Setup Python App.
- Click Create Application.
- Choose your preferred Python version.
- Set the Application Root - the directory where your Python files are stored.
- Set the Application URL - the domain or subdomain for your app.
- Set the Application Startup File and the Application Entry Point (the WSGI callable, e.g.,
appfor Flask). - Click Create.
Installing Python Packages
After setup, activate the virtual environment using the command shown in cPanel (it looks like source /home/username/virtualenv/myapp/bin/activate), then install your packages:
pip install flaskOr install from a requirements file:
pip install -r requirements.txtManaging Your App
- Use the cPanel interface to Start, Restart, or Stop the application.
- Update code by uploading new files or pulling via Git, then restart the app.
Python apps on dotCanada run in isolated virtual environments, keeping your dependencies clean and conflict-free. If you need help getting started, contact our support team anytime.
100% Satisfaction Guarantee
We're so confident you'll love dotCanada that we offer a 30-day money-back guarantee. Not satisfied? Get a full refund, no questions asked.
Ready to Get Started?
Join thousands of Canadian website owners who trust dotCanada for reliable, fast web hosting.
Get Started Today
