commit | author | age
|
6234f4
|
1 |
### |
PP |
2 |
# app configuration |
d5f734
|
3 |
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html |
6234f4
|
4 |
### |
PP |
5 |
|
3d338e
|
6 |
[app:main] |
6c9959
|
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 |
6c9959
|
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 |
|
6c9959
|
29 |
[server:main] |
030d10
|
30 |
use = egg:waitress#main |
6d120e
|
31 |
listen = localhost:6543 |
6c9959
|
32 |
|
6234f4
|
33 |
### |
PP |
34 |
# logging configuration |
d5f734
|
35 |
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
6234f4
|
36 |
### |
6c9959
|
37 |
|
CM |
38 |
[loggers] |
6234f4
|
39 |
keys = root, tutorial |
6c9959
|
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 |
|
6c9959
|
56 |
[handler_console] |
CM |
57 |
class = StreamHandler |
|
58 |
args = (sys.stderr,) |
|
59 |
level = NOTSET |
|
60 |
formatter = generic |
|
61 |
|
|
62 |
[formatter_generic] |
63dcf9
|
63 |
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |