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