fix a few multisync issues

This commit is contained in:
Ross
2026-06-28 21:51:39 +01:00
parent d32e2a5231
commit d07d88bdbf
5 changed files with 291 additions and 183 deletions
+7
View File
@@ -36,3 +36,10 @@ TASKS = {
MEDIA_ROOT = os.path.join(BASE_DIR, "media_test") + "/"
os.makedirs(MEDIA_ROOT, exist_ok=True)
# Remove debug_toolbar from installed apps and middleware to avoid NoReverseMatch errors when settings.DEBUG is False
if "debug_toolbar" in INSTALLED_APPS:
INSTALLED_APPS.remove("debug_toolbar")
if "debug_toolbar.middleware.DebugToolbarMiddleware" in MIDDLEWARE:
MIDDLEWARE.remove("debug_toolbar.middleware.DebugToolbarMiddleware")