Learning Python Networking - Second Edition
by José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington
Accessing a database
When working with databases, today's application servers have the ability to connect in a simple way by configuring data sources. For example, our application could use an application server to serve pages dynamically by querying a database to obtain or modify data, and display them later in an HTML page using asynchronous server queries.
The use of a database to store content allows you to separate the design of the website from the content that you want to show to the users of the site. Instead of writing individual HTML files for each page, you only need to write a page or template so that you can present the data in the database to the user. You can also dynamically submit HTML forms that add or modify information ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access