| 1 |
# |
| 2 |
# central_library - Pylons development environment configuration |
| 3 |
# |
| 4 |
# The %(here)s variable will be replaced with the parent directory of this file |
| 5 |
# |
| 6 |
[DEFAULT] |
| 7 |
debug = true |
| 8 |
# Uncomment and replace with the address which should receive any error reports |
| 9 |
#email_to = you@yourdomain.com |
| 10 |
smtp_server = localhost |
| 11 |
error_email_from = paste@localhost |
| 12 |
|
| 13 |
[server:main] |
| 14 |
use = egg:Paste#http |
| 15 |
host = 127.0.0.1 |
| 16 |
port = 5000 |
| 17 |
|
| 18 |
[app:main] |
| 19 |
use = egg:central_library |
| 20 |
full_stack = true |
| 21 |
|
| 22 |
cache_dir = %(here)s/data |
| 23 |
beaker.session.key = central_library |
| 24 |
beaker.session.secret = somesecret |
| 25 |
|
| 26 |
# If you'd like to fine-tune the individual locations of the cache data dirs |
| 27 |
# for the Cache data, or the Session saves, un-comment the desired settings |
| 28 |
# here: |
| 29 |
#beaker.cache.data_dir = %(here)s/data/cache |
| 30 |
#beaker.session.data_dir = %(here)s/data/sessions |
| 31 |
|
| 32 |
# SQLAlchemy database URL |
| 33 |
sqlalchemy.url = sqlite:///%(here)s/development.db |
| 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 |
#set debug = false |
| 39 |
|
| 40 |
|
| 41 |
# Logging configuration |
| 42 |
[loggers] |
| 43 |
keys = root, routes, central_library, sqlalchemy |
| 44 |
|
| 45 |
[handlers] |
| 46 |
keys = console |
| 47 |
|
| 48 |
[formatters] |
| 49 |
keys = generic |
| 50 |
|
| 51 |
[logger_root] |
| 52 |
level = INFO |
| 53 |
handlers = console |
| 54 |
|
| 55 |
[logger_routes] |
| 56 |
level = INFO |
| 57 |
handlers = |
| 58 |
qualname = routes.middleware |
| 59 |
# "level = DEBUG" logs the route matched and routing variables. |
| 60 |
|
| 61 |
[logger_central_library] |
| 62 |
level = DEBUG |
| 63 |
handlers = |
| 64 |
qualname = central_library |
| 65 |
|
| 66 |
[logger_sqlalchemy] |
| 67 |
level = INFO |
| 68 |
handlers = |
| 69 |
qualname = sqlalchemy.engine |
| 70 |
# "level = INFO" logs SQL queries. |
| 71 |
# "level = DEBUG" logs SQL queries and results. |
| 72 |
# "level = WARN" logs neither. (Recommended for production systems.) |
| 73 |
|
| 74 |
[handler_console] |
| 75 |
class = StreamHandler |
| 76 |
args = (sys.stderr,) |
| 77 |
level = NOTSET |
| 78 |
formatter = generic |
| 79 |
|
| 80 |
[formatter_generic] |
| 81 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
| 82 |
datefmt = %H:%M:%S |