|
@@ -11,14 +11,13 @@ https://docs.djangoproject.com/en/5.2/ref/settings/
|
|
|
"""
|
|
|
|
|
|
import os
|
|
|
+import sys
|
|
|
from pathlib import Path
|
|
|
|
|
|
-# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
|
|
-BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
-
|
|
|
|
|
|
-# Quick-start development settings - unsuitable for production
|
|
|
-# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
|
|
|
+PROJECT_ROOT = Path(__file__).resolve().parent
|
|
|
+BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
+sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps"))
|
|
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
|
SECRET_KEY = os.getenv("CW_SECRET_KEY", 'django-insecure-*vwm-dvu0_4&jn^^_2^9b2+va@f)-g^g_yrh_!tr5^^f75#obb')
|