83 lines
1.6 KiB
INI
83 lines
1.6 KiB
INI
###
|
|
# app configuration
|
|
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
|
|
###
|
|
|
|
[app:main]
|
|
use = egg:cao_blogr
|
|
|
|
pyramid.reload_templates = false
|
|
pyramid.debug_authorization = false
|
|
pyramid.debug_notfound = false
|
|
pyramid.debug_routematch = false
|
|
pyramid.default_locale_name = en
|
|
|
|
sqlalchemy.url = sqlite:///%(here)s/cao_blogr.sqlite
|
|
# images location
|
|
images_dir = /pyramid10/cao_sunyata/cao_blogr/static/img/
|
|
|
|
cao_blogr.admin_email = webmaster@meditation-sunyata.paris
|
|
# Mailer configuration
|
|
mail.host = localhost
|
|
mail.port = 25
|
|
|
|
retry.attempts = 3
|
|
|
|
[pshell]
|
|
setup = cao_blogr.pshell.setup
|
|
|
|
###
|
|
# wsgi server configuration
|
|
###
|
|
|
|
[alembic]
|
|
# path to migration scripts
|
|
script_location = cao_blogr/alembic
|
|
file_template = %%(year)d%%(month).2d%%(day).2d_%%(rev)s
|
|
# file_template = %%(rev)s_%%(slug)s
|
|
|
|
[server:main]
|
|
use = egg:waitress#main
|
|
listen = *:6543
|
|
url_scheme = https
|
|
|
|
###
|
|
# logging configuration
|
|
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
|
|
###
|
|
|
|
[loggers]
|
|
keys = root, cao_blogr, sqlalchemy
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = generic
|
|
|
|
[logger_root]
|
|
level = WARN
|
|
handlers = console
|
|
|
|
[logger_cao_blogr]
|
|
level = WARN
|
|
handlers =
|
|
qualname = cao_blogr
|
|
|
|
[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
|