From 7a0f0ddbe6ad547388b90fde9fdeddc464e76a75 Mon Sep 17 00:00:00 2001 From: AmirHossein Naei Date: Sat, 16 Dec 2023 19:04:22 +0330 Subject: [PATCH] Update README.md The example in the Setup section was edited to avoid errors. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d9bfa15..6f152d92 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,14 @@ Adding the extension to your Flask app is simple: import flask_monitoringdashboard as dashboard app = Flask(__name__) - dashboard.bind(app) + @app.route("/test") + def test(): + return 'ok' + + dashboard.bind(app) + app.run() + ## Live Demo To view a live deployment of the Flask-MonitoringDashboard, check [this site](https://fmd-master.herokuapp.com/). Use the credentials u:`admin`, p:`admin` to log in.