From 66d05cb7d012843a6dec0ea72d9af720ac650151 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Sun, 22 Mar 2020 17:04:43 -0500 Subject: wsgi --- shopdb/app/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shopdb') diff --git a/shopdb/app/__init__.py b/shopdb/app/__init__.py index e5ac40c..a5bed18 100644 --- a/shopdb/app/__init__.py +++ b/shopdb/app/__init__.py @@ -38,4 +38,5 @@ def inventory(): return render_template("inventory.html") -app.run(debug=True, port=8000) +if __name__ == "__main__": + app.run(debug=True) -- cgit v1.2.3