app.secret_key = 'storperf_graphing_module'
-@app.route('/success/')
+@app.route('/reporting/success/')
def success():
data = urllib.urlopen(session["url"]).read()
data = json.loads(data)
return render_template('plot_tables.html', data=data)
-@app.route('/url', methods=['POST', 'GET'])
+@app.route('/reporting/url', methods=['POST', 'GET'])
def url():
if request.method == 'POST':
url = request.form['url']
return redirect(url_for('success'))
-@app.route('/')
+@app.route('/reporting/')
def index():
return render_template('index.html')