From: Sam Mirazi Date: Sun, 1 Jun 2025 03:58:15 +0000 (-0700) Subject: starting phase 4 - X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=0be0ab7d277731bc09b88ebee2a598bed04f466c;p=fastapi-vs-flask%2F.git starting phase 4 - --- diff --git a/app_flask/flask_application.py b/app_flask/flask_application.py index ca23d35..5df2db9 100644 --- a/app_flask/flask_application.py +++ b/app_flask/flask_application.py @@ -11,11 +11,11 @@ def home(): return Response(html, mimetype="text/html") if __name__ == "__main__": - host = "127.0.0.1" - port = 3000 - url = f"http://{host}:{port}/" + # host = "127.0.0.1" # Not strictly needed for app.run with 0.0.0.0 + # port = 3000 # Port is defined in app.run + # url = f"http://{host}:{port}/" # Not needed as webbrowser call is removed - # Open the URL in a new browser tab - webbrowser.open_new_tab(url) + # Open the URL in a new browser tab # THIS LINE WILL BE REMOVED + # webbrowser.open_new_tab(url) # REMOVED - app.run(host="0.0.0.0", port=3000) \ No newline at end of file + app.run(host="0.0.0.0", port=3000) # Port 3000 \ No newline at end of file diff --git a/tests/__pycache__/test_flask_route.cpython-312-pytest-8.3.5.pyc b/tests/__pycache__/test_flask_route.cpython-312-pytest-8.3.5.pyc index 25cc966..01df2d8 100644 Binary files a/tests/__pycache__/test_flask_route.cpython-312-pytest-8.3.5.pyc and b/tests/__pycache__/test_flask_route.cpython-312-pytest-8.3.5.pyc differ