rendering dashboard from user interface

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

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