forked from enviPath/enviPy
refactor: ALLOWED_HOSTS throws exception if not present
ALLOWED_HOSTS is now manfatory again. Also cleaned defunct SQLite backend and autoformated fille to line lenght 100. Signed-off-by: Tobias O <tobias.olenyi@envipath.com>
This commit is contained in:
@ -106,6 +106,7 @@ DATABASES = {
|
|||||||
"HOST": os.environ["POSTGRES_SERVICE_NAME"],
|
"HOST": os.environ["POSTGRES_SERVICE_NAME"],
|
||||||
"PORT": os.environ["POSTGRES_PORT"],
|
"PORT": os.environ["POSTGRES_PORT"],
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Password validation
|
# Password validation
|
||||||
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
|
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
|
||||||
@ -260,9 +261,7 @@ CELERY_ACCEPT_CONTENT = ["json"]
|
|||||||
CELERY_TASK_SERIALIZER = "json"
|
CELERY_TASK_SERIALIZER = "json"
|
||||||
|
|
||||||
MODEL_BUILDING_ENABLED = os.environ.get("MODEL_BUILDING_ENABLED", "False") == "True"
|
MODEL_BUILDING_ENABLED = os.environ.get("MODEL_BUILDING_ENABLED", "False") == "True"
|
||||||
APPLICABILITY_DOMAIN_ENABLED = (
|
APPLICABILITY_DOMAIN_ENABLED = os.environ.get("APPLICABILITY_DOMAIN_ENABLED", "False") == "True"
|
||||||
os.environ.get("APPLICABILITY_DOMAIN_ENABLED", "False") == "True"
|
|
||||||
)
|
|
||||||
DEFAULT_RF_MODEL_PARAMS = {
|
DEFAULT_RF_MODEL_PARAMS = {
|
||||||
"base_clf": RandomForestClassifier(
|
"base_clf": RandomForestClassifier(
|
||||||
n_estimators=100,
|
n_estimators=100,
|
||||||
|
|||||||
Reference in New Issue
Block a user