text: from decouple import config
  from .common import Common
  
  
  class Production(Common):
      INSTALLED_APPS = Common.INSTALLED_APPS
      # Site
      # https://docs.djangoproject.com/en/2.0/ref/settings/#allowed-hosts
      INSTALLED_APPS += ("gunicorn",)
  
      # Static files (CSS, JavaScript, Images)
      # https://docs.djangoproject.com/en/2.0/howto/static-files/
      # http://django-storages.readthedocs.org/en/latest/index.html
      INSTALLED_APPS += ('storages',)
      DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
      STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
      AWS_ACCESS_KEY_ID = config('DJANGO_AWS_ACCESS_KEY_ID', default='')
      AWS_SECRET_ACCESS_KEY = config('DJANGO_AWS_SECRET_ACCESS_KEY', default='')
      AWS_STORAGE_BUCKET_NAME = config('DJANGO_AWS_STORAGE_BUCKET_NAME', default='')
      AWS_DEFAULT_ACL = 'public-read'
      AWS_AUTO_CREATE_BUCKET = True
      AWS_QUERYSTRING_AUTH = False
      MEDIA_URL = 'https://s3.amazonaws.com/{AWS_STORAGE_BUCKET_NAME}/'
  
      # https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching#cache-control
      # Response can be cached by browser and any intermediary caches (i.e. it is "public") for up to 1 day
      # 86400 = (60 seconds x 60 minutes x 24 hours)
      AWS_HEADERS = {
          'Cache-Control': 'max-age=86400, s-maxage=86400, must-revalidate',
      }
  
      CORS_ORIGIN_ALLOW_ALL = config('CORS_ORIGIN_ALLOW_ALL', default=True, cast=bool)
  
      # Cache
      CACHES = {
          'default': {
              'BACKEND': 'redis_cache.RedisCache',
              'LOCATION': 'redis:6379',
          },
      }
  