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