vigiboard / development.ini @ eb0b8514
History | View | Annotate | Download (4.18 KB)
1 | 49c8da1d | Thomas ANDREJAK | # |
---|---|---|---|
2 | # vigiboard - Pylons development environment configuration |
||
3 | # |
||
4 | # The %(here)s variable will be replaced with the parent directory of this file |
||
5 | # |
||
6 | # This file is for deployment specific config options -- other configuration |
||
7 | # that is always required for the app is done in the config directory, |
||
8 | # and generally should not be modified by end users. |
||
9 | |||
10 | [DEFAULT] |
||
11 | debug = true |
||
12 | # Uncomment and replace with the address which should receive any error reports |
||
13 | #email_to = you@yourdomain.com |
||
14 | smtp_server = localhost |
||
15 | error_email_from = paste@localhost |
||
16 | |||
17 | [server:main] |
||
18 | use = egg:Paste#http |
||
19 | host = 127.0.0.1 |
||
20 | port = 8080 |
||
21 | |||
22 | [app:main] |
||
23 | use = egg:vigiboard |
||
24 | full_stack = true |
||
25 | 20367931 | Thomas ANDREJAK | #lang = zh_tw |
26 | 49c8da1d | Thomas ANDREJAK | cache_dir = %(here)s/data |
27 | beaker.session.key = vigiboard |
||
28 | beaker.session.secret = somesecret |
||
29 | |||
30 | # If you'd like to fine-tune the individual locations of the cache data dirs |
||
31 | # for the Cache data, or the Session saves, un-comment the desired settings |
||
32 | # here: |
||
33 | #beaker.cache.data_dir = %(here)s/data/cache |
||
34 | #beaker.session.data_dir = %(here)s/data/sessions |
||
35 | |||
36 | d32489ac | Gabriel DE PERTHUIS | # DB - sqlite for dev |
37 | sqlalchemy.url = sqlite:///%(here)s/devdata.db |
||
38 | #sqlalchemy.url=mysql://root:tandreja@localhost:3306/vigiboard |
||
39 | 49c8da1d | Thomas ANDREJAK | #echo shouldn't be used together with the logging module. |
40 | sqlalchemy.echo = false |
||
41 | sqlalchemy.echo_pool = false |
||
42 | sqlalchemy.pool_recycle = 3600 |
||
43 | |||
44 | # if you are using Mako and want to be able to reload |
||
45 | # the mako template from disk during the development phase |
||
46 | # you should say 'true' here |
||
47 | # This option is only used for mako templating engine |
||
48 | # WARNING: if you want to deploy your application using a zipped egg |
||
49 | # (ie: if your application's setup.py defines zip-safe=True, then you |
||
50 | # MUST put "false" for the production environment because there will |
||
51 | # be no disk and real files to compare time with. |
||
52 | # On the contrary if your application defines zip-safe=False and is |
||
53 | # deployed in an unzipped manner, then you can leave this option to true |
||
54 | templating.mako.reloadfromdisk = true |
||
55 | |||
56 | # the compiled template dir is a directory that must be readable by your |
||
57 | # webserver. It will be used to store the resulting templates once compiled |
||
58 | # by the TemplateLookup system. |
||
59 | # During development you generally don't need this option since paste's HTTP |
||
60 | # server will have access to you development directories, but in production |
||
61 | # you'll most certainly want to have apache or nginx to write in a directory |
||
62 | # that does not contain any source code in any form for obvious security reasons. |
||
63 | # |
||
64 | #templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access |
||
65 | |||
66 | # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
||
67 | # Debug mode will enable the interactive debugging tool, allowing ANYONE to |
||
68 | # execute malicious code after an exception is raised. |
||
69 | #set debug = false |
||
70 | |||
71 | # Logging configuration |
||
72 | # Add additional loggers, handlers, formatters here |
||
73 | # Uses python's logging config file format |
||
74 | # http://docs.python.org/lib/logging-config-fileformat.html |
||
75 | |||
76 | [loggers] |
||
77 | keys = root, vigiboard, sqlalchemy, auth |
||
78 | |||
79 | [handlers] |
||
80 | keys = console,sql_log,root_log,vigiboard_log,auth_log |
||
81 | |||
82 | [formatters] |
||
83 | keys = generic |
||
84 | |||
85 | # If you create additional loggers, add them as a key to [loggers] |
||
86 | [logger_root] |
||
87 | level = DEBUG |
||
88 | handlers = root_log |
||
89 | |||
90 | [logger_vigiboard] |
||
91 | level = DEBUG |
||
92 | handlers = vigiboard_log |
||
93 | qualname = vigiboard |
||
94 | |||
95 | [logger_sqlalchemy] |
||
96 | level = DEBUG |
||
97 | handlers = sql_log |
||
98 | qualname = sqlalchemy.engine |
||
99 | |||
100 | # A logger for authentication, identification and authorization -- this is |
||
101 | # repoze.who and repoze.what: |
||
102 | [logger_auth] |
||
103 | level = DEBUG |
||
104 | handlers = auth_log |
||
105 | qualname = auth |
||
106 | |||
107 | # If you create additional handlers, add them as a key to [handlers] |
||
108 | [handler_console] |
||
109 | class = StreamHandler |
||
110 | args = (sys.stderr,) |
||
111 | level = NOTSET |
||
112 | formatter = generic |
||
113 | |||
114 | [handler_sql_log] |
||
115 | class = FileHandler |
||
116 | args = ('log/sql.log','a') |
||
117 | level = DEBUG |
||
118 | formatter = generic |
||
119 | |||
120 | [handler_root_log] |
||
121 | class = FileHandler |
||
122 | args = ('log/root.log','a') |
||
123 | level = DEBUG |
||
124 | formatter = generic |
||
125 | |||
126 | [handler_vigiboard_log] |
||
127 | class = FileHandler |
||
128 | args = ('log/vigiboard.log','a') |
||
129 | level = DEBUG |
||
130 | formatter = generic |
||
131 | |||
132 | [handler_auth_log] |
||
133 | class = FileHandler |
||
134 | args = ('log/auth.log','a') |
||
135 | level = DEBUG |
||
136 | formatter = generic |
||
137 | |||
138 | # If you create additional formatters, add them as a key to [formatters] |
||
139 | [formatter_generic] |
||
140 | format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
||
141 | datefmt = %H:%M:%S |