aboutsummaryrefslogtreecommitdiff
path: root/development.ini
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-06-28 14:04:27 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-06-28 14:04:27 +0200
commit77ac79f1b29e8b07c74852e3c5be83abf6424c7a (patch)
treee5653ce152d39c066423d3dec9992c4e225a243f /development.ini
downloadfietsboek-77ac79f1b29e8b07c74852e3c5be83abf6424c7a.tar.gz
fietsboek-77ac79f1b29e8b07c74852e3c5be83abf6424c7a.tar.bz2
fietsboek-77ac79f1b29e8b07c74852e3c5be83abf6424c7a.zip
Initial commit
Diffstat (limited to 'development.ini')
-rw-r--r--development.ini87
1 files changed, 87 insertions, 0 deletions
diff --git a/development.ini b/development.ini
new file mode 100644
index 0000000..3cec096
--- /dev/null
+++ b/development.ini
@@ -0,0 +1,87 @@
+###
+# app configuration
+# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
+###
+
+[app:main]
+use = egg:fietsboek
+
+pyramid.reload_templates = true
+pyramid.debug_authorization = false
+pyramid.debug_notfound = false
+pyramid.debug_routematch = false
+pyramid.default_locale_name = en
+pyramid.includes =
+ pyramid_debugtoolbar
+
+sqlalchemy.url = sqlite:///%(here)s/fietsboek.sqlite
+
+retry.attempts = 3
+
+session_key = hklurha7ildshgfljhrbuajelghug
+
+# By default, the toolbar only appears for clients from IP addresses
+# '127.0.0.1' and '::1'.
+# debugtoolbar.hosts = 127.0.0.1 ::1
+
+[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 = INFO
+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