text: """
  Django settings for central_controller project.
  
  Generated by 'django-admin startproject' using Django 1.11.14.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.11/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.11/ref/settings/
  """
  
  import os
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = '3)0_7qe*a9zdsc^hmc++nf0)&qts@nu@ek*%o76c)#)ptql*b@'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = ["0.0.0.0", "192.168.0.1"]
  '''GLOBAL_SETTINGS = {
      'SAMPLING_INTERVAL': 30.0,
      'APPS': [0, 1],
      'HOST_IPS': ['192.168.0.2', '10.11.17.11'],
      'U_PES_MIN': [[0, 0.0625, 0.125, 0.1875, 0.25], [0, 0.0625, 0.125, 0.1875, 0.25]],
      'U_PES_MAX': [[0, 0.0625, 0.125, 0.1875, 0.25], [0, 0.0625, 0.125, 0.1875, 0.25]],
      'U_REQ_MIN': [[0, 0, 0.33, 0.53, 0.6], [0, 0, 0.33, 0.53, 0.6]],
      'U_REQ_MAX': [[0, 0.33, 0.66, 0.8, 0.93], [0, 0.33, 0.66, 0.8, 0.93]],
      'X_ART_REF': [[0, 3, 3, 3, 3], [0, 3.5, 3.5, 3.5, 3.5]],
      'U_PES_REF': [[0, 0.0625, 0.125, 0.1875, 0.25],[0, 0.0625, 0.125, 0.1875, 0.25]],
      'U_REQ_REF': [[0, 0.141, 0.476, 0.572, 0.615], [0, 0.165, 0.553, 0.572, 0.718]],
      'K1': [[0, -1.3434, -2.1408, -0.1541, -0.4545], [0, -1.3434, -2.1408, -0.1541, -0.4545]],
      'K2': [[0, -1.3434, -2.1408, -0.1541, -0.4545], [0, -1.3434, -2.1408, -0.1541, -0.4545]],
      'MAX_TOTAL_CONT_PES': 1.00,
      'OPTIMIZER_THRESHOLD' : 0.033
  }'''
  
  GLOBAL_SETTINGS = {
      
      'SAMPLING_INTERVAL': 30.0,
      'APPS': [0, 1],
      'HOST_IPS': ['192.168.0.2', '147.102.13.123'], #'10.11.17.11','147.102.13.123'],
      'U_PES_MIN': [[0, 0.0625, 0.125, 0.1875, 0.25], [0, 0.0625, 0.125, 0.1875, 0.25], [0, 0, 0.25, 0, 0.5], [0, 0, 0.25, 0, 0.5]],
      'U_PES_MAX': [[0, 0.0625, 0.125, 0.1875, 0.25], [0, 0.0625, 0.125, 0.1875, 0.25], [0, 0, 0.25, 0, 0.5], [0, 0, 0.25, 0, 0.5]],
      'U_REQ_MIN': [[0, 0, 0.33, 0.53, 0.6], [0, 0, 0.33, 0.53, 0.6], [0, 0, 0.167, 0, 0,433], [0, 0, 0.167, 0, 0.433]],
      'U_REQ_MAX': [[0, 0.33, 0.66, 0.8, 0.93], [0, 0.33, 0.66, 0.8, 0.93], [0, 0, 0.5, 0, 0.767], [0, 0, 0.5, 0, 0.767]],
      'X_ART_REF': [[0, 3, 3, 3, 3], [0, 3.5, 3.5, 3.5, 3.5], [0, 0, 3, 0, 3], [0, 0, 3.5, 0, 3.5]],
      'U_PES_REF': [[0, 0.0625, 0.125, 0.1875, 0.25],[0, 0.0625, 0.125, 0.1875, 0.25],[0, 0, 0.25, 0, 0.5],[0, 0, 0.25, 0, 0.5]],
      'U_REQ_REF': [[0, 0.141, 0.476, 0.572, 0.615], [0, 0.165, 0.553, 0.572, 0.718],[0, 0, 0.364, 0, 0.613], [0, 0, 0.425, 0, 0.715]],
      'K1': [[0, -1.3434, -2.1408, -0.1541, -0.4545], [0, -1.3434, -2.1408, -0.1541, -0.4545],[0, 0, -9.6889, 0, -6.0965], [0, 0, -9.6889, 0, -6.0965]],
      'K2': [[0, -1.3434, -2.1408, -0.1541, -0.4545], [0, -1.3434, -2.1408, -0.1541, -0.4545],[0, 0, -9.6889, 0, -6.0965], [0, 0, -9.6889, 0, -6.0965]],
      'MAX_TOTAL_CONT_PES': 1.00,
      'OPTIMIZER_THRESHOLD' : 0.0
  }
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'rest_framework',
      'api'
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  
  ROOT_URLCONF = 'central_controller.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'central_controller.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/1.11/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  
  
  # Password validation
  # https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
  
  AUTH_PASSWORD_VALIDATORS = [
      {
          'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
      },
  ]
  
  
  # Internationalization
  # https://docs.djangoproject.com/en/1.11/topics/i18n/
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'UTC'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/1.11/howto/static-files/
  
  STATIC_URL = '/static/'
  
  # Celery application definition
  # http://docs.celeryproject.org/en/v4.0.2/userguide/configuration.html
  # CELERY_WORKER_HIJACK_ROOT_LOGGER = False
  CELERY_BROKER_URL = 'redis://localhost:6379'
  CELERY_RESULT_BACKEND = 'redis://localhost:6379'
  CELERY_ACCEPT_CONTENT = ['application/json']
  CELERY_RESULT_SERIALIZER = 'json'
  CELERY_TASK_SERIALIZER = 'json'
  CELERY_TIMEZONE = 'Europe/Athens'
  CELERY_IMPORTS = ('api.tasks',)
  CELERY_BEAT_SCHEDULE = {
      'scale-horizontally': {
          'task': 'api.tasks.horizontal_scaler.scale_horizontally',
          'schedule': GLOBAL_SETTINGS['SAMPLING_INTERVAL']
      }
  }
  