A Django CMS to serve food source data.
In root directory:
docker compose up --build
-
get items by user
-
save database
docker exec -t postgres pg_dumpall -c -U order_by = ['expiration_date']
postgres > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql
To avoid wiping your local db every time you rebuild, make sure the migrate lines are commented out in entrypoint.sh.
- persist data across deploys
- style improves
- if quantity 0, remove expiration and sort last
- fix test connection
- separate recipe app
- separate user app
- rds
- i don't like ingredients as their own model but maybe i need it
- why "ingredientSet"
- recipes by tag
- elastic beanstalk
- want ids to be numbers instead of strings
- merge cms and core
- cache github actions
- ActivityPub
- improve user
- images
- eks
- docker compose override https://docs.docker.com/compose/multiple-compose-files/extends/
- folder structure
https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
https://www.udemy.com/course/django-python-advanced/
Get into the container:
docker exec -ti hord_db bash
Connect to postgres:
psql -h localhost -p 5432 -d your_db_name -U your_db_user
# varies by env
Show tables:
\dt
See what's in the tables:
select * from one_of_the tables;