Steve Piercy
2017-06-26 260895df7aa9073d09090aabfdea7e52c262f8bc
commit | author | age
88995e 1 ###
SP 2 # app configuration
1c561a 3 # https://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
19 # By default, the toolbar only appears for clients from IP addresses
20 # '127.0.0.1' and '::1'.
21 # debugtoolbar.hosts = 127.0.0.1 ::1
22
23 ###
24 # wsgi server configuration
25 ###
26
27 [server:main]
28 use = egg:waitress#main
12fe4f 29 listen = localhost:6543
88995e 30
SP 31 ###
32 # logging configuration
1c561a 33 # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
88995e 34 ###
SP 35
36 [loggers]
37 keys = root, tutorial
38
39 [handlers]
40 keys = console
41
42 [formatters]
43 keys = generic
44
45 [logger_root]
46 level = INFO
47 handlers = console
48
49 [logger_tutorial]
50 level = DEBUG
51 handlers =
52 qualname = tutorial
53
54 [handler_console]
55 class = StreamHandler
56 args = (sys.stderr,)
57 level = NOTSET
58 formatter = generic
59
60 [formatter_generic]
61 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s