Python Forum
Creation of Dynamic HTML by substituting Database values
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creation of Dynamic HTML by substituting Database values
#1
Hi All,
I have a HTML template with me and want to create a dynamic HTML page with the values from the PostgreSQL database applied in necessary position of that HTML template.

The below image is a part of HTML page, i want that areas to be filled from the values from the database,Is there a way to do that? or is there any other better way to do that.

I'm using PostgreSQL database.

Thanks in Advance
Reply
#2
Maybe have a look at web-development (i.e. assuming you will serve the HTML page as part of web application)
if you just want to generate some static pages (from a template and values from a DB and save them as html files on harddrive - look at available template engines like jinja2.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row AaronCatolico1 0 877 Dec-25-2022, 06:28 PM
Last Post: AaronCatolico1
  dynamic object creation using python gary 7 1,201 Oct-15-2022, 01:35 PM
Last Post: Larz60+
  Creating a loop with dynamic variables instead of hardcoded values FugaziRocks 3 1,430 Jul-27-2022, 08:50 PM
Last Post: rob101
  reading html and edit chekcbox to html jacklee26 5 3,023 Jul-01-2021, 10:31 AM
Last Post: snippsat
Photo Insert 0 values in database saljuaid 4 2,524 Nov-08-2020, 12:09 PM
Last Post: saljuaid
  Assign dynamic values to Variables srikanthpython 6 3,362 Jun-06-2020, 03:36 PM
Last Post: srikanthpython
  Python re.sub text manipulation on matched contents before substituting xilex 2 2,068 May-19-2020, 05:42 AM
Last Post: xilex
  Trying to send input from html form to database SQLite3 RonnyGiezen 3 61,113 Dec-21-2019, 02:09 PM
Last Post: ibreeden
  Custom Function to Return Database Values rm78 0 1,765 Sep-05-2019, 01:01 PM
Last Post: rm78
  HTML to Python to Windows .bat and back to HTML perfectservice33 0 1,918 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