Some code for our wedding website
Find a file
2024-02-18 14:25:20 +00:00
infra Start adding deployment infra. 2024-02-18 14:09:12 +00:00
nginx Handle media files. 2024-02-18 14:25:20 +00:00
test Fix image loading. 2024-02-17 17:56:17 +00:00
wedding_site Handle media files. 2024-02-18 14:25:20 +00:00
.gitignore Start adding deployment infra. 2024-02-18 14:09:12 +00:00
compose.prod.yaml Handle media files. 2024-02-18 14:25:20 +00:00
compose.yaml Start adding deployment infra. 2024-02-18 14:09:12 +00:00
generate_site.py Initial conversion script 2024-02-10 13:08:00 +00:00
LICENSE Initial commit 2024-02-10 10:34:12 +00:00
README.md Start adding deployment infra. 2024-02-18 14:09:12 +00:00
requirements.txt Start adding deployment infra. 2024-02-18 14:09:12 +00:00

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