Steve Piercy
2017-06-26 19d341b5be789e97000d3dcbd33de75d8b061829
commit | author | age
6234f4 1 ###
PP 2 # app configuration
19d341 3 # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
6234f4 4 ###
PP 5
3d338e 6 [app:main]
c44c40 7 use = egg:tutorial
6234f4 8
875ded 9 pyramid.reload_templates = true
MM 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_debugtoolbar
16
b25335 17 zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000
0d7e95 18
85623b 19 retry.attempts = 3
SP 20
6234f4 21 # By default, the toolbar only appears for clients from IP addresses
PP 22 # '127.0.0.1' and '::1'.
23 # debugtoolbar.hosts = 127.0.0.1 ::1
24
25 ###
26 # wsgi server configuration
27 ###
28
e53e13 29 [server:main]
030d10 30 use = egg:waitress#main
6d120e 31 listen = localhost:6543
2a5ae0 32
6234f4 33 ###
PP 34 # logging configuration
19d341 35 # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
6234f4 36 ###
2a5ae0 37
CM 38 [loggers]
6234f4 39 keys = root, tutorial
2a5ae0 40
CM 41 [handlers]
42 keys = console
43
44 [formatters]
45 keys = generic
46
47 [logger_root]
48 level = INFO
49 handlers = console
50
6234f4 51 [logger_tutorial]
PP 52 level = DEBUG
53 handlers =
54 qualname = tutorial
55
2a5ae0 56 [handler_console]
CM 57 class = StreamHandler
58 args = (sys.stderr,)
59 level = NOTSET
60 formatter = generic
61
62 [formatter_generic]
a38b84 63 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s