X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8f0e18f498d6c07937c92d186bfa6b654a1afa14..28eed140e4dde5ae3ec206c47a6d5f30f0296607:/redakcja/settings/common.py diff --git a/redakcja/settings/common.py b/redakcja/settings/common.py index 0a3b3765..377a4d50 100644 --- a/redakcja/settings/common.py +++ b/redakcja/settings/common.py @@ -140,3 +140,16 @@ WL_API_CONFIG = { } # Import localsettings file, which may override settings defined here + +from localsettings import * + +try: + import logging + if os.path.isfile(LOGGING_CONFIG_FILE): + import logging.config + logging.config.fileConfig(LOGGING_CONFIG_FILE) + else: + import sys + logging.basicConfig(stream=sys.stderr) +except ImportError as exc: + raise