summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/src/basiclayout/testing.ini
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-01-06 22:57:34 -0600
committerMichael Merickel <michael@merickel.org>2020-01-06 22:57:34 -0600
commita4b0781604fd217341cc43eec47a95c725860ced (patch)
tree47dbf81eea8b184431bf48b72b1eb06ecb2b7128 /docs/tutorials/wiki2/src/basiclayout/testing.ini
parentef5b4019633b8ca383df75bdf517932ee23f304e (diff)
downloadpyramid-a4b0781604fd217341cc43eec47a95c725860ced.tar.gz
pyramid-a4b0781604fd217341cc43eec47a95c725860ced.tar.bz2
pyramid-a4b0781604fd217341cc43eec47a95c725860ced.zip
sync basiclayout, installation, models with new structure
Diffstat (limited to 'docs/tutorials/wiki2/src/basiclayout/testing.ini')
-rw-r--r--docs/tutorials/wiki2/src/basiclayout/testing.ini79
1 files changed, 79 insertions, 0 deletions
diff --git a/docs/tutorials/wiki2/src/basiclayout/testing.ini b/docs/tutorials/wiki2/src/basiclayout/testing.ini
new file mode 100644
index 000000000..85e5e1ae9
--- /dev/null
+++ b/docs/tutorials/wiki2/src/basiclayout/testing.ini
@@ -0,0 +1,79 @@
+###
+# app configuration
+# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
+###
+
+[app:main]
+use = egg:tutorial
+
+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
+
+retry.attempts = 3
+
+[pshell]
+setup = tutorial.pshell.setup
+
+###
+# wsgi server configuration
+###
+
+[alembic]
+# path to migration scripts
+script_location = tutorial/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
+
+###
+# logging configuration
+# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
+###
+
+[loggers]
+keys = root, tutorial, sqlalchemy, alembic
+
+[handlers]
+keys = console
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = WARN
+handlers = console
+
+[logger_tutorial]
+level = WARN
+handlers =
+qualname = tutorial
+
+[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