author | Christophe de Vienne <christophe@unlish.com> |
Mon, 04 Aug 2014 13:06:32 +0200 | |
changeset 11494 | 79ce84750c18 |
parent 11492 | b0b8942cdb80 |
permissions | -rw-r--r-- |
11483
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
1 |
### |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
2 |
# app configuration |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
3 |
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
4 |
### |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
5 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
6 |
[app:main] |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
7 |
use = egg:sampleapp |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
8 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
9 |
pyramid.reload_templates = true |
11490
addf68740dbb
Provide instructions and a requirements list to quickly start the sample
Christophe de Vienne <christophe@unlish.com>
parents:
11483
diff
changeset
|
10 |
pyramid.debug_authorization = true |
addf68740dbb
Provide instructions and a requirements list to quickly start the sample
Christophe de Vienne <christophe@unlish.com>
parents:
11483
diff
changeset
|
11 |
pyramid.debug_notfound = true |
addf68740dbb
Provide instructions and a requirements list to quickly start the sample
Christophe de Vienne <christophe@unlish.com>
parents:
11483
diff
changeset
|
12 |
pyramid.debug_routematch = true |
11483
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
13 |
pyramid.default_locale_name = en |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
14 |
pyramid.includes = |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
15 |
pyramid_debugtoolbar |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
16 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
17 |
cubicweb.instance = test |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
18 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
19 |
session.secret = AhQuupai6ahGh0Zohph7yoo7oojaiFa5ahF7AiLoh6ua6sha3PaaVua8aenohled |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
20 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
21 |
# By default, the toolbar only appears for clients from IP addresses |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
22 |
# '127.0.0.1' and '::1'. |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
23 |
# debugtoolbar.hosts = 127.0.0.1 ::1 |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
24 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
25 |
### |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
26 |
# wsgi server configuration |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
27 |
### |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
28 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
29 |
[server:main] |
11490
addf68740dbb
Provide instructions and a requirements list to quickly start the sample
Christophe de Vienne <christophe@unlish.com>
parents:
11483
diff
changeset
|
30 |
#use = egg:waitress#main |
addf68740dbb
Provide instructions and a requirements list to quickly start the sample
Christophe de Vienne <christophe@unlish.com>
parents:
11483
diff
changeset
|
31 |
use = egg:pyramid#wsgiref |
11483
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
32 |
host = 0.0.0.0 |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
33 |
port = 8080 |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
34 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
35 |
### |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
36 |
# logging configuration |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
37 |
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
38 |
### |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
39 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
40 |
[loggers] |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
41 |
keys = root, sampleapp |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
42 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
43 |
[handlers] |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
44 |
keys = console |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
45 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
46 |
[formatters] |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
47 |
keys = generic |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
48 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
49 |
[logger_root] |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
50 |
level = INFO |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
51 |
handlers = console |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
52 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
53 |
[logger_sampleapp] |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
54 |
level = DEBUG |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
55 |
handlers = |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
56 |
qualname = sampleapp |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
57 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
58 |
[handler_console] |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
59 |
class = StreamHandler |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
60 |
args = (sys.stderr,) |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
61 |
level = NOTSET |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
62 |
formatter = generic |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
63 |
|
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
64 |
[formatter_generic] |
7b7ed56bf2fb
Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff
changeset
|
65 |
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s |