-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.sample
47 lines (44 loc) · 1.3 KB
/
config.py.sample
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
# Server Specific Configurations
server = {
'port': '9090',
'host': '0.0.0.0'
}
# Pecan Application Configurations
app = {
'root': 'indiepaper.controllers.root.RootController',
'modules': ['indiepaper'],
'template_path': '%(confdir)s/indiepaper/templates',
'debug': True
}
mercury = {
'api_key': 'MERCURY_API_KEY_HERE',
'endpoint': 'https://mercury.postlight.com/parser'
}
logging = {
'root': {'level': 'INFO', 'handlers': ['console']},
'loggers': {
'indiepaper': {'level': 'DEBUG', 'handlers': ['console'], 'propagate': False},
'pecan': {'level': 'DEBUG', 'handlers': ['console'], 'propagate': False},
'py.warnings': {'handlers': ['console']},
'__force_dict__': True
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'color'
}
},
'formatters': {
'simple': {
'format': ('%(asctime)s %(levelname)-5.5s [%(name)s]'
'[%(threadName)s] %(message)s')
},
'color': {
'()': 'pecan.log.ColorFormatter',
'format': ('%(asctime)s [%(padded_color_levelname)s] [%(name)s]'
'[%(threadName)s] %(message)s'),
'__force_dict__': True
}
}
}