Python Forum
How do you define and -put a value into a variable in Flask?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you define and -put a value into a variable in Flask?
#7
(Aug-14-2021, 07:09 PM)ndc85430 Wrote: No, the Python tags are just for this forum - again, use the Python logo button to put the tags in your post.

You say the code "blows up". Blows up how exactly? Again, show us error messages. We can't see your screen can we?

Also, I notice that you're using variables in your template, but in the Python code, you don't seem to be passing to render_template a dict containing those variable names and their values. How do you expect the template to be rendered with the values you want?

I attached a copy of the browser.

Attached Files

Thumbnail(s)
   
Reply


Messages In This Thread
RE: How do you define and -put a value into a variable in Flask? - by a4ginatl - Aug-14-2021, 07:22 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020