This repository was archived by the owner on Nov 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
48 lines (45 loc) · 1.32 KB
/
Copy pathconfig.py
File metadata and controls
48 lines (45 loc) · 1.32 KB
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
# Server Specific Configurations
server = {
'port': '6000',
'host': '127.0.0.1'
}
# Pecan Application Configurations
app = {
'root': 'pseudonym.controllers.root.RootController',
'modules': ['pseudonym'],
'static_root': '%(confdir)s/public',
'template_path': '%(confdir)s/pseudonym/templates',
'debug': False
}
database = {
'url': 'mongodb://localhost:27017/',
'cache_seconds': 24 * 60 * 60
}
logging = {
'root': {'level': 'INFO', 'handlers': ['console']},
'loggers': {
'pseudonym': {'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
}
}
}