commit | author | age
|
c344e5
|
1 |
### |
PP |
2 |
# app configuration |
f4bfa2
|
3 |
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html |
c344e5
|
4 |
### |
PP |
5 |
|
3d338e
|
6 |
[app:main] |
05a1b4
|
7 |
use = egg:tutorial |
5edd54
|
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 |
efd07c
|
16 |
|
4e3de4
|
17 |
sqlalchemy.url = sqlite:///%(here)s/tutorial.sqlite |
05a1b4
|
18 |
|
2c0e3e
|
19 |
retry.attempts = 3 |
SP |
20 |
|
66fabb
|
21 |
auth.secret = seekrit |
MM |
22 |
|
c344e5
|
23 |
# By default, the toolbar only appears for clients from IP addresses |
PP |
24 |
# '127.0.0.1' and '::1'. |
|
25 |
# debugtoolbar.hosts = 127.0.0.1 ::1 |
|
26 |
|
|
27 |
### |
|
28 |
# wsgi server configuration |
|
29 |
### |
|
30 |
|
05a1b4
|
31 |
[server:main] |
030d10
|
32 |
use = egg:waitress#main |
6d120e
|
33 |
listen = localhost:6543 |
05a1b4
|
34 |
|
c344e5
|
35 |
### |
PP |
36 |
# logging configuration |
f4bfa2
|
37 |
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
c344e5
|
38 |
### |
05a1b4
|
39 |
|
CM |
40 |
[loggers] |
5edd54
|
41 |
keys = root, tutorial, sqlalchemy |
05a1b4
|
42 |
|
CM |
43 |
[handlers] |
|
44 |
keys = console |
|
45 |
|
|
46 |
[formatters] |
|
47 |
keys = generic |
|
48 |
|
|
49 |
[logger_root] |
|
50 |
level = INFO |
|
51 |
handlers = console |
|
52 |
|
5edd54
|
53 |
[logger_tutorial] |
CM |
54 |
level = DEBUG |
|
55 |
handlers = |
|
56 |
qualname = tutorial |
|
57 |
|
05a1b4
|
58 |
[logger_sqlalchemy] |
CM |
59 |
level = INFO |
|
60 |
handlers = |
|
61 |
qualname = sqlalchemy.engine |
|
62 |
# "level = INFO" logs SQL queries. |
|
63 |
# "level = DEBUG" logs SQL queries and results. |
|
64 |
# "level = WARN" logs neither. (Recommended for production systems.) |
|
65 |
|
|
66 |
[handler_console] |
|
67 |
class = StreamHandler |
|
68 |
args = (sys.stderr,) |
|
69 |
level = NOTSET |
|
70 |
formatter = generic |
|
71 |
|
|
72 |
[formatter_generic] |
f10fb2
|
73 |
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |