2008-10-05 17:23:54 +02:00
|
|
|
#
|
|
|
|
# pyalchemybiz - Pylons development environment configuration
|
|
|
|
#
|
|
|
|
# The %(here)s variable will be replaced with the parent directory of this file
|
|
|
|
#
|
|
|
|
[DEFAULT]
|
|
|
|
debug = true
|
|
|
|
# Uncomment and replace with the address which should receive any error reports
|
|
|
|
#email_to = you@yourdomain.com
|
|
|
|
smtp_server = localhost
|
|
|
|
error_email_from = paste@localhost
|
|
|
|
|
|
|
|
[server:main]
|
|
|
|
use = egg:Paste#http
|
2009-03-08 23:52:49 +01:00
|
|
|
host = 127.0.0.1
|
2008-10-05 17:23:54 +02:00
|
|
|
port = 5000
|
|
|
|
|
|
|
|
[app:main]
|
|
|
|
use = egg:pyalchemybiz
|
|
|
|
full_stack = true
|
2009-03-08 23:52:49 +01:00
|
|
|
static_files = true
|
|
|
|
|
2008-10-05 17:23:54 +02:00
|
|
|
cache_dir = %(here)s/data
|
|
|
|
beaker.session.key = pyalchemybiz
|
|
|
|
beaker.session.secret = somesecret
|
|
|
|
|
|
|
|
# If you'd like to fine-tune the individual locations of the cache data dirs
|
|
|
|
# for the Cache data, or the Session saves, un-comment the desired settings
|
|
|
|
# here:
|
|
|
|
#beaker.cache.data_dir = %(here)s/data/cache
|
|
|
|
#beaker.session.data_dir = %(here)s/data/sessions
|
|
|
|
|
2009-03-08 23:52:49 +01:00
|
|
|
# SQLAlchemy database URL
|
|
|
|
sqlalchemy.url = sqlite:///%(here)s/development.db
|
|
|
|
sqlalchemy.echo = true
|
2008-10-05 21:02:55 +02:00
|
|
|
sqlalchemy.convert_unicode = true
|
2008-10-05 17:23:54 +02:00
|
|
|
|
2008-10-05 23:02:10 +02:00
|
|
|
# settings for sqlalchemy-migrate
|
|
|
|
migrate.repo.version = 2
|
|
|
|
migrate.repo.dir = %(here)s/data/dbrepo
|
|
|
|
|
2009-03-08 23:52:49 +01:00
|
|
|
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
|
|
|
|
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
|
|
|
|
# execute malicious code after an exception is raised.
|
|
|
|
#set debug = false
|
|
|
|
|
2008-10-05 17:23:54 +02:00
|
|
|
|
|
|
|
# Logging configuration
|
|
|
|
[loggers]
|
2009-03-08 23:52:49 +01:00
|
|
|
keys = root, routes, pyalchemybiz, sqlalchemy
|
2008-10-05 17:23:54 +02:00
|
|
|
|
|
|
|
[handlers]
|
|
|
|
keys = console
|
|
|
|
|
|
|
|
[formatters]
|
|
|
|
keys = generic
|
|
|
|
|
|
|
|
[logger_root]
|
|
|
|
level = INFO
|
|
|
|
handlers = console
|
|
|
|
|
2009-03-08 23:52:49 +01:00
|
|
|
[logger_routes]
|
|
|
|
level = INFO
|
|
|
|
handlers =
|
|
|
|
qualname = routes.middleware
|
|
|
|
# "level = DEBUG" logs the route matched and routing variables.
|
|
|
|
|
2008-10-05 17:23:54 +02:00
|
|
|
[logger_pyalchemybiz]
|
|
|
|
level = DEBUG
|
|
|
|
handlers =
|
|
|
|
qualname = pyalchemybiz
|
|
|
|
|
2009-03-08 23:52:49 +01:00
|
|
|
[logger_sqlalchemy]
|
|
|
|
level = INFO
|
|
|
|
handlers =
|
|
|
|
qualname = sqlalchemy.engine
|
|
|
|
# "level = INFO" logs SQL queries.
|
|
|
|
# "level = DEBUG" logs SQL queries and results.
|
|
|
|
# "level = WARN" logs neither. (Recommended for production systems.)
|
|
|
|
|
2008-10-05 17:23:54 +02:00
|
|
|
[handler_console]
|
|
|
|
class = StreamHandler
|
|
|
|
args = (sys.stderr,)
|
|
|
|
level = NOTSET
|
|
|
|
formatter = generic
|
|
|
|
|
|
|
|
[formatter_generic]
|
|
|
|
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
|
|
|
|
datefmt = %H:%M:%S
|