Show More
@@ -1,119 +1,119 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | ################################################################################ |
|
2 | ################################################################################ | |
3 | # pylons_app - Pylons environment configuration # |
|
3 | # pylons_app - Pylons environment configuration # | |
4 | # # |
|
4 | # # | |
5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
5 | # The %(here)s variable will be replaced with the parent directory of this file# | |
6 | ################################################################################ |
|
6 | ################################################################################ | |
7 |
|
7 | |||
8 | [DEFAULT] |
|
8 | [DEFAULT] | |
9 | debug = true |
|
9 | debug = true | |
10 | ############################################ |
|
10 | ############################################ | |
11 | ## Uncomment and replace with the address ## |
|
11 | ## Uncomment and replace with the address ## | |
12 | ## which should receive any error reports ## |
|
12 | ## which should receive any error reports ## | |
13 | ############################################ |
|
13 | ############################################ | |
14 | #email_to = marcin.kuzminski@etelko.pl |
|
14 | #email_to = marcin.kuzminski@etelko.pl | |
15 | #smtp_server = mail.etelko.pl |
|
15 | #smtp_server = mail.etelko.pl | |
16 | #error_email_from = paste_error@localhost |
|
16 | #error_email_from = paste_error@localhost | |
17 | #smtp_username = |
|
17 | #smtp_username = | |
18 | #smtp_password = |
|
18 | #smtp_password = | |
19 | #error_message = 'mercurial crash !' |
|
19 | #error_message = 'mercurial crash !' | |
20 |
|
20 | |||
21 | [server:main] |
|
21 | [server:main] | |
22 | threadpool_workers = 10 |
|
22 | threadpool_workers = 10 | |
23 | use = egg:Paste#http |
|
23 | use = egg:Paste#http | |
24 | host = 127.0.0.1 |
|
24 | host = 127.0.0.1 | |
25 | port = 8001 |
|
25 | port = 8001 | |
26 |
|
26 | |||
27 | [app:main] |
|
27 | [app:main] | |
28 | use = egg:pylons_app |
|
28 | use = egg:pylons_app | |
29 | full_stack = true |
|
29 | full_stack = true | |
30 | static_files = true |
|
30 | static_files = true | |
31 | lang=en |
|
31 | lang=en | |
32 | cache_dir = %(here)s/data |
|
32 | cache_dir = %(here)s/data | |
33 | repos_name = Python-works |
|
33 | repos_name = Python-works | |
34 |
|
34 | |||
35 | #################################### |
|
35 | #################################### | |
36 | ### BEAKER CACHE #### |
|
36 | ### BEAKER CACHE #### | |
37 | #################################### |
|
37 | #################################### | |
38 | beaker.cache.data_dir=/tmp/cache/data |
|
38 | beaker.cache.data_dir=/tmp/cache/data | |
39 | beaker.cache.lock_dir=/tmp/cache/lock |
|
39 | beaker.cache.lock_dir=/tmp/cache/lock | |
40 | beaker.cache.regions=short_term |
|
40 | beaker.cache.regions=short_term | |
41 | beaker.cache.short_term.type=memory |
|
41 | beaker.cache.short_term.type=memory | |
42 | beaker.cache.short_term.expire=3600 |
|
42 | beaker.cache.short_term.expire=3600 | |
43 |
|
43 | |||
44 | ################################################################################ |
|
44 | ################################################################################ | |
45 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
45 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
46 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
46 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
47 | ## execute malicious code after an exception is raised. ## |
|
47 | ## execute malicious code after an exception is raised. ## | |
48 | ################################################################################ |
|
48 | ################################################################################ | |
49 |
|
|
49 | set debug = false | |
50 |
|
50 | |||
51 | ################################## |
|
51 | ################################## | |
52 | ### LOGVIEW CONFIG ### |
|
52 | ### LOGVIEW CONFIG ### | |
53 | ################################## |
|
53 | ################################## | |
54 | logview.sqlalchemy = #faa |
|
54 | logview.sqlalchemy = #faa | |
55 | logview.pylons.templating = #bfb |
|
55 | logview.pylons.templating = #bfb | |
56 | logview.pylons.util = #eee |
|
56 | logview.pylons.util = #eee | |
57 |
|
57 | |||
58 | ######################################################### |
|
58 | ######################################################### | |
59 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
59 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
60 | ######################################################### |
|
60 | ######################################################### | |
61 | sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db |
|
61 | sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db | |
62 | #sqlalchemy.db1.echo = True |
|
62 | #sqlalchemy.db1.echo = True | |
63 | #sqlalchemy.db1.pool_recycle = 3600 |
|
63 | #sqlalchemy.db1.pool_recycle = 3600 | |
64 | sqlalchemy.convert_unicode = true |
|
64 | sqlalchemy.convert_unicode = true | |
65 |
|
65 | |||
66 | ################################ |
|
66 | ################################ | |
67 | ### LOGGING CONFIGURATION #### |
|
67 | ### LOGGING CONFIGURATION #### | |
68 | ################################ |
|
68 | ################################ | |
69 | [loggers] |
|
69 | [loggers] | |
70 | keys = root, routes, pylons_app, sqlalchemy |
|
70 | keys = root, routes, pylons_app, sqlalchemy | |
71 |
|
71 | |||
72 | [handlers] |
|
72 | [handlers] | |
73 | keys = console |
|
73 | keys = console | |
74 |
|
74 | |||
75 | [formatters] |
|
75 | [formatters] | |
76 | keys = generic |
|
76 | keys = generic | |
77 |
|
77 | |||
78 | ############# |
|
78 | ############# | |
79 | ## LOGGERS ## |
|
79 | ## LOGGERS ## | |
80 | ############# |
|
80 | ############# | |
81 | [logger_root] |
|
81 | [logger_root] | |
82 | level = INFO |
|
82 | level = INFO | |
83 | handlers = console |
|
83 | handlers = console | |
84 |
|
84 | |||
85 | [logger_routes] |
|
85 | [logger_routes] | |
86 | level = INFO |
|
86 | level = INFO | |
87 | handlers = console |
|
87 | handlers = console | |
88 | qualname = routes.middleware |
|
88 | qualname = routes.middleware | |
89 | # "level = DEBUG" logs the route matched and routing variables. |
|
89 | # "level = DEBUG" logs the route matched and routing variables. | |
90 |
|
90 | |||
91 | [logger_pylons_app] |
|
91 | [logger_pylons_app] | |
92 | level = DEBUG |
|
92 | level = DEBUG | |
93 | handlers = console |
|
93 | handlers = console | |
94 | qualname = pylons_app |
|
94 | qualname = pylons_app | |
95 |
|
95 | |||
96 |
|
96 | |||
97 | [logger_sqlalchemy] |
|
97 | [logger_sqlalchemy] | |
98 | level = DEBUG |
|
98 | level = DEBUG | |
99 | handlers = console |
|
99 | handlers = console | |
100 | qualname = sqlalchemy.engine |
|
100 | qualname = sqlalchemy.engine | |
101 |
|
101 | |||
102 | ############## |
|
102 | ############## | |
103 | ## HANDLERS ## |
|
103 | ## HANDLERS ## | |
104 | ############## |
|
104 | ############## | |
105 |
|
105 | |||
106 | [handler_console] |
|
106 | [handler_console] | |
107 | class = StreamHandler |
|
107 | class = StreamHandler | |
108 | args = (sys.stderr,) |
|
108 | args = (sys.stderr,) | |
109 | level = NOTSET |
|
109 | level = NOTSET | |
110 | formatter = generic |
|
110 | formatter = generic | |
111 |
|
111 | |||
112 | ################ |
|
112 | ################ | |
113 | ## FORMATTERS ## |
|
113 | ## FORMATTERS ## | |
114 | ################ |
|
114 | ################ | |
115 |
|
115 | |||
116 | [formatter_generic] |
|
116 | [formatter_generic] | |
117 | format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
117 | format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
118 | datefmt = %Y-%m-%d %H:%M:%S |
|
118 | datefmt = %Y-%m-%d %H:%M:%S | |
119 |
|
119 |
General Comments 0
You need to be logged in to leave comments.
Login now