Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Python -> html
#4
Lines 9-16 aren't part of the handler function, so how do you expect them to be executed when a request comes in? Also, the call to render_template on line 7 needs to pass the value for the variable line_count that's used in the template (you use keyword arguments to do so, as described in the docs).
Reply


Messages In This Thread
Help with Python -> html - by lukeyd - Aug-01-2021, 12:39 PM
RE: Help with Python -> html - by ndc85430 - Aug-01-2021, 12:42 PM
RE: Help with Python -> html - by lukeyd - Aug-01-2021, 12:46 PM
RE: Help with Python -> html - by ndc85430 - Aug-01-2021, 12:54 PM
RE: Help with Python -> html - by lukeyd - Aug-01-2021, 01:14 PM
RE: Help with Python -> html - by ndc85430 - Aug-01-2021, 01:22 PM
RE: Help with Python -> html - by lukeyd - Aug-01-2021, 03:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row AaronCatolico1 0 954 Dec-25-2022, 06:28 PM
Last Post: AaronCatolico1
  reading html and edit chekcbox to html jacklee26 5 3,118 Jul-01-2021, 10:31 AM
Last Post: snippsat
  HTML to Python to Windows .bat and back to HTML perfectservice33 0 1,965 Aug-22-2019, 06:31 AM
Last Post: perfectservice33

Forum Jump:

User Panel Messages

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