text: """
  Django settings for kdsp project.
  
  Generated by 'django-admin startproject' using Django 3.2.7.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/3.2/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/3.2/ref/settings/
  """
  
  import django_heroku
  import dj_database_url
  
  from pathlib import Path
  
  # Build paths inside the project like this: BASE_DIR / 'subdir'.
  BASE_DIR = Path(__file__).resolve().parent.parent
  
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = "django-insecure-cx)ff7hhh8#rhd0$!3=pyo!nds$%d9&r=tc5kpm$)wmzpigj_c"
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = []
  
  # CORS_ALLOWED_ORIGINS = [
  #     "http://localhost:3000",
  #     "https://pure-beach-12936.herokuapp.com/"
  # ]
  
  CORS_ALLOW_ALL_ORIGINS = True
  
  # Application definition
  
  INSTALLED_APPS = [
      "corsheaders",
      "jazzmin",
      "django.contrib.admin",
      "django.contrib.auth",
      "django.contrib.contenttypes",
      "django.contrib.sessions",
      "django.contrib.messages",
      "django.contrib.staticfiles",
      "payments.apps.PaymentsConfig",
      "queues.apps.QueuesConfig",
      "therapy.apps.TherapyConfig",
      "clients.apps.ClientsConfig",
  ]
  
  MIDDLEWARE = [
      "corsheaders.middleware.CorsMiddleware",
      "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 = "kdsp.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 = "kdsp.wsgi.application"
  
  JAZZMIN_SETTINGS = {
      # title of the window (Will default to current_admin_site.site_title if absent or None)
      "site_title": "KDSP",
      # Title on the brand, and login screen (19 chars max) (defaults to current_admin_site.site_header if absent or None)
      "site_header": "KDSP Admin Portal",
      # Welcome text on the login screen
      "welcome_sign": "Welcome to the Portal - Try admin / admin",
      # Copyright on the footer
      "copyright": "Karachi Down Syndrome Program 2020 © All Rights Reserved. Pakistan",
      ############
      # Top Menu #
      ############
      # Links to put along the top menu
      "topmenu_links": [
          # Url that gets reversed (Permissions can be added)
          {"name": "Home", "url": "admin:index", "permissions": ["auth.view_user"]},
          # external url that opens in a new window (Permissions can be added)
          {
              "name": "Appoinment Scheduler",
              "url": "https://pure-beach-12936.herokuapp.com/",
              "new_window": True,
          },
          # external url that opens in a new window (Permissions can be added)
          {
              "name": "Client Portal",
              "url": "https://kdsp-web.herokuapp.com/",
              "new_window": True,
          },
      ],
      # Hide these apps when generating side menu e.g (auth)
      "hide_apps": ["auth"],
      "show_ui_builder": False,
  }
  
  JAZZMIN_UI_TWEAKS = {
      "navbar_small_text": False,
      "footer_small_text": False,
      "body_small_text": False,
      "brand_small_text": False,
      "brand_colour": False,
      "accent": "accent-primary",
      "navbar": "navbar-white navbar-light",
      "no_navbar_border": False,
      "navbar_fixed": False,
      "layout_boxed": False,
      "footer_fixed": False,
      "sidebar_fixed": False,
      "sidebar": "sidebar-dark-primary",
      "sidebar_nav_small_text": False,
      "sidebar_disable_expand": False,
      "sidebar_nav_child_indent": False,
      "sidebar_nav_compact_style": False,
      "sidebar_nav_legacy_style": False,
      "sidebar_nav_flat_style": False,
      "theme": "lumen",
      "dark_mode_theme": None,
      "button_classes": {
          "primary": "btn-outline-primary",
          "secondary": "btn-outline-secondary",
          "info": "btn-outline-info",
          "warning": "btn-outline-warning",
          "danger": "btn-outline-danger",
          "success": "btn-outline-success",
      },
      "actions_sticky_top": False,
  }
  
  
  # Database
  # https://docs.djangoproject.com/en/3.2/ref/settings/#databases
  
  # DATABASES = {
  #     'default': {
  #         'ENGINE': 'django.db.backends.sqlite3',
  #         'NAME': BASE_DIR / 'db.sqlite3',
  #     }
  # }
  
  DATABASES = {
      "default": {
          "ENGINE": "django.db.backends.postgresql",
          "NAME": "kdsp-portal",
          "USER": "postgres",
          "PASSWORD": "postgres",
          "HOST": "127.0.0.1",
          "PORT": "5432",
      }
  }
  
  
  db_from_env = dj_database_url.config(conn_max_age=600)
  DATABASES["default"].update(db_from_env)
  
  
  # Password validation
  # https://docs.djangoproject.com/en/3.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/3.2/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/3.2/howto/static-files/
  
  STATIC_URL = "/static/"
  
  # Default primary key field type
  # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
  
  DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
  
  
  # Activate Django-Heroku.
  django_heroku.settings(locals())
  