text: import logging
  import sentry_sdk
  from sentry_sdk.integrations.django import DjangoIntegration
  
  from .base import *  # noqa
  from .base import env
  
  # GENERAL
  # ------------------------------------------------------------------------------
  # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
  SECRET_KEY = env('DJANGO_SECRET_KEY')
  # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
  ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', default=['brueck.io'])
  
  # DATABASES
  # ------------------------------------------------------------------------------
  DATABASES['default'] = env.db('DATABASE_URL')  # noqa F405
  DATABASES['default']['ATOMIC_REQUESTS'] = True  # noqa F405
  DATABASES['default']['CONN_MAX_AGE'] = env.int('CONN_MAX_AGE', default=60)  # noqa F405
  
  # CACHES
  # ------------------------------------------------------------------------------
  # CACHING
  # ------------------------------------------------------------------------------
  CACHES = {
      'default': {
          'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
          'LOCATION': ''
      }
  }
  
  # SECURITY
  # ------------------------------------------------------------------------------
  # https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
  SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  # https://docs.djangoproject.com/en/dev/ref/settings/#secure-ssl-redirect
  SECURE_SSL_REDIRECT = env.bool('DJANGO_SECURE_SSL_REDIRECT', default=True)
  # https://docs.djangoproject.com/en/dev/ref/settings/#session-cookie-secure
  SESSION_COOKIE_SECURE = True
  # https://docs.djangoproject.com/en/dev/ref/settings/#session-cookie-httponly
  SESSION_COOKIE_HTTPONLY = True
  # https://docs.djangoproject.com/en/dev/ref/settings/#csrf-cookie-secure
  CSRF_COOKIE_SECURE = True
  # https://docs.djangoproject.com/en/dev/ref/settings/#csrf-cookie-httponly
  CSRF_COOKIE_HTTPONLY = True
  # https://docs.djangoproject.com/en/dev/topics/security/#ssl-https
  # https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-seconds
  # TODO: set this to 60 seconds first and then to 518400 once you prove the former works
  SECURE_HSTS_SECONDS = 60
  # https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-include-subdomains
  SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool('DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS', default=True)
  # https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-preload
  SECURE_HSTS_PRELOAD = env.bool('DJANGO_SECURE_HSTS_PRELOAD', default=True)
  # https://docs.djangoproject.com/en/dev/ref/middleware/#x-content-type-options-nosniff
  SECURE_CONTENT_TYPE_NOSNIFF = env.bool('DJANGO_SECURE_CONTENT_TYPE_NOSNIFF', default=True)
  # https://docs.djangoproject.com/en/dev/ref/settings/#secure-browser-xss-filter
  SECURE_BROWSER_XSS_FILTER = True
  # https://docs.djangoproject.com/en/dev/ref/settings/#x-frame-options
  X_FRAME_OPTIONS = 'DENY'
  
  # TEMPLATES
  # ------------------------------------------------------------------------------
  # https://docs.djangoproject.com/en/dev/ref/settings/#templates
  TEMPLATES[0]['OPTIONS']['loaders'] = [  # noqa F405
      (
          'django.template.loaders.cached.Loader',
          [
              'django.template.loaders.filesystem.Loader',
              'django.template.loaders.app_directories.Loader',
          ]
      ),
  ]
  
  # EMAIL
  # ------------------------------------------------------------------------------
  # https://docs.djangoproject.com/en/dev/ref/settings/#default-from-email
  DEFAULT_FROM_EMAIL = env(
      'DJANGO_DEFAULT_FROM_EMAIL',
      default='brueck.io <noreply@brueck.io>'
  )
  # https://docs.djangoproject.com/en/dev/ref/settings/#server-email
  SERVER_EMAIL = env('DJANGO_SERVER_EMAIL', default=DEFAULT_FROM_EMAIL)
  # https://docs.djangoproject.com/en/dev/ref/settings/#email-subject-prefix
  EMAIL_SUBJECT_PREFIX = env('DJANGO_EMAIL_SUBJECT_PREFIX', default='[brueck.io]')
  
  # ADMIN
  # ------------------------------------------------------------------------------
  # Django Admin URL regex.
  ADMIN_URL = env('DJANGO_ADMIN_URL', default=r'^admin/')
  
  # Gunicorn
  # ------------------------------------------------------------------------------
  INSTALLED_APPS += ['gunicorn']  # noqa F405
  
  
  # Sentry
  # ------------------------------------------------------------------------------
  SENTRY_DSN = env('DJANGO_SENTRY_DSN')
  
  sentry_sdk.init(
      dsn=SENTRY_DSN,
      integrations=[DjangoIntegration()],
  
      # Set traces_sample_rate to 1.0 to capture 100%
      # of transactions for performance monitoring.
      # We recommend adjusting this value in production,
      traces_sample_rate=0,
  
      # If you wish to associate users to errors (assuming you are using
      # django.contrib.auth) you may enable sending PII data.
      send_default_pii=True,
  
      # By default the SDK will try to use the SENTRY_RELEASE
      # environment variable, or infer a git commit
      # SHA as release, however you may want to set
      # something more human-readable.
      # release="myapp@1.0.0",
  )
  
  