Python Forum

Full Version: Restarting Waitress?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using Waitress to serve Python/Flask web pages on CentOS.

I'm using an HTML template file in the templates folder. When I change the HTML template file, and refresh the main page in my web app, the changes made in the template are not visible.

I'm assuming I need to restart Waitress to force the changes to the template file to be rendered.

So what is the correct way to restart Waitress?
You may want to contact authors of waitress here: [email protected]
Thank you. I have contacted them. Will update this thread with any response...
Hi,

this behaviour is not specific for Waitress, is applies to all WSGI servers unless you set them to "dev" mode (if existing).

Generally speaking, files are read at the start of the server and will _not_ be watched for changes. Thus, you need to restart your server in order to restart your WSGI application to make any changes visible. Does apply to changes in the Python code as well.

Regards, noisefloor