Chapter 4: Working with the Database
This chapter does not aim to teach you how to interact with a database using Django or to create migrations—I assume you already have those minimal skills. This chapter instead will show you how to work with real situations where a Channels instance interacts recurrently with models.
Unless the application is only powered by external APIs, having a database is an elementary requirement in any modern web development. The needs can range from functionality as simple as storing plain text in an orderly fashion, to an authentication system, to managing a complex structure of connections between users. In other words, you must connect to a database if you want to build a practical project.
Fortunately, Django ...
Get Building SPAs with Django and HTML Over the Wire now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.