Answer the question
In order to leave comments, you need to log in
How to pass parameter from response to internal function?
There is an index function in the body of which another loadfunc function imported from a separate project is executed.
from project.myproject import loadfunc
@app.route('/')
def index():
loadfunc()
return render_template("result.html")
def loadfunc():
....
....
return count
return render_template("result.html", count=count)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question