settings
The application settings.
kelp.core.settings.Settings
Bases: BaseSettings
Represents Application Settings with nested configuration sections
Source code in kelp/core/settings.py
8 9 10 11 12 13 14 15 16 17 18 |
|
Importing settings
To use current settings without the need to parse them each time you can use:
import logging
from kelp.core.settings import current_settings
# log current environment
logging.info(current_settings.env) # INFO:dev