forked from cssmatic/cssmatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.cfg.default
66 lines (62 loc) · 1.84 KB
/
application.cfg.default
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Example application.cfg. Change it to fit your server
import raven # pylint: disable=W0611
from raven import Client
# General settings
DEBUG = False
# IMPORTANT: YOU HAVE TO CHANGE THIS SECRET_KEY TO ANOTHER RANDOM VALUE
# IMPORTANT: YOU HAVE TO CHANGE THIS SECRET_KEY TO ANOTHER RANDOM VALUE
SECRET_KEY = 'kjvM3jgC4zI$j3$zBc@2eXpVY*!oG5Y*'
SENTRY_DSN = 'http://6a842381589b48b8a09d41cc29854fce:[email protected]/8'
PUBLIC_SENTRY_DSN = 'http://[email protected]/8'
SENTRY_CLIENT = Client(SENTRY_DSN, auto_log_stacks=True)
# Email settings
MAIL_SERVER = 'localhost'
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USE_SSL = False
MAIL_DEBUG = DEBUG
MAIL_USERNAME = None
MAIL_PASSWORD = None
DEFAULT_MAIL_SENDER = None
DEFAULT_MAX_EMAILS = 2
MAIL_FAIL_SILENTLY = False
# Logging configuration
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
},
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'verbose',
},
'sentry': {
'level': 'WARNING',
'class': 'raven.handlers.logging.SentryHandler',
'formatter': 'verbose',
'client': SENTRY_CLIENT,
},
},
'loggers': {
'': {
'handlers': ['sentry', 'console'],
'level': 'WARNING',
'propagate': True,
},
'raven': {
'handlers': ['console'],
'level': 'ERROR',
'propagate': False,
},
'sentry.errors': {
'handlers': ['console'],
'level': 'ERROR',
'propagate': False,
},
}
}