Python Forum

Full Version: Creation of Dynamic HTML by substituting Database values
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.