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"],
|
||||
"PORT": os.environ["POSTGRES_PORT"],
|
||||
}
|
||||
}
|
||||
|
||||
# Password validation
|
||||
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
|
||||
@ -260,9 +261,7 @@ CELERY_ACCEPT_CONTENT = ["json"]
|
||||
CELERY_TASK_SERIALIZER = "json"
|
||||
|
||||
MODEL_BUILDING_ENABLED = os.environ.get("MODEL_BUILDING_ENABLED", "False") == "True"
|
||||
APPLICABILITY_DOMAIN_ENABLED = (
|
||||
os.environ.get("APPLICABILITY_DOMAIN_ENABLED", "False") == "True"
|
||||
)
|
||||
APPLICABILITY_DOMAIN_ENABLED = os.environ.get("APPLICABILITY_DOMAIN_ENABLED", "False") == "True"
|
||||
DEFAULT_RF_MODEL_PARAMS = {
|
||||
"base_clf": RandomForestClassifier(
|
||||
n_estimators=100,
|
||||
|
||||
Reference in New Issue
Block a user