From c7eb267f15b1df4a9d13ea2558686db6265a3956 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 7 Apr 2011 17:26:02 +0200 Subject: [PATCH] add some 1.3 defaults to settings --- pandora/settings.py | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/pandora/settings.py b/pandora/settings.py index e2e27ed38..60d9d0089 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -89,9 +89,9 @@ ADMIN_MEDIA_PREFIX = '/admin/media/' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.load_template_source', - 'django.template.loaders.app_directories.load_template_source', - 'django.template.loaders.eggs.load_template_source', + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', + 'django.template.loaders.eggs.Loader', ) MIDDLEWARE_CLASSES = ( @@ -137,6 +137,29 @@ INSTALLED_APPS = ( 'urlalias', ) +# A sample logging configuration. The only tangible logging +# performed by this configuration is to send an email to +# the site admins on every HTTP 500 error. +# See http://docs.djangoproject.com/en/dev/topics/logging for +# more details on how to customize your logging configuration. +LOGGING = { + 'version': 1, + 'disable_existing_loggers': False, + 'handlers': { + 'mail_admins': { + 'level': 'ERROR', + 'class': 'django.utils.log.AdminEmailHandler' + } + }, + 'loggers': { + 'django.request': { + 'handlers': ['mail_admins'], + 'level': 'ERROR', + 'propagate': True, + }, + } +} + AUTH_PROFILE_MODULE = 'user.UserProfile' #Video encoding settings