text: """
  Django settings for Ratable project.
  
  Generated by 'django-admin startproject' using Django 2.2.4.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/2.2/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/2.2/ref/settings/
  """
  
  import os
  from decouple import config
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  PROJECT_DIR = BASE_DIR
  PROJECT_ROOT = BASE_DIR
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = 'c=8jcu(c31)h=xm)9rxm&9mtbg^q!t*t8@^m6_4g69m096it3*'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = []
  
  SITE_ID = 1
  
  EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
  EMAIL_USE_TLS = config("EMAIL_USE_TLS")
  EMAIL_HOST = config("EMAIL_HOST")
  EMAIL_PORT = config("EMAIL_PORT")
  EMAIL_HOST_USER = config("EMAIL_HOST_USER")
  EMAIL_HOST_PASSWORD = config("EMAIL_HOST_PASSWORD")
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      "django.contrib.sites",
  
  
      # Third party
      'bootstrap3',
      'widget_tweaks',
      'bootstrap4',
      'fontawesome',
      'django_template_maths',
  
      # Own apps
      'users',
      'Departments',
      'KPIs',
      'dashboard',
  ]
  
  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 = 'Ratable.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 = 'Ratable.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/2.2/ref/settings/#databases
  
  # DATABASES = {
  #     'default': {
  #         'ENGINE': 'django.db.backends.sqlite3',
  #         'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  #     }
  # }
  
  DATABASES = {
      "default": {
          "ENGINE": "django.db.backends.postgresql",
          "NAME": "ratable",
          "USER": "macy",
          "PASSWORD": "1234",
      }
  }
  
  
  # Password validation
  # https://docs.djangoproject.com/en/2.2/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/2.2/topics/i18n/
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'Africa/Nairobi'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  LOGIN_REDIRECT_URL = 'dashboard'
  LOGOUT_REDIRECT_URL = 'login'
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/2.2/howto/static-files/
  
  # STATIC_ROOT = '/static/'
  # STATICFILES_DIRS = [
  #     os.path.join(BASE_DIR, "static"),
  # ]
  # STATIC_URL = '/static/'
  
  STATIC_URL = os.environ.get("STATIC_URL", "/static/")
  DEFAULT_STATIC_ROOT = os.path.abspath(os.path.join(PROJECT_DIR, "static"))
  STATIC_ROOT = os.environ.get("STATIC_ROOT", DEFAULT_STATIC_ROOT)
  
  STATICFILES_DIRS = (
      os.path.abspath(
          os.path.join(PROJECT_DIR, "node_modules/@coreui/icons/css/")
      ),
      os.path.abspath(
          os.path.join(
              PROJECT_DIR, "node_modules/font-awesome/css/")
      ),
      os.path.abspath(os.path.join(
          PROJECT_DIR, "node_modules/flag-icon-css/css/")),
      os.path.abspath(os.path.join(
          PROJECT_DIR, "node_modules/simple-line-icons/css/")),
      os.path.abspath(os.path.join(PROJECT_DIR, "node_modules/jquery/dist")),
      os.path.abspath(os.path.join(PROJECT_DIR, "node_modules/popper.js/dist")),
      os.path.abspath(os.path.join(
          PROJECT_DIR, "node_modules/bootstrap/dist/js")),
      os.path.abspath(os.path.join(PROJECT_DIR, "node_modules/pace-progress")),
      os.path.abspath(os.path.join(
          PROJECT_DIR, "node_modules/perfect-scrollbar/dist")),
      os.path.abspath(os.path.join(
          PROJECT_DIR, "node_modules/@coreui/coreui/dist/js")),
      os.path.abspath(os.path.join(PROJECT_DIR, "node_modules/chart.js/dist/")),
      os.path.abspath(os.path.join(
          PROJECT_DIR, "node_modules/@coreui/coreui-plugin-chartjs-custom-tooltips/dist/js")),
  )
  
  STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
  MEDIA_URL = "/media/"
  MEDIA_ROOT = os.path.abspath(os.path.join(PROJECT_DIR, "/media"))
  