text: from pathlib import Path
  
  import dj_database_url
  import environ
  
  # env = environ.Env(
  #     DEBUG=(bool, False)
  # )
  #
  # READ_DOT_ENV_FILE = env.bool('READ_DOT_ENV_FILE', default=False)
  # if READ_DOT_ENV_FILE:
  #     environ.Env.read_env()
  #
  # DEBUG = env('DEBUG')
  # SECRET_KEY = env('SECRET_KEY')
  
  DEBUG = False
  SECRET_KEY = '9l=jjp#g0-mbdfsntqww91&s9b^a!kj44ljl4f5h!+uoft$h6u'
  
  # Build paths inside the project like this: BASE_DIR / 'subdir'.
  BASE_DIR = Path(__file__).resolve().parent.parent
  
  # ALLOWED_HOSTS = []
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  
      # Third party apps
      'crispy_forms',
      "crispy_tailwind",
  
      # Local apps
      'leads',
      'agents',
  ]
  
  MIDDLEWARE = [
      'whitenoise.middleware.WhiteNoiseMiddleware',
      '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 = 'djcrm.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [BASE_DIR / "templates"],
          '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 = 'djcrm.wsgi.application'
  
  # Database
  # https://docs.djangoproject.com/en/3.1/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'default': dj_database_url.config(default=config('DATABASE_URL'))
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'djcrm',
          'USER': 'djcrmuser',
          'PASSWORD': 'djcrm1234',
          'HOST': 'localhost',
          'PORT': '5432',
      }
  }
  
  # Password validation
  # https://docs.djangoproject.com/en/3.1/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.1/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.1/howto/static-files/
  
  STATIC_URL = '/static/'
  STATICFILES_DIRS = [
      BASE_DIR / "static"
  ]
  
  STATIC_ROOT = "static_root"
  
  AUTH_USER_MODEL = 'leads.User'
  EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
  LOGIN_REDIRECT_URL = "/leads"
  LOGIN_URL = "/login"
  LOGOUT_REDIRECT_URL = "/"
  
  CRISPY_ALLOWED_TEMPLATE_PACKS = "tailwind"
  CRISPY_TEMPLATE_PACK = 'tailwind'
  
  if not DEBUG:
      SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
      SECURE_SSL_REDIRECT = True
      SESSION_COOKIE_SECURE = True
      CSRF_COOKIE_SECURE = True
      SECURE_BROWSER_XSS_FILTER = True
      SECURE_CONTENT_TYPE_NOSNIFF = True
      SECURE_HSTS_SECONDS = 31536000  # 1 year
      SECURE_HSTS_INCLUDE_SUBDOMAINS = True
      SECURE_HSTS_PRELOAD = True
      X_FRAME_OPTIONS = "DENY"
      ALLOWED_HOSTS = ["*"]
  