garettB / shopify-flask-example

A simple Shopify app created using Flask and Python
Other
231 stars 66 forks source link

Add debug=True flag for auto-reloading #4

Closed Paulinakhew closed 3 years ago

Paulinakhew commented 3 years ago

From this stackoverflow question and the Flask documentation, you can see that adding debug=True allows for the Flask app to restart each time you make a change to the code

The flask script is nice to start a local development server, but you would have to restart it manually after each change to your code. That is not very nice and Flask can do better. If you enable debug support the server will reload itself on code changes, and it will also provide you with a helpful debugger if things go wrong. Excerpt from Flask documentation

Screen Shot 2021-02-16 at 2 21 16 PM