* dev: formatting and removing unused imports * dev: remove unused imports and format all the files * fix: linting errors * dev: format using ruff * dev: remove unused variables
20 lines
610 B
Python
20 lines
610 B
Python
"""Production settings"""
|
|
|
|
import os
|
|
from .common import * # noqa
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG = int(os.environ.get("DEBUG", 0)) == 1
|
|
|
|
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
|
|
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
|
|
|
INSTALLED_APPS += ("scout_apm.django",)
|
|
|
|
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
|
|
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
|
|
|
# Scout Settings
|
|
SCOUT_MONITOR = os.environ.get("SCOUT_MONITOR", False)
|
|
SCOUT_KEY = os.environ.get("SCOUT_KEY", "")
|
|
SCOUT_NAME = "Plane"
|