X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6d69e02f9265a0be1c762e0798e22ac764f2dafc..b12e3cd743360720e18e35f77ece2ba355d99d55:/project/settings.py?ds=sidebyside diff --git a/project/settings.py b/project/settings.py index b2c7f851..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 @@ -113,6 +115,8 @@ INSTALLED_APPS = ( 'explorer', 'toolbar', + 'api', + 'wysiwyg', ) @@ -126,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: