|
| 1 | +# |
| 2 | +# webbot - 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 | + |
| 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 | +[sa_auth] |
| 23 | +cookie_secret = d24adfea-249b-4df4-8485-0588a9129ebe |
| 24 | + |
| 25 | +[app:main] |
| 26 | +use = egg:webbot |
| 27 | +full_stack = true |
| 28 | +#lang = ru |
| 29 | +cache_dir = %(here)s/data |
| 30 | +beaker.session.key = webbot |
| 31 | +beaker.session.secret = d24adfea-249b-4df4-8485-0588a9129ebe |
| 32 | + |
| 33 | +# Disable template autoreload to boost performances in production |
| 34 | +#auto_reload_templates = false |
| 35 | + |
| 36 | +# If you'd like to fine-tune the individual locations of the cache data dirs |
| 37 | +# for the Cache data, or the Session saves, un-comment the desired settings |
| 38 | +# here: |
| 39 | +#beaker.cache.data_dir = %(here)s/data/cache |
| 40 | +#beaker.session.data_dir = %(here)s/data/sessions |
| 41 | + |
| 42 | +# pick the form for your database |
| 43 | +# %(here) may include a ':' character on Windows environments; this can |
| 44 | +# invalidate the URI when specifying a SQLite db via path name |
| 45 | +# sqlalchemy.url=postgres://username:password@hostname:port/databasename |
| 46 | +# sqlalchemy.url=mysql://username:password@hostname:port/databasename |
| 47 | + |
| 48 | + |
| 49 | +# If you have sqlite, here's a simple default to get you started |
| 50 | +# in development |
| 51 | + |
| 52 | +sqlalchemy.url = sqlite:///%(here)s/devdata.db |
| 53 | +#echo shouldn't be used together with the logging module. |
| 54 | +sqlalchemy.echo = false |
| 55 | +sqlalchemy.echo_pool = false |
| 56 | +sqlalchemy.pool_recycle = 3600 |
| 57 | + |
| 58 | +# This line ensures that Genshi will render xhtml when sending the |
| 59 | +# output. Change to html or xml, as desired. |
| 60 | +templating.genshi.method = xhtml |
| 61 | + |
| 62 | +# if you are using Mako and want to be able to reload |
| 63 | +# the mako template from disk during the development phase |
| 64 | +# you should say 'true' here |
| 65 | +# This option is only used for mako templating engine |
| 66 | +# WARNING: if you want to deploy your application using a zipped egg |
| 67 | +# (ie: if your application's setup.py defines zip-safe=True, then you |
| 68 | +# MUST put "false" for the production environment because there will |
| 69 | +# be no disk and real files to compare time with. |
| 70 | +# On the contrary if your application defines zip-safe=False and is |
| 71 | +# deployed in an unzipped manner, then you can leave this option to true |
| 72 | +templating.mako.reloadfromdisk = true |
| 73 | + |
| 74 | +# the compiled template dir is a directory that must be readable by your |
| 75 | +# webserver. It will be used to store the resulting templates once compiled |
| 76 | +# by the TemplateLookup system. |
| 77 | +# During development you generally don't need this option since paste's HTTP |
| 78 | +# server will have access to you development directories, but in production |
| 79 | +# you'll most certainly want to have apache or nginx to write in a directory |
| 80 | +# that does not contain any source code in any form for obvious security reasons. |
| 81 | +templating.mako.compiled_templates_dir = %(here)s/data/templates |
| 82 | + |
| 83 | +# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* |
| 84 | +# Debug mode will enable the interactive debugging tool, allowing ANYONE to |
| 85 | +# execute malicious code after an exception is raised. |
| 86 | +#set debug = false |
| 87 | + |
| 88 | +# Logging configuration |
| 89 | +# Add additional loggers, handlers, formatters here |
| 90 | +# Uses python's logging config file format |
| 91 | +# http://docs.python.org/lib/logging-config-fileformat.html |
| 92 | + |
| 93 | +#turn this setting to "min" if you would like tw to produce minified |
| 94 | +#javascript files (if your library supports that) |
| 95 | +toscawidgets.framework.resource_variant=debug |
| 96 | + |
| 97 | +[loggers] |
| 98 | +keys = root, webbot, sqlalchemy, auth |
| 99 | + |
| 100 | +[handlers] |
| 101 | +keys = console |
| 102 | + |
| 103 | +[formatters] |
| 104 | +keys = generic |
| 105 | + |
| 106 | +# If you create additional loggers, add them as a key to [loggers] |
| 107 | +[logger_root] |
| 108 | +level = INFO |
| 109 | +handlers = console |
| 110 | + |
| 111 | +[logger_webbot] |
| 112 | +level = DEBUG |
| 113 | +handlers = |
| 114 | +qualname = webbot |
| 115 | + |
| 116 | +[logger_sqlalchemy] |
| 117 | +level = INFO |
| 118 | +handlers = |
| 119 | +qualname = sqlalchemy.engine |
| 120 | +# "level = INFO" logs SQL queries. |
| 121 | +# "level = DEBUG" logs SQL queries and results. |
| 122 | +# "level = WARN" logs neither. (Recommended for production systems.) |
| 123 | + |
| 124 | +# A logger for authentication, identification and authorization -- this is |
| 125 | +# repoze.who and repoze.what: |
| 126 | +[logger_auth] |
| 127 | +level = WARN |
| 128 | +handlers = |
| 129 | +qualname = auth |
| 130 | + |
| 131 | +# If you create additional handlers, add them as a key to [handlers] |
| 132 | +[handler_console] |
| 133 | +class = StreamHandler |
| 134 | +args = (sys.stderr,) |
| 135 | +level = NOTSET |
| 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 |
0 commit comments