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.txt
andmanage.py
files are located.
In the example repository, it is
/coolify
.
- Add
gunicorn
to therequirements.txt
file, official docs. - Add
localhost
and yourdomain
toALLOWED_HOSTS
insettings.py
file, official docs.
Localhost
is required for health checks to work properly.