Python call phone number8/28/2023 We will be testing the entire project at the end. Though, this is a great indicator that everything is installed properly.įeel free to have Flask running in the background as you explore the code. However, since you don't have an app.py file yet, nothing will happen. When in this mode, the Flask server will automatically restart to incorporate any further changes you make to the source code. You will also notice that debugging mode is active. The service is running privately on your computer’s port 5000 and will wait for incoming connections there. The screenshot above displays what your console will look like after running the command flask run. Then, run the command flask run in your terminal to start the Flask framework. These lines are convenient because every time you save the source file, the server will reload and reflect the changes. FLASK_ENV configures Flask to run in debug mode.FLASK_APP tells the Flask framework where our application is located. These incredibly helpful lines will save you time when it comes to testing and debugging your project.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |