Mercurial > kallithea
annotate development.ini @ 71:ae17858de050
Removed unused string
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Sun, 11 Apr 2010 20:19:46 +0200 |
parents | 76b23189f987 |
children | db39d0ca5308 |
rev | line source |
---|---|
12 | 1 ################################################################################ |
2 ################################################################################ | |
3 # pylons_app - Pylons environment configuration # | |
4 # # | |
5 # The %(here)s variable will be replaced with the parent directory of this file# | |
6 ################################################################################ | |
10
525ed90e4577
major app speedup moved the wsgi creation to app globals, in order to make it run only once.
Marcin Kuzminski
parents:
5
diff
changeset
|
7 |
0 | 8 [DEFAULT] |
9 debug = true | |
12 | 10 ############################################ |
11 ## Uncomment and replace with the address ## | |
12 ## which should receive any error reports ## | |
13 ############################################ | |
14 | 14 #email_to = marcin.kuzminski@etelko.pl |
15 #smtp_server = mail.etelko.pl | |
16 #error_email_from = paste_error@localhost | |
17 #smtp_username = | |
18 #smtp_password = | |
19 #error_message = 'mercurial crash !' | |
0 | 20 |
21 [server:main] | |
22 use = egg:Paste#http | |
23 host = 127.0.0.1 | |
12 | 24 port = 5000 |
0 | 25 |
26 [app:main] | |
27 use = egg:pylons_app | |
28 full_stack = true | |
20
bbaab7501c1a
Added custom templates, did over check of code to make it work.
Marcin Kuzminski
parents:
17
diff
changeset
|
29 static_files = true |
0 | 30 lang=en |
31 cache_dir = %(here)s/data | |
60
eb0268a89187
Changed db name, and project prefix
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
32 repos_name = Python-works |
0 | 33 |
49
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
34 #################################### |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
35 ### BEAKER CACHE #### |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
36 #################################### |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
37 beaker.cache.data_dir=/tmp/cache/data |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
38 beaker.cache.lock_dir=/tmp/cache/lock |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
39 beaker.cache.regions=short_term |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
40 beaker.cache.short_term.type=memory |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
41 beaker.cache.short_term.expire=3600 |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
42 |
12 | 43 ################################################################################ |
44 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
45 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
46 ## execute malicious code after an exception is raised. ## | |
47 ################################################################################ | |
48 #set debug = false | |
0 | 49 |
49
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
50 ################################## |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
51 ### LOGVIEW CONFIG ### |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
52 ################################## |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
53 logview.sqlalchemy = #faa |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
54 logview.pylons.templating = #bfb |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
55 logview.pylons.util = #eee |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
56 |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
57 ######################################################### |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
58 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
59 ######################################################### |
60
eb0268a89187
Changed db name, and project prefix
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
60 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db |
49
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
61 #sqlalchemy.db1.echo = True |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
62 #sqlalchemy.db1.pool_recycle = 3600 |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
63 sqlalchemy.convert_unicode = true |
3ada2f409c1c
Added sqlalchemy support
Marcin Kuzminski <marcin@python-blog.com>
parents:
46
diff
changeset
|
64 |
12 | 65 ################################ |
66 ### LOGGING CONFIGURATION #### | |
67 ################################ | |
0 | 68 [loggers] |
12 | 69 keys = root, routes, pylons_app, sqlalchemy |
0 | 70 |
71 [handlers] | |
17
436bee78d81a
Litle code cleanups, This version handles repos correctly.
Marcin Kuzminski
parents:
15
diff
changeset
|
72 keys = console |
0 | 73 |
74 [formatters] | |
17
436bee78d81a
Litle code cleanups, This version handles repos correctly.
Marcin Kuzminski
parents:
15
diff
changeset
|
75 keys = generic |
0 | 76 |
12 | 77 ############# |
0 | 78 ## LOGGERS ## |
12 | 79 ############# |
0 | 80 [logger_root] |
15 | 81 level = NOTSET |
12 | 82 handlers = console |
0 | 83 |
84 [logger_routes] | |
69
76b23189f987
Updated logginf of routes
Marcin Kuzminski <marcin@python-blog.com>
parents:
60
diff
changeset
|
85 level = DEBUG |
0 | 86 handlers = console |
87 qualname = routes.middleware | |
88 # "level = DEBUG" logs the route matched and routing variables. | |
89 | |
90 [logger_pylons_app] | |
91 level = DEBUG | |
12 | 92 handlers = console |
0 | 93 qualname = pylons_app |
94 | |
12 | 95 |
96 [logger_sqlalchemy] | |
97 level = DEBUG | |
98 handlers = console | |
99 qualname = sqlalchemy.engine | |
100 | |
101 ############## | |
0 | 102 ## HANDLERS ## |
12 | 103 ############## |
0 | 104 |
105 [handler_console] | |
106 class = StreamHandler | |
107 args = (sys.stderr,) | |
108 level = NOTSET | |
109 formatter = generic | |
110 | |
12 | 111 ################ |
0 | 112 ## FORMATTERS ## |
12 | 113 ################ |
0 | 114 |
115 [formatter_generic] | |
116 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
46
9db7782727b3
Static files for production fixed
Marcin Kuzminski <marcin@python-blog.com>
parents:
41
diff
changeset
|
117 datefmt = %Y-%m-%d %H:%M:%S |
0 | 118 |