Phil
Phil

Reputation: 14681

Pyramid: Preventing being forced to restart the pserve

Although I have set pyramid.reload_templates to true e.g. "pyramid.reload_templates = true", each time I modify a view, I have to kill the pserve process and restart it in order to see the changes.

How can I get over this and just refresh the page to get the results?

Thank you

Upvotes: 3

Views: 1465

Answers (1)

webjunkie
webjunkie

Reputation: 1184

Well I think you can add the --reload flag when starting the webserver. This will watch for any changes on files and reload the server automatically. i.e /pserve --reload develoment.ini

Upvotes: 8

Related Questions