### # app configuration # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html ### [app:main] use = egg:fietsboek 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/testing.sqlite # The pytest tests usually overwrite this with a temporary directory. Since # this is cleaned on test teardown, we don't want to accidentally delete data # that should not be deleted. Therefore, we specifically do not set a directory # here, and leave a placeholder to be replaced properly by the tests. # %% fietsboek.data_dir %% redis.url = redis://localhost fietsboek.default_tile_layers = enable_account_registration = true fietsboek.tile_layer.test = Testing Tile Layer fietsboek.tile_layer.test.url = http://localhost:0 email.from = Test email.smtp_url = debug:// session_key = TESTING_KEY_DO_NOT_USE retry.attempts = 3 [pshell] setup = fietsboek.pshell.setup ### # wsgi server configuration ### [alembic] # path to migration scripts script_location = fietsboek:alembic file_template = %%(year)d%%(month).2d%%(day).2d_%%(rev)s # file_template = %%(rev)s_%%(slug)s [server:main] use = egg:waitress#main listen = localhost:6543 ### # logging configuration # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html ### [loggers] keys = root, fietsboek, sqlalchemy, alembic [handlers] keys = console [formatters] keys = generic [logger_root] level = INFO handlers = console [logger_fietsboek] level = DEBUG handlers = qualname = fietsboek [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.) [logger_alembic] level = WARN handlers = qualname = alembic [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