this is the example's development.ini,i have change the password to ****** in the sqlalchemy.url when paste on the group
[app:main]
use = egg:long_running_with_tm
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.debug_templates = true
pyramid.default_locale_name = en
pyramid.includes = pyramid_debugtoolbar
pyramid_tm
pyramid_mako
pyramid_celery
sqlalchemy.url = postgresql://postgres:******@localhost/session
[celery]
broker_url = amqp://rainbird:password@localhost:5672//
CELERY_DEFAULT_EXCHANGE = gds_zf
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_ACCEPT_CONTENT = ['json', 'application/json']
CELERY_IMPORTS = celerypythontest.celery_service
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
# Begin logging configuration
[loggers]
keys = root, long_running_with_tm, sqlalchemy
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_long_running_with_tm]
level = DEBUG
handlers =
qualname = long_running_with_tm
[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.)
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
# End logging configuration
在 2017年9月28日星期四 UTC+8下午11:29:14,tonthon写道: