rendering dashboard from user interface

master
Steve L. Nyemba 8 years ago
parent fd175565bb
commit 497e5617d0

@ -7,7 +7,10 @@
'class':'<class-name>'
'config':<labeled-class-specific-configuration>'
"""
from flask import Flask,request
from flask import Flask, session, request, redirect, Response
from flask.templating import render_template
from flask_session import Session
import sys
import os
import json
@ -57,6 +60,9 @@ def procs(id):
return "[]"
pass
@app.route('/dashboard')
def dashboard():
context = PARAMS['context']
return render_template('dashboard.html',context=context)
if __name__== '__main__':
app.run(host='0.0.0.0',debug=True,threaded=True)
Loading…
Cancel
Save