|
1 ### |
|
2 # app configuration |
|
3 # http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html |
|
4 ### |
|
5 |
|
6 [app:main] |
|
7 use = egg:%(distname)s |
|
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 # 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 # CubicWeb instance settings |
|
23 # http://cubicweb.readthedocs.io/en/latest/book/pyramid/settings/ |
|
24 ## |
|
25 cubicweb.instance = %%(instance)s |
|
26 cubicweb.bwcompat = True |
|
27 cubicweb.debug = True |
|
28 # cubicweb.auth.authtkt.persistent.secret = |
|
29 cubicweb.auth.authtkt.persistent.secure = False |
|
30 # cubicweb.auth.authtkt.session.secret = |
|
31 cubicweb.auth.authtkt.session.secure = False |
|
32 |
|
33 ### |
|
34 # wsgi server configuration |
|
35 ### |
|
36 |
|
37 [server:main] |
|
38 use = egg:waitress#main |
|
39 listen = 127.0.0.1:6543 [::1]:6543 |
|
40 |
|
41 ### |
|
42 # logging configuration |
|
43 # http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
|
44 ### |
|
45 |
|
46 [loggers] |
|
47 keys = root, cubicweb_%(cubename)s, cubicweb |
|
48 |
|
49 [handlers] |
|
50 keys = console |
|
51 |
|
52 [formatters] |
|
53 keys = generic |
|
54 |
|
55 [logger_root] |
|
56 level = INFO |
|
57 handlers = console |
|
58 |
|
59 [logger_cubicweb] |
|
60 level = INFO |
|
61 handlers = console |
|
62 qualname = cubicweb |
|
63 |
|
64 [logger_cubicweb_%(cubename)s] |
|
65 level = DEBUG |
|
66 handlers = console |
|
67 qualname = cubicweb_%(cubename)s |
|
68 |
|
69 [handler_console] |
|
70 class = StreamHandler |
|
71 args = (sys.stderr,) |
|
72 level = NOTSET |
|
73 formatter = generic |
|
74 |
|
75 [formatter_generic] |
|
76 format = %%(asctime)s %%(levelname)-5.5s [%%(name)s:%%(lineno)s][%%(threadName)s] %%(message)s |