DirectAdmin supports Python web applications through configured application servers, letting you run Flask, Django, and similar frameworks.
Set up a Python app
- Go to Extra Features → Setup Python App (or Python Selector).
- Select the domain and application root directory.
- Choose the Python version and framework entry point.
- Configure the application URL and startup file (for example
passenger_wsgi.pyorapp.py). - Install dependencies via the terminal with
pip install -r requirements.txt. - Start or restart the application.
Troubleshooting
Check application logs in the app directory if you receive a 500 error. Ensure virtual environment paths and WSGI configuration match your framework documentation.