The metrics/development.ini
file is a settings file that defines the Pyramid app and server configuration for the development environment. As happens in most .ini
files, the configuration settings are organized in sections. For example, the [server:main]
section specifies the value for the listen setting as localhost:6543
to make the waitress
server listen
on port 6543
and bind it to the localhost address.
This file was included when we created a new app based on a template. Open the metrics/development.ini
file and locate the following line that specifies the bool
value for the pyramid.debug_routematch
setting. The code file for the sample is included in the restful_python_2_09_01
folder, in the Pyramid01/metrics/development.ini.py
file:
pyramid.debug_routematch = false
Replace the false value with true
, as shown in the following line. Make sure you use true
(lowercase) and not True
, we use in Python code. This way, the server will...