I am new to python and Flask. I am currently working on a project where I need to render different pages for different actions but they both need to have access to the one same object.
for example:
@app.route("/", methods =['GET','POST'])
def funtionA()
objs = somefunction() // returns an object list
render_template("/results/'+objs+'")
@app.route("/results/<objs>", methods =['GET','POST'])
def functionB(objs)
for obj in objs
print(objs[i].attr)
I am able to pass string, integer even path as a parameter. I couldn't find any references to see if passing an object is doable or not. Appreciate your responses!
Thanks, Deepak