In flask is there are way to reuse values saved in one url to another?

Viewed 12

For example, if my code looks something close to this

@app.route('/results',methods=['POST','GET])
def something():
'''something'''
return render_template('results.html',values=values,a=a,b=b)

@app.route('/somethingelse',methods=['POST','GET'])
def something2():
'''something'''
return render_template('somethingelse.html')

For my somethingelse.html I want to reuse values, a and b that I used in results.html. Is this even possible without inheritance?? Thanks in advance :)

0 Answers
Related