This is a sample repository for deploying a Django project on Seenode.
It includes a single "Hello, World" view and is pre-configured to be served with Gunicorn, the recommended production-ready web server.
View our guide on deploying Django apps on Seenode.
- Create Service: From the Seenode dashboard, create a new Web Service and connect it to this Git repository.
- Configure Settings: In your service settings on Seenode, make sure the following are set:
- Build Command:
pip install -r requirements.txt
- Start Command:
gunicorn project.wsgi --bind 0.0.0.0:$PORT
- Build Command:
- Add Environment Variables: In your service's Environment tab, add the following:
SECRET_KEY
: A long, random string for cryptographic signing.DEBUG
: Set toFalse
for production.
- Deploy: Click Create Web Service or Deploy to apply the changes. Your app will be live shortly.
Seenode simplifies database management.
- Create a managed PostgreSQL or MySQL database from the Databases tab on the dashboard.
- In your Web Service settings, go to the Environment tab.
- Under "Database Connections", link your newly created database.
- Seenode will automatically inject the
DATABASE_URL
environment variable directly into your service, which Django can use to connect securely.