Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Where does the variable user originates from or where does the variable is set? inside the function or globally? Commented Jul 3, 2021 at 13:01
  • The user is actually global since it's imported. The issue how to send it across all pages via the render_template function. More like a default argument for render_template Commented Jul 3, 2021 at 13:04
  • you can use global var, which are automatically available in templates flask.palletsprojects.com/en/2.0.x/tutorial/templates/… Commented Jan 12, 2022 at 23:06