From 7968ac7b32ccd63d62ef3d2272ec3e4f3ec7ac16 Mon Sep 17 00:00:00 2001 From: dekzter Date: Mon, 3 Mar 2025 18:32:06 -0500 Subject: [PATCH] more revertedf iles --- dispatcharr/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dispatcharr/settings.py b/dispatcharr/settings.py index ab421fe7..bb4a7f4e 100644 --- a/dispatcharr/settings.py +++ b/dispatcharr/settings.py @@ -118,12 +118,11 @@ USE_I18N = True USE_TZ = True STATIC_URL = '/static/' -STATIC_ROOT = BASE_DIR / 'staticfiles' # Directory where static files will be collected +STATIC_ROOT = BASE_DIR / 'static' # Directory where static files will be collected # Adjust STATICFILES_DIRS to include the paths to the directories that contain your static files. STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'frontend/build/static'), # React build static files - BASE_DIR / 'static', # Django custom static files (if any) ] @@ -141,6 +140,7 @@ SERVER_IP = "127.0.0.1" CORS_ALLOW_ALL_ORIGINS = True CORS_ALLOW_CREDENTIALS = True +CSRF_TRUSTED_ORIGINS = ['*'] APPEND_SLASH = True REST_FRAMEWORK = {