X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/861a08cdc38728e9f988a0a321e62693e26e947f..de93104a2513acc5a378496c6bf6ab7ed0d45d60:/project/settings.py diff --git a/project/settings.py b/project/settings.py index 7d2ed64e..143f2926 100644 --- a/project/settings.py +++ b/project/settings.py @@ -87,7 +87,7 @@ MIDDLEWARE_CLASSES = ( ROOT_URLCONF = 'urls' TEMPLATE_DIRS = ( - PROJECT_ROOT + '/templates', + PROJECT_ROOT + '/templates', ) # CSS and JS files to compress @@ -133,6 +133,19 @@ EDITOR_DEFAULT_SETTINGS = { ], } +# Python logging settings +import logging + +log = logging.getLogger('platforma') +log.setLevel(logging.DEBUG) +ch = logging.StreamHandler() +ch.setLevel(logging.DEBUG) +formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') +ch.setFormatter(formatter) +log.addHandler(ch) + + +# Import localsettings file, which may override settings defined here try: from localsettings import * except ImportError: