X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/470817c5149ca294bd929fb29632a91c985aef0a..f1b70c0cd342b6769df2326ffc122add67ccd917:/project/settings.py?ds=sidebyside diff --git a/project/settings.py b/project/settings.py index 178a1043..bcf73167 100644 --- a/project/settings.py +++ b/project/settings.py @@ -77,12 +77,14 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.auth.middleware.AuthenticationMiddleware', 'explorer.middleware.EditorSettingsMiddleware', 'django.middleware.doc.XViewMiddleware', + + 'maintenancemode.middleware.MaintenanceModeMiddleware', ) ROOT_URLCONF = 'urls' TEMPLATE_DIRS = ( - PROJECT_ROOT + '/templates' + PROJECT_ROOT + '/templates', ) # CSS and JS files to compress @@ -114,6 +116,7 @@ INSTALLED_APPS = ( 'explorer', 'toolbar', 'api', + 'wysiwyg', ) @@ -127,6 +130,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: