DATABASES = {"default": default_db} AUTH_PASSWORD_VALIDATORS = [] LANGUAGE_CODE = "en-us" TIME_ZONE = "Europe/Bucharest" USE_I18N = True USE_L10N = True USE_TZ = True STATIC_URL = "/static/" STATIC_ROOT = os.path.join(BASE_DIR, "interface/static") SECRET_KEY = "changeme" DEBUG = is_true(os.environ.get("DEBUG")) _hostname = os.environ.get("HOSTNAME") if _hostname: ALLOWED_HOSTS = [_hostname] VMCK_API_URL = os.environ.get("VMCK_API_URL", "http://localhost:8000/v0/") MINIO_ADDRESS = os.environ.get("MINIO_ADDRESS", "localhost:9000") MINIO_ACCESS_KEY = os.environ.get("MINIO_ACCESS_KEY", "1234") MINIO_SECRET_KEY = os.environ.get("MINIO_SECRET_KEY", "123456789") MINIO_BUCKET = os.environ.get("MINIO_BUCKET", "test") ACS_INTERFACE_ADDRESS = os.environ.get( "ACS_INTERFACE_ADDRESS", "localhost:8100",
DATABASES = {'default': default_db} AUTH_PASSWORD_VALIDATORS = [] LANGUAGE_CODE = 'en-us' TIME_ZONE = 'Europe/Bucharest' USE_I18N = True USE_L10N = True USE_TZ = True STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'interface/static') SECRET_KEY = 'changeme' DEBUG = is_true(os.environ.get('DEBUG')) _hostname = os.environ.get('HOSTNAME') if _hostname: ALLOWED_HOSTS = [_hostname] VMCK_API_URL = os.environ.get('VMCK_API_URL', 'http://localhost:8000/v0/') MINIO_ADDRESS = os.environ.get('MINIO_ADDRESS', 'localhost:9000') MINIO_ACCESS_KEY = os.environ.get('MINIO_ACCESS_KEY', '1234') MINIO_SECRET_KEY = os.environ.get('MINIO_SECRET_KEY', '123456789') MINIO_BUCKET = os.environ.get('MINIO_BUCKET', 'test') ACS_INTERFACE_ADDRESS = os.environ.get('ACS_INTERFACE_ADDRESS', 'localhost:8100') # noqa: E501
import os from pathlib import Path import ldap import sentry_sdk from django_auth_ldap.config import LDAPSearch from sentry_sdk.integrations.django import DjangoIntegration from interface.utils import is_true BASE_DIR = Path(__file__).parent.parent DEBUG = is_true(os.environ.get("DEBUG")) PROFILE = is_true(os.environ.get("PROFILE")) BLOCK_SIZE = 32 * 1024 INSTALLED_APPS = [ "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", "simple_history", "interface", ] MIDDLEWARE = [ "django.middleware.gzip.GZipMiddleware",