diff --git a/Makefile b/Makefile index e440362532..a67f0c87e1 100644 --- a/Makefile +++ b/Makefile @@ -147,7 +147,8 @@ test: \ .PHONY: test test-back: ## run back-end tests - bin/pytest + @args="$(filter-out $@,$(MAKECMDGOALS))" && \ + bin/pytest $${args:-${1}} .PHONY: test-back @@ -170,6 +171,10 @@ superuser: ## create a Django superuser @$(MANAGE) createsuperuser .PHONY: superuser +shell: ## connect to database shell + @$(MANAGE) shell_plus +.PHONY: dbshell + # -- Database dbshell: ## connect to database shell diff --git a/src/backend/joanie/settings.py b/src/backend/joanie/settings.py index cf3937771d..e6af32adb2 100755 --- a/src/backend/joanie/settings.py +++ b/src/backend/joanie/settings.py @@ -416,7 +416,7 @@ class Development(Base): def __init__(self): # pylint: disable=invalid-name - self.INSTALLED_APPS += ["drf_yasg"] + self.INSTALLED_APPS += ["drf_yasg", "django_extensions"] class Test(Base): diff --git a/src/backend/setup.cfg b/src/backend/setup.cfg index 2ea91c7ffe..50fd1459d2 100644 --- a/src/backend/setup.cfg +++ b/src/backend/setup.cfg @@ -69,6 +69,7 @@ dev = bandit==1.7.4 black==23.1.0 cssselect==1.2.0 + django-extensions==3.2.1 drf-yasg==1.21.5 flake8==6.0.0 ipdb==0.13.11