Skip to content

Commit 6ff9fad

Browse files
committed
Add a make task to run the shell
1 parent 5c5afc0 commit 6ff9fad

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ seed: # Load seed data
7171
models:
7272
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()))"
7373

74+
shell:
75+
poetry run ./manage.py shell
76+
7477
_install-poetry:
7578
if ! command -v poetry >/dev/null 2>&1; then \
7679
pip install poetry; \
@@ -86,5 +89,5 @@ manage_breast_screening/config/.env:
8689

8790

8891
.DEFAULT_GOAL := help
89-
.PHONY: clean config dependencies build deploy githooks-config githooks-run help test test-unit test-lint test-ui run _install-poetry _clean-docker rebuild-db db migrate seed
92+
.PHONY: clean config dependencies build deploy githooks-config githooks-run help test test-unit test-lint test-ui run _install-poetry _clean-docker rebuild-db db migrate seed shell
9093
.SILENT: help run

0 commit comments

Comments
 (0)