Python Forum
Creation of Dynamic HTML by substituting Database values - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Creation of Dynamic HTML by substituting Database values (/thread-17606.html)



Creation of Dynamic HTML by substituting Database values - Sandy777 - Apr-17-2019

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


RE: Creation of Dynamic HTML by substituting Database values - buran - Apr-18-2019

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.