Commit a7600c8b authored by 崔为之's avatar 崔为之 💪🏽

Update project

parent bfd6c985
......@@ -12,8 +12,22 @@
from application import create_app
app = create_app()
def runserver():
"""
This function creates a new instance of the Flask application and runs it.
"""
# Create a new instance of the Flask application
app = create_app()
# Run the Flask development server
# The run() method starts the application's development server.
# It's not meant to be used on production environment.
app.run(debug=True)
if __name__ == "__main__":
app.run()
# Only run the development server if the script is executed directly.
# This allows other scripts to import this file without starting the server.
runserver()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment