So I have this Flask app that I need a pass a particular user to all routes as all pages in the app will be needing the particular user to render templates. I don't want to pass the user as it's normal done
return render_template('index.html',user=user) Because I'd have to repeat the same thing for all routes in the render_templates. Please how can I do this?
useroriginates from or where does the variable is set? inside the function or globally?