Mercurial > kallithea
annotate development.ini @ 41:71ffa932799d
Added app basic auth.
Changed few deprecations for new pylons.
added sqlite logging for user actions.
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Wed, 07 Apr 2010 00:51:55 +0200 |
parents | bbaab7501c1a |
children | 9db7782727b3 |
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 | |
41
71ffa932799d
Added app basic auth.
Marcin Kuzminski <marcin@python-blog.com>
parents:
20
diff
changeset
|
32 repos_name = etelko |
0 | 33 |
12 | 34 ################################################################################ |
35 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
36 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
37 ## execute malicious code after an exception is raised. ## | |
38 ################################################################################ | |
39 #set debug = false | |
0 | 40 |
41 | |
12 | 42 ################################ |
43 ### LOGGING CONFIGURATION #### | |
44 ################################ | |
0 | 45 [loggers] |
12 | 46 keys = root, routes, pylons_app, sqlalchemy |
0 | 47 |
48 [handlers] | |
17
436bee78d81a
Litle code cleanups, This version handles repos correctly.
Marcin Kuzminski
parents:
15
diff
changeset
|
49 keys = console |
0 | 50 |
51 [formatters] | |
17
436bee78d81a
Litle code cleanups, This version handles repos correctly.
Marcin Kuzminski
parents:
15
diff
changeset
|
52 keys = generic |
0 | 53 |
12 | 54 ############# |
0 | 55 ## LOGGERS ## |
12 | 56 ############# |
0 | 57 [logger_root] |
15 | 58 level = NOTSET |
12 | 59 handlers = console |
0 | 60 |
61 [logger_routes] | |
12 | 62 level = INFO |
0 | 63 handlers = console |
64 qualname = routes.middleware | |
65 # "level = DEBUG" logs the route matched and routing variables. | |
66 | |
67 [logger_pylons_app] | |
68 level = DEBUG | |
12 | 69 handlers = console |
0 | 70 qualname = pylons_app |
71 | |
12 | 72 |
73 [logger_sqlalchemy] | |
74 level = DEBUG | |
75 handlers = console | |
76 qualname = sqlalchemy.engine | |
77 | |
78 ############## | |
0 | 79 ## HANDLERS ## |
12 | 80 ############## |
0 | 81 |
82 [handler_console] | |
83 class = StreamHandler | |
84 args = (sys.stderr,) | |
85 level = NOTSET | |
86 formatter = generic | |
87 | |
12 | 88 ################ |
0 | 89 ## FORMATTERS ## |
12 | 90 ################ |
0 | 91 |
92 [formatter_generic] | |
93 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
94 datefmt = %H:%M:%S | |
95 |