Deploy Django Applications
Prerequisites
- Django application in a Git repository
- HCS account with Applications access
- Domain name (optional)
Deployment Steps
-
Login to HCS Dashboard
-
Create New Application
- Click “Create New Application”
- Select “Django” as your application type
- Connect your Git repository
-
Configure Build Settings
- Set Build Pack to
nixpacks - Set Python version if needed
- Configure database settings
- Set Build Pack to
-
Deploy Your Application
- Click “Deploy” to start the build process
- Wait for build and deployment to complete
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Requirements
- Set the base directory where your
requirements.txtandmanage.pyfiles are located.
In the example repository, it is
/coolify.
- Add
gunicornto therequirements.txtfile, official docs. - Add
localhostand yourdomaintoALLOWED_HOSTSinsettings.pyfile, official docs.
Localhostis required for health checks to work properly.