1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
"""
This module contains static configuration settings for the web portal.
"""
__version__ = '$Id$'
# must end with a slash!
STATIC_URL = '/media/'
# where to email server errors
ADMINS = (('Administrator', 'root@localhost'),)
LOGGING = {
'version': 1,
'formatters': {
'verbose': {
# see http://docs.python.org/2.7/library/logging.html#logging.LogRecord
'format': '%(levelname)s %(asctime)s %(name)s %(message)s'
},
},
'handlers': {
'stderr': {
'class': 'logging.StreamHandler',
'level': 'DEBUG',
'formatter': 'verbose',
},
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler',
},
},
'loggers': {
'django': {
'level': 'ERROR',
'handlers': ['stderr', 'mail_admins'],
},
'rpki.gui': {
'level': 'WARNING',
'handlers': ['stderr'],
},
},
}
|