Sample Python application on Django with PostgreSQL database.
- django 4.0.1
- Pillow 9.0.0
- psycopg2-binary 2.9.3
- django-prometheus 2.2.0
- uwsgi
- install uv
curl -LsSf https://astral.sh/uv/install.sh | sh- set environment export for variables (put them in .env file, for example):
DJANGO_DB_HOST=db
DJANGO_DB_NAME=app
DJANGO_DB_USER=worker
DJANGO_DB_PASS=worker
DJANGO_DB_PORT="5432"
DJANGO_DEBUG="False"- migrate database:
make migrate- start application:
make run