import os  # noqa

from multisite import SiteID

from .defaults import *  # noqa

print(f"Settings file {__file__}")  # noqa

SITE_ID = SiteID(default=106)
EDC_SITES_UAT_DOMAIN = False
DEBUG = True
ALLOWED_HOSTS = [
    "kojja.ug.inte.clinicedc.org",  # 102 intervention
    "bukulula.ug.inte.clinicedc.org",  # 106 control
    "bagamoyo.tz.inte.clinicedc.org",  # 201
    "bugamba.ug.inte.clinicedc.org",  # 101
    "kinoni.ug.inte.clinicedc.org",  # 103
    "localhost",
]
# comment: comment out if using runserver and folders read from .env
# ETC_DIR = os.path.join(BASE_DIR, "tests", "etc")  # noqa
# KEY_PATH = os.path.join(ETC_DIR, "crypto_fields")  # noqa
# end comment

if os.path.exists(BASE_DIR) and not os.path.exists(KEY_PATH):  # noqa
    os.makedirs(KEY_PATH)  # noqa
    AUTO_CREATE_KEYS = True
AUTO_CREATE_KEYS = False
DATABASE_SQLITE_ENABLED = False
