Some code for our wedding website
infra | ||
nginx | ||
test | ||
wedding_site | ||
.gitignore | ||
compose.prod.yaml | ||
compose.staging.yaml | ||
compose.yaml | ||
generate_site.py | ||
LICENSE | ||
README.md | ||
requirements.txt |
wedding-site-backend
Web backend for hosting a wedding website.
Run Local server:
source .venv/bin/activate
cd wedding_site
python manage.py runserver
Do Migrations
cd wedding_site
python manage.py makemigrations primary
python manage.py migrate
Run Dev Server in container
podman-compose -f compose.yaml up -d --build
Bring it down with:
podman-compose down -v
Run Prod Server
podman-compose -f compose.prod.yaml up -d --build
Sync static files:
podman-compose -f compose.prod.yaml exec web python manage.py collectstatic --no-input --clear