Default Settings

pyapp.conf.base_settings.CHECK_LOCATIONS: Sequence[str] = []

Locations to import to ensure checks are registered.

pyapp.conf.base_settings.DEBUG: bool = False

Enable debug mode

pyapp.conf.base_settings.FEATURE_FLAGS: Dict[str, bool] = {}

Feature flags definition, this is a simple configuration of:

FEATURE_FLAGS = {
    "flag-name": True,  # State of True, False
}
pyapp.conf.base_settings.FEATURE_FLAG_PREFIX: str = 'PYAPP_FLAG_'

Prefix applied to flag names for environment variables

pyapp.conf.base_settings.LOGGING: Dict[str, Any] = {}

Logging configuration.

The following configuration is applied by default:

LOGGING = {
    'formatters': {
        'default': {
            'format': '%(asctime)s | %(levelname)s | %(name)s | %(message)s',
        },
    },
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
            'formatter': 'default',
            'stream': 'ext://sys.stderr',
        },
    },
    'root': {
        # 'level' : 'INFO',  # Set from command line arg parser.
        'handlers': ['console'],
    }
}