File tree Expand file tree Collapse file tree
manage_breast_screening/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ run: manage_breast_screening/config/.env # Start the development server @Develop
5858db : manage_breast_screening/config/.env # Start the development database @Development
5959 docker compose --env-file manage_breast_screening/config/.env up -d --wait
6060
61+ dev : db run
62+
6163rebuild-db : _clean-docker db migrate seed # Create a fresh development database @Development
6264
6365migrate : # Run migrations
@@ -66,6 +68,9 @@ migrate: # Run migrations
6668seed : # Load seed data
6769 poetry run ./manage.py loaddata clinics participants
6870
71+ models :
72+ poetry run ./manage.py shell -c " from django.apps import apps; print('\n'.join(f'{m._meta.app_label}.{m.__name__}' for m in apps.get_models()))"
73+
6974_install-poetry :
7075 if ! command -v poetry > /dev/null 2>&1 ; then \
7176 pip install poetry; \
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ This command assumes you have a few things already installed:
2727## Usage
2828
2929``` sh
30- make run
30+ make dev
3131```
3232
33- This will serve the app at http://localhost:8000
33+ This will start the development instance of postgres (via docker) and serve the app at http://localhost:8000
3434
3535## Local development
3636
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ DATABASE_NAME=manage
66DATABASE_PASSWORD= changeme
77DATABASE_USER= manage
88DATABASE_SSLMODE= allow
9+ DATABASE_HOST= localhost
You can’t perform that action at this time.
0 commit comments