Skip to content

Commit

Permalink
feat(dev server): user runserver_plus in docker-compose-development
Browse files Browse the repository at this point in the history
With this change, we can make use of the python shell that runserver_plus
provides when a python error occurs in django
  • Loading branch information
dchiller committed Aug 5, 2024
1 parent 671deea commit 0f3257b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions django/cantusdb_project/cantusdb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,6 @@

if DEBUG:
INSTALLED_APPS.append("debug_toolbar")
INSTALLED_APPS.append("django_extensions")
# debug toolbar must be inserted as early in the middleware as possible
MIDDLEWARE.insert(0, "debug_toolbar.middleware.DebugToolbarMiddleware")
2 changes: 1 addition & 1 deletion docker-compose-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
restart: always
depends_on:
- postgres
command: [ "python", "manage.py", "runserver", "0:8000" ]
command: [ "python", "manage.py", "runserver_plus", "0:8000" ]

nginx:
build:
Expand Down

0 comments on commit 0f3257b

Please sign in to comment.