This is a sample Django application that uses Celery for background tasks. It uses Postgres as the database and Redis as the message broker.
- Download Defang CLI
- (Optional) If you are using Defang BYOC authenticate with your cloud provider account
- (Optional for local development) Docker CLI
To run the application locally, you can use the following command:
docker compose -f compose.dev.yaml up --buildFor this sample, you will need to provide the following configuration:
Note that if you are using the 1-click deploy option, you can set these values as secrets in your GitHub repository and the action will automatically deploy them for you.
The password for the Postgres database.
defang config set POSTGRES_PASSWORDThe secret key for the Django application.
defang config set SECRET_KEYNote
Download Defang CLI
Deploy your application to the Defang Playground by opening up your terminal and typing:
defang compose upIf you want to deploy to your own cloud account, you can use Defang BYOC.
Title: Django Celery
Short Description: A Django application that uses Celery for background tasks, Postgres as the database, and Redis as the message broker.
Tags: Django, Celery, Postgres, Redis
Languages: python, sql