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