forked from enviPath/enviPy
Prep configs, added Package Create Modal
This commit is contained in:
@ -9,7 +9,7 @@ https://docs.djangoproject.com/en/4.2/topics/settings/
|
||||
For the full list of settings and their values, see
|
||||
https://docs.djangoproject.com/en/4.2/ref/settings/
|
||||
"""
|
||||
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
@ -20,7 +20,7 @@ from sklearn.tree import DecisionTreeClassifier
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
ENV_PATH = os.environ.get("ENV_PATH", BASE_DIR / ".env")
|
||||
ENV_PATH = os.environ.get("ENV_PATH", BASE_DIR / ".env.dev")
|
||||
print(f"Loading env from {ENV_PATH}")
|
||||
load_dotenv(ENV_PATH, override=False)
|
||||
|
||||
@ -442,3 +442,14 @@ BIOTRANSFORMER_ENABLED = os.environ.get("BIOTRANSFORMER_ENABLED", "False") == "T
|
||||
FLAGS["BIOTRANSFORMER"] = BIOTRANSFORMER_ENABLED
|
||||
if BIOTRANSFORMER_ENABLED:
|
||||
BIOTRANSFORMER_URL = os.environ.get("BIOTRANSFORMER_URL", None)
|
||||
|
||||
# PES
|
||||
PES_API_MAPPING = os.environ.get("PES_API_MAPPING", None)
|
||||
if PES_API_MAPPING:
|
||||
import json
|
||||
PES_API_MAPPING = json.loads(PES_API_MAPPING)
|
||||
else:
|
||||
PES_API_MAPPING = {}
|
||||
|
||||
# AD Group Mapping
|
||||
|
||||
|
||||
Reference in New Issue
Block a user