commit | author | age
|
7bffb5
|
1 |
### |
BL |
2 |
# app configuration |
19d341
|
3 |
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html |
7bffb5
|
4 |
### |
BL |
5 |
|
3d338e
|
6 |
[app:main] |
e1b26e
|
7 |
use = egg:myproject |
c6d9f1
|
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 |
d4177a
|
14 |
pyramid.includes = |
d21ba4
|
15 |
pyramid_debugtoolbar |
7bffb5
|
16 |
|
BL |
17 |
# By default, the toolbar only appears for clients from IP addresses |
|
18 |
# '127.0.0.1' and '::1'. |
|
19 |
# debugtoolbar.hosts = 127.0.0.1 ::1 |
|
20 |
|
|
21 |
### |
|
22 |
# wsgi server configuration |
|
23 |
### |
a3ceb6
|
24 |
|
bf3801
|
25 |
[server:main] |
030d10
|
26 |
use = egg:waitress#main |
6d120e
|
27 |
listen = localhost:6543 |
957f61
|
28 |
|
7bffb5
|
29 |
### |
BL |
30 |
# logging configuration |
19d341
|
31 |
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
7bffb5
|
32 |
### |
957f61
|
33 |
|
CM |
34 |
[loggers] |
43ab04
|
35 |
keys = root, myproject |
957f61
|
36 |
|
CM |
37 |
[handlers] |
|
38 |
keys = console |
|
39 |
|
|
40 |
[formatters] |
|
41 |
keys = generic |
|
42 |
|
|
43 |
[logger_root] |
|
44 |
level = INFO |
|
45 |
handlers = console |
|
46 |
|
43ab04
|
47 |
[logger_myproject] |
CM |
48 |
level = DEBUG |
|
49 |
handlers = |
|
50 |
qualname = myproject |
|
51 |
|
957f61
|
52 |
[handler_console] |
CM |
53 |
class = StreamHandler |
|
54 |
args = (sys.stderr,) |
|
55 |
level = NOTSET |
|
56 |
formatter = generic |
|
57 |
|
|
58 |
[formatter_generic] |
d4177a
|
59 |
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |