remotes/origin/HEAD
Slava Kyrachevsky 9 years ago
parent ffc6c1f002
commit 244cd7e918
  1. 38
      proj/settings.py

@ -395,7 +395,7 @@ INSTALLED_APPS = (
'south', 'south',
'rosetta', 'rosetta',
'widget_tweaks', 'widget_tweaks',
'raven.contrib.django.raven_compat',
) )
CRONJOBS = [ CRONJOBS = [
@ -434,36 +434,6 @@ HAYSTACK_CONNECTIONS = {
}, },
} }
# 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 when DEBUG=False.
# 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,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
# TODO automate crons # TODO automate crons
""" """
# update search indexes # update search indexes
@ -554,6 +524,12 @@ PERIODIC = {
8: _(u'Раз в 4 года'), 8: _(u'Раз в 4 года'),
9: _(u'Раз в 5 лет') 9: _(u'Раз в 5 лет')
} }
# sentry
RAVEN_CONFIG = {
'dsn': 'http://eb7e4b632b3543f487386cbe9151b174:0b148a7ed13643c88d3a6b014c3a4f65@sentry.oldmin.org/2',
}
try: try:
from local import * from local import *
except ImportError, e: except ImportError, e:

Loading…
Cancel
Save