commit | author | age
|
9ee14a
|
1 |
### |
MM |
2 |
# app configuration |
19d341
|
3 |
# https://docs.pylonsproject.org/projects/pyramid/en/{{pyramid_docs_branch}}/narr/environment.html |
9ee14a
|
4 |
### |
MM |
5 |
|
3d338e
|
6 |
[app:main] |
b040b1
|
7 |
use = egg:{{project}} |
7ca773
|
8 |
|
MM |
9 |
pyramid.reload_templates = false |
|
10 |
pyramid.debug_authorization = false |
|
11 |
pyramid.debug_notfound = false |
|
12 |
pyramid.debug_routematch = false |
|
13 |
pyramid.default_locale_name = en |
d21ba4
|
14 |
pyramid.includes = |
CM |
15 |
pyramid_tm |
|
16 |
pyramid_zodbconn |
|
17 |
|
4d23e6
|
18 |
tm.attempts = 3 |
b25335
|
19 |
zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
b040b1
|
20 |
|
9ee14a
|
21 |
### |
MM |
22 |
# wsgi server configuration |
|
23 |
### |
|
24 |
|
b040b1
|
25 |
[server:main] |
030d10
|
26 |
use = egg:waitress#main |
fb17a3
|
27 |
listen = *:6543 |
b040b1
|
28 |
|
9ee14a
|
29 |
### |
MM |
30 |
# logging configuration |
19d341
|
31 |
# https://docs.pylonsproject.org/projects/pyramid/en/{{pyramid_docs_branch}}/narr/logging.html |
9ee14a
|
32 |
### |
b040b1
|
33 |
|
BL |
34 |
[loggers] |
|
35 |
keys = root, {{package_logger}} |
|
36 |
|
|
37 |
[handlers] |
|
38 |
keys = console |
|
39 |
|
|
40 |
[formatters] |
|
41 |
keys = generic |
|
42 |
|
|
43 |
[logger_root] |
a87a68
|
44 |
level = WARN |
b040b1
|
45 |
handlers = console |
BL |
46 |
|
|
47 |
[logger_{{package_logger}}] |
a87a68
|
48 |
level = WARN |
b040b1
|
49 |
handlers = |
BL |
50 |
qualname = {{package}} |
|
51 |
|
|
52 |
[handler_console] |
|
53 |
class = StreamHandler |
|
54 |
args = (sys.stderr,) |
|
55 |
level = NOTSET |
|
56 |
formatter = generic |
|
57 |
|
|
58 |
[formatter_generic] |
6d37c8
|
59 |
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |