Steve Piercy
2017-06-11 85623b13b3790dcfae53697f282e9f8e68736e35
commit | author | age
88995e 1 ###
SP 2 # app configuration
81bf14 3 # http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
88995e 4 ###
SP 5
6 [app:main]
7 use = egg:tutorial
8
9 pyramid.reload_templates = true
10 pyramid.debug_authorization = false
11 pyramid.debug_notfound = false
12 pyramid.debug_routematch = false
13 pyramid.default_locale_name = en
14 pyramid.includes =
15     pyramid_debugtoolbar
16
17 zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000
18
85623b 19 retry.attempts = 3
SP 20
88995e 21 # By default, the toolbar only appears for clients from IP addresses
SP 22 # '127.0.0.1' and '::1'.
23 # debugtoolbar.hosts = 127.0.0.1 ::1
24
25 ###
26 # wsgi server configuration
27 ###
28
29 [server:main]
30 use = egg:waitress#main
6d120e 31 listen = localhost:6543
88995e 32
SP 33 ###
34 # logging configuration
81bf14 35 # http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
88995e 36 ###
SP 37
38 [loggers]
39 keys = root, tutorial
40
41 [handlers]
42 keys = console
43
44 [formatters]
45 keys = generic
46
47 [logger_root]
48 level = INFO
49 handlers = console
50
51 [logger_tutorial]
52 level = DEBUG
53 handlers =
54 qualname = tutorial
55
56 [handler_console]
57 class = StreamHandler
58 args = (sys.stderr,)
59 level = NOTSET
60 formatter = generic
61
62 [formatter_generic]
63 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s