Skip to content

Commit 404d0a5

Browse files
committed
Explicitly import ninja
* Import ninja in ready() Since adding the yaml parsing for feature flags into the boot process the app crashes on startup, seemingly due module locking in Python 3.14. debug_toolbar tries to import the package in a separate thread.
1 parent 8f5c55d commit 404d0a5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • manage_breast_screening/core

manage_breast_screening/core/apps.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ def ready(self):
2525
from manage_breast_screening.core.feature_flags import setup_feature_flags
2626

2727
setup_feature_flags(_FLAGS_YAML)
28+
29+
# import this explicitly to avoid a crash on boot caused by a race between debug_toolbar's autoreload thread and the main one
30+
import ninja # noqa: F401

0 commit comments

Comments
 (0)