Martin
2016-12-06 1bf417e4c1b2865f44357a61ca16fadde310077e
commit | author | age
88995e 1 ###
SP 2 # app configuration
3 # http://docs.pylonsproject.org/projects/pyramid/en/1.7-branch/narr/environment.html
4 ###
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     pyramid_zodbconn
17     pyramid_tm
18
19 tm.attempts = 3
20 zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000
21
22 # By default, the toolbar only appears for clients from IP addresses
23 # '127.0.0.1' and '::1'.
24 # debugtoolbar.hosts = 127.0.0.1 ::1
25
26 ###
27 # wsgi server configuration
28 ###
29
30 [server:main]
31 use = egg:waitress#main
1bf417 32 listen = 127.0.0.1:6543
88995e 33
SP 34 ###
35 # logging configuration
36 # http://docs.pylonsproject.org/projects/pyramid/en/1.7-branch/narr/logging.html
37 ###
38
39 [loggers]
40 keys = root, tutorial
41
42 [handlers]
43 keys = console
44
45 [formatters]
46 keys = generic
47
48 [logger_root]
49 level = INFO
50 handlers = console
51
52 [logger_tutorial]
53 level = DEBUG
54 handlers =
55 qualname = tutorial
56
57 [handler_console]
58 class = StreamHandler
59 args = (sys.stderr,)
60 level = NOTSET
61 formatter = generic
62
63 [formatter_generic]
64 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s