Answer the question
In order to leave comments, you need to log in
How to transfer data to 1000 views without explicitly transferring them separately in each of them FLASK?
Hello, if 1 or 2 views are rendered in Vlaska, everything is clear here
@app.route('/')
def a():
return render_template(index.html, data = data)
Answer the question
In order to leave comments, you need to log in
You can pass data to the template automatically using Context Processors .
You can make it a decorator. flask.pocoo.org/docs/0.10/patterns/viewdecorators
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question