Add --nothreading option to Django runserver command and implement HTMX debug modal for JSON responses

This commit is contained in:
Ross
2026-01-12 09:45:48 +00:00
parent f551d071f0
commit d8f8ef7326
3 changed files with 94 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ services:
# Development: run Django's autoreloading development server instead of
# the production entrypoint/gunicorn. Mount the repository into the
# container so code edits on the host trigger Django's autoreload.
entrypoint: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
entrypoint: ["python", "manage.py", "runserver", "0.0.0.0:8000", "--nothreading"]
# Clear any command set by the prod compose file (which would be passed
# as an extra argument to manage.py). Setting an empty command prevents
# the image `command` from being appended to the entrypoint.
+1 -1
View File
@@ -13,7 +13,7 @@ services:
# lives at rad/Dockerfile inside the context.
context: ..
dockerfile: rad/Dockerfile
command: python manage.py runserver 0.0.0.0:8000
command: python manage.py runserver 0.0.0.0:8000 --nothreading
#command: pip install -r requirements.txt
volumes:
# Mount the repository root into the container WORKDIR so manage.py and