0
|
1 #
|
|
2 # pylons_app - Pylons configuration
|
|
3 #
|
|
4 # The %(here)s variable will be replaced with the parent directory of this file
|
|
5 #
|
|
6 [DEFAULT]
|
|
7 debug = true
|
|
8 email_to = you@yourdomain.com
|
|
9 smtp_server = localhost
|
|
10 error_email_from = paste@localhost
|
|
11
|
|
12 [server:main]
|
|
13 use = egg:Paste#http
|
|
14 host = 0.0.0.0
|
|
15 port = 5000
|
|
16
|
|
17 [app:main]
|
|
18 use = egg:pylons_app
|
|
19 full_stack = true
|
|
20 static_files = true
|
|
21
|
|
22 cache_dir = %(here)s/data
|
|
23 beaker.session.key = pylons_app
|
|
24 beaker.session.secret = ${app_instance_secret}
|
|
25 app_instance_uuid = ${app_instance_uuid}
|
|
26
|
|
27 # If you'd like to fine-tune the individual locations of the cache data dirs
|
|
28 # for the Cache data, or the Session saves, un-comment the desired settings
|
|
29 # here:
|
|
30 #beaker.cache.data_dir = %(here)s/data/cache
|
|
31 #beaker.session.data_dir = %(here)s/data/sessions
|
|
32
|
|
33 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
|
|
34 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
|
|
35 # execute malicious code after an exception is raised.
|
|
36 set debug = false
|
|
37
|
|
38
|
|
39 # Logging configuration
|
|
40 [loggers]
|
|
41 keys = root
|
|
42
|
|
43 [handlers]
|
|
44 keys = console
|
|
45
|
|
46 [formatters]
|
|
47 keys = generic
|
|
48
|
|
49 [logger_root]
|
|
50 level = INFO
|
|
51 handlers = console
|
|
52
|
|
53 [handler_console]
|
|
54 class = StreamHandler
|
|
55 args = (sys.stderr,)
|
|
56 level = NOTSET
|
|
57 formatter = generic
|
|
58
|
|
59 [formatter_generic]
|
|
60 format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
|