commit | author | age
|
5cf8c3
|
1 |
### |
SP |
2 |
# app configuration |
|
3 |
# http://docs.pylonsproject.org/projects/pyramid/en/1.6-branch/narr/environment.html |
|
4 |
### |
c90471
|
5 |
|
5cf8c3
|
6 |
[app:main] |
SP |
7 |
use = egg:hello_world |
|
8 |
|
|
9 |
pyramid.reload_templates = true |
|
10 |
pyramid.debug_authorization = false |
|
11 |
pyramid.debug_notfound = false |
|
12 |
pyramid.debug_routematch = false |
|
13 |
pyramid.debug_templates = true |
|
14 |
pyramid.default_locale_name = en |
|
15 |
pyramid.includes = |
|
16 |
pyramid_debugtoolbar |
|
17 |
|
|
18 |
# By default, the toolbar only appears for clients from IP addresses |
|
19 |
# '127.0.0.1' and '::1'. |
|
20 |
# debugtoolbar.hosts = 127.0.0.1 ::1 |
|
21 |
|
|
22 |
### |
|
23 |
# wsgi server configuration |
|
24 |
### |
c90471
|
25 |
|
PE |
26 |
[server:main] |
5cf8c3
|
27 |
use = egg:waitress#main |
07e802
|
28 |
listen = 127.0.0.1:6543 |
c90471
|
29 |
|
5cf8c3
|
30 |
### |
SP |
31 |
# logging configuration |
|
32 |
# http://docs.pylonsproject.org/projects/pyramid/en/1.6-branch/narr/logging.html |
|
33 |
### |
c90471
|
34 |
|
PE |
35 |
[loggers] |
|
36 |
keys = root, hello_world |
|
37 |
|
|
38 |
[handlers] |
|
39 |
keys = console |
|
40 |
|
|
41 |
[formatters] |
|
42 |
keys = generic |
|
43 |
|
|
44 |
[logger_root] |
|
45 |
level = INFO |
|
46 |
handlers = console |
|
47 |
|
5cf8c3
|
48 |
[logger_hello_world] |
SP |
49 |
level = DEBUG |
|
50 |
handlers = |
|
51 |
qualname = hello_world |
|
52 |
|
c90471
|
53 |
[handler_console] |
PE |
54 |
class = StreamHandler |
|
55 |
args = (sys.stderr,) |
|
56 |
level = NOTSET |
|
57 |
formatter = generic |
|
58 |
|
|
59 |
[formatter_generic] |
5cf8c3
|
60 |
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |