81 lines
1.6 KiB
INI
81 lines
1.6 KiB
INI
###
|
|
# app configuration
|
|
# http://docs.pylonsproject.org/projects/pyramid/en/1.7-branch/narr/environment.html
|
|
###
|
|
|
|
[app:main]
|
|
use = egg:caotek_mesavoirs
|
|
|
|
pyramid.reload_templates = false
|
|
pyramid.debug_authorization = false
|
|
pyramid.debug_notfound = false
|
|
pyramid.debug_routematch = false
|
|
pyramid.default_locale_name = en
|
|
pyramid.includes =
|
|
pyramid_chameleon
|
|
pyramid_layout
|
|
pyramid_mailer
|
|
pyramid_tm
|
|
|
|
sqlalchemy.url = mysql://root:phuoc@localhost/bd_mesavoirs?charset=utf8
|
|
sqlalchemy.pool_recycle = 3600
|
|
|
|
caotek_mesavoirs.admin_email = phuoc@caotek.fr
|
|
|
|
# Mailer configuration
|
|
mail.host = localhost
|
|
mail.port = 25
|
|
|
|
[server:main]
|
|
use = egg:waitress#main
|
|
host = 0.0.0.0
|
|
port = 9280
|
|
url_scheme = https
|
|
|
|
###
|
|
# logging configuration
|
|
# http://docs.pylonsproject.org/projects/pyramid/en/1.7-branch/narr/logging.html
|
|
###
|
|
|
|
[loggers]
|
|
keys = root, caotek_mesavoirs, sqlalchemy
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = generic
|
|
|
|
[logger_root]
|
|
level = WARN
|
|
handlers = console
|
|
|
|
[logger_caotek_mesavoirs]
|
|
level = WARN
|
|
handlers =
|
|
qualname = caotek_mesavoirs
|
|
|
|
[handler_console]
|
|
class = StreamHandler
|
|
args = (sys.stderr,)
|
|
level = NOTSET
|
|
formatter = generic
|
|
|
|
|
|
[logger_sqlalchemy]
|
|
level = WARN
|
|
handlers =
|
|
qualname = sqlalchemy.engine
|
|
# "level = INFO" logs SQL queries.
|
|
# "level = DEBUG" logs SQL queries and results.
|
|
# "level = WARN" logs neither. (Recommended for production systems.)
|
|
|
|
[handler_console]
|
|
class = StreamHandler
|
|
args = (sys.stderr,)
|
|
level = NOTSET
|
|
formatter = generic
|
|
|
|
[formatter_generic]
|
|
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
|