Skip to content

Commit c6b5ed0

Browse files
committed
Add ninja to INSTALLED_APPS
* explicitly add ninja We used this for the API but it is also used by django-debug-toolbar which loads it in a separate autoload thread. This causes a race condition and as of Python 3.14 this can raise an error and stop the app booting if the toolbar is enabled. Adding the ninja app here also fixes a current issue where the docs assets aren't being loaded from the CDN. This is outlined in the Ninja docs https://django-ninja.dev/guides/api-docs/
1 parent 70333c0 commit c6b5ed0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • manage_breast_screening/config/settings

manage_breast_screening/config/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def list_env(key):
7373
"manage_breast_screening.reading",
7474
"rules.apps.AutodiscoverRulesConfig",
7575
"csp",
76+
"ninja",
7677
]
7778

7879
if DJANGO_ENV != "production":

0 commit comments

Comments
 (0)