1 | # |
---|
2 | # sipbmp3-web - 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:sipbmp3-web |
---|
24 | full_stack = true |
---|
25 | #lang = ru |
---|
26 | cache_dir = %(here)s/data |
---|
27 | beaker.session.key = sipbmp3web |
---|
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 | # pick the form for your database |
---|
37 | # %(here) may include a ':' character on Windows environments; this can |
---|
38 | # invalidate the URI when specifying a SQLite db via path name |
---|
39 | # sqlalchemy.url=postgres://username:password@hostname:port/databasename |
---|
40 | # sqlalchemy.url=mysql://username:password@hostname:port/databasename |
---|
41 | |
---|
42 | |
---|
43 | # If you have sqlite, here's a simple default to get you started |
---|
44 | # in development |
---|
45 | |
---|
46 | sqlalchemy.url = sqlite:///%(here)s/devdata.db |
---|
47 | #echo shouldn't be used together with the logging module. |
---|
48 | sqlalchemy.echo = false |
---|
49 | sqlalchemy.echo_pool = false |
---|
50 | sqlalchemy.pool_recycle = 3600 |
---|
51 | |
---|
52 | # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
---|
53 | # Debug mode will enable the interactive debugging tool, allowing ANYONE to |
---|
54 | # execute malicious code after an exception is raised. |
---|
55 | #set debug = false |
---|
56 | |
---|
57 | # Logging configuration |
---|
58 | # Add additional loggers, handlers, formatters here |
---|
59 | # Uses python's logging config file format |
---|
60 | # http://docs.python.org/lib/logging-config-fileformat.html |
---|
61 | |
---|
62 | [loggers] |
---|
63 | keys = root, sipbmp3web, sqlalchemy, auth |
---|
64 | |
---|
65 | [handlers] |
---|
66 | keys = console |
---|
67 | |
---|
68 | [formatters] |
---|
69 | keys = generic |
---|
70 | |
---|
71 | # If you create additional loggers, add them as a key to [loggers] |
---|
72 | [logger_root] |
---|
73 | level = INFO |
---|
74 | handlers = console |
---|
75 | |
---|
76 | [logger_sipbmp3web] |
---|
77 | level = DEBUG |
---|
78 | handlers = |
---|
79 | qualname = sipbmp3web |
---|
80 | |
---|
81 | [logger_sqlalchemy] |
---|
82 | level = INFO |
---|
83 | handlers = |
---|
84 | qualname = sqlalchemy.engine |
---|
85 | # "level = INFO" logs SQL queries. |
---|
86 | # "level = DEBUG" logs SQL queries and results. |
---|
87 | # "level = WARN" logs neither. (Recommended for production systems.) |
---|
88 | |
---|
89 | |
---|
90 | # A logger for authentication, identification and authorization -- this is |
---|
91 | # repoze.who and repoze.what: |
---|
92 | [logger_auth] |
---|
93 | level = WARN |
---|
94 | handlers = |
---|
95 | qualname = auth |
---|
96 | |
---|
97 | # If you create additional handlers, add them as a key to [handlers] |
---|
98 | [handler_console] |
---|
99 | class = StreamHandler |
---|
100 | args = (sys.stderr,) |
---|
101 | level = NOTSET |
---|
102 | formatter = generic |
---|
103 | |
---|
104 | # If you create additional formatters, add them as a key to [formatters] |
---|
105 | [formatter_generic] |
---|
106 | format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
---|
107 | datefmt = %H:%M:%S |
---|