text: import os
  # import django_heroku
  from pathlib import Path
  from decouple import config
  import dj_database_url
  
  import cloudinary
  import cloudinary.uploader
  import cloudinary.api
  
  # 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 = config('SECRET_KEY')
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS=["moringa-alumni.herokuapp.com","127.0.0.1"]
  
  APPEND_SLASH = False
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'jazzmin',
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'app',
      'rest_framework',
      'corsheaders',
      'rest_framework.authtoken',
  
  
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'corsheaders.middleware.CorsMiddleware',
      'django.middleware.common.CommonMiddleware',
  ]
  
  CORS_ORIGIN_WHITELIST = [
  
      'http://localhost:4200'
  ]
  
  ROOT_URLCONF = 'Alumni.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 = 'Alumni.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/3.2/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql',
          'NAME': config('DB_NAME'),
          'USER': config('DB_USER'),
          'PASSWORD': config('DB_PASSWORD'),
          'HOST': config('DB_HOST'),
      }
  }
  
  # Cloudinary
  # Configuring cloudinary
  cloudinary.config(
      cloud_name=config('CD_NAME'),
      api_key=config('CD_API'),
      api_secret=config('CD_SECRET'),
  )
  
  # REST_FRAMEWORK = {
  #     'DEFAULT_AUTHENTICATION_CLASSES': [
  #         'rest_framework.authentication.BasicAuthentication',
  #         'rest_framework.authentication.SessionAuthentication',
  #     ]
  # }
  
  REST_FRAMEWORK = {
      'DEFAULT_PARSER_CLASSES': [
          'rest_framework.parsers.JSONParser',
      ]
  }
  # 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 = 'Africa/Nairobi'
  
  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_ROOT = os.path.join(BASE_DIR, 'staticfiles')
  STATIC_URL = '/static/'
  STATICFILES_DIRS = [
      os.path.join(BASE_DIR, "static"),
  ]
  
  # STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
  # Default primary key field type
  # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
  
  DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
  
  # LOGIN_REDIRECT_URL='/profile/'
  
  # django_heroku.settings(locals())
  
  JAZZMIN_SETTINGS = {
      # title of the window (Will default to current_admin_site.site_title if absent or None)
      "site_title": "Library Admin",
  
      # Title on the login screen (19 chars max) (defaults to current_admin_site.site_header if absent or None)
      "site_header": " Moringa Alumni",
  
      # Title on the brand (19 chars max) (defaults to current_admin_site.site_header if absent or None)
      "site_brand": " Moringa Alumni",
  
      # Logo to use for your site, must be present in static files, used for brand on top left
      "site_logo": "images/moringa.jpeg",
  
      # CSS classes that are applied to the logo above
      "site_logo_classes": "img-circle",
  
      # Relative path to a favicon for your site, will default to site_logo if absent (ideally 32x32 px)
      "site_icon": None,
  
      # Welcome text on the login screen
      "welcome_sign": "Welcome to Moringa Alumni",
  
      # Copyright on the footer
      "copyright": " Moringa Alumni copyright",
  
      # The model admin to search from the search bar, search bar omitted if excluded
      "search_model": "auth.User",
  
      # Field name on user model that contains avatar ImageField/URLField/Charfield or a callable that receives the user
      "user_avatar": None,
  
      ############
      # 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": "Support", "url": "https://github.com/farridav/django-jazzmin/issues",
              "new_window": True},
  
          # model admin to link to (Permissions checked against model)
          {"model": "auth.User"},
  
          # App with dropdown menu to all its models pages (Permissions checked against models)
          {"app": "app"},
      ],
  
      #############
      # User Menu #
      #############
  
      # Additional links to include in the user menu on the top right ("app" url type is not allowed)
      "usermenu_links": [
          {"name": "Support", "url": "https://github.com/farridav/django-jazzmin/issues",
              "new_window": True},
          {"model": "auth.user"}
      ],
  
  
  }
  
  JAZZMIN_SETTINGS["show_ui_builder"] = True
  JAZZMIN_UI_TWEAKS = {
      "navbar_small_text": False,
      "footer_small_text": False,
      "body_small_text": False,
      "brand_small_text": False,
      "brand_colour": "navbar-navy",
      "accent": "accent-navy",
      "navbar": "navbar-navy navbar-dark",
      "no_navbar_border": False,
      "navbar_fixed": False,
      "layout_boxed": False,
      "footer_fixed": True,
      "sidebar_fixed": True,
      "sidebar": "sidebar-dark-navy",
      "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": "default",
      "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-success"
      }
  }