3.2 Why Use a Database?
Many beginning web developers are unclear as to why websites use a database. More experienced web developers often forget to explain the reason because databases are such a staple of building modern web applications.
A short answer to why we need a database is that the combination of Django’s core functionality and a database allows us to avoid hardcoding content because a database provides rapid access to persistent, normalized data.
Like any other computer application, a website is simply a system process. A process is typically quite volatile: should the process or computer terminate unexpectedly, all of the data in memory is lost. In the case of a process like a website, we want the ability to start the process after ...
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