updated settings
This commit is contained in:
parent
92db8d61ed
commit
e6b7336440
1 changed files with 10 additions and 0 deletions
|
|
@ -1,4 +1,8 @@
|
||||||
|
import sys
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
from config import DB_NAME, DB_USER, DB_HOST, DB_PASSWORD, DB_PORT, SECRET_KEY
|
from config import DB_NAME, DB_USER, DB_HOST, DB_PASSWORD, DB_PORT, SECRET_KEY
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
|
|
@ -34,6 +38,12 @@ INSTALLED_APPS = [
|
||||||
"api",
|
"api",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
"corsheaders.middleware.CorsMiddleware",
|
"corsheaders.middleware.CorsMiddleware",
|
||||||
"django.middleware.common.CommonMiddleware",
|
"django.middleware.common.CommonMiddleware",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue