From baf62249b2cacbb9bf8344222e0bd6dda1ebf6d9 Mon Sep 17 00:00:00 2001 From: Madeleine Date: Mon, 22 Jun 2026 00:04:04 -0400 Subject: [PATCH] updated settings file --- localist/settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/localist/settings.py b/localist/settings.py index 1851b05..17519de 100644 --- a/localist/settings.py +++ b/localist/settings.py @@ -1,3 +1,5 @@ +import sys + from pathlib import Path from config import DB_NAME, DB_USER, DB_HOST, DB_PASSWORD, DB_PORT, SECRET_KEY @@ -122,3 +124,10 @@ CORS_ALLOWED_ORIGINS = [ "http://localhost:5173", "http://127.0.0.1:5173", ] + +if sys.platform == "darwin": + GDAL_LIBRARY_PATH = "/opt/homebrew/opt/gdal/lib/libgdal.dylib" + GEOS_LIBRARY_PATH = "/opt/homebrew/opt/geos/lib/libgeos_c.dylib" + +SECURE_REFERER_POLICY = "no-referrer-when-downgrade" +