Technical requirements
You can download the code for this chapter from this book’s GitHub repository: https://github.com/PacktPublishing/Building-SPAs-with-Django-and-HTML-Over-the-Wire/tree/main/chapter-5.
We will be using the template we constructed in Chapter 4, Working with the Database: https://github.com/PacktPublishing/Building-SPAs-with-Django-and-HTML-Over-the-Wire/tree/main/chapter-4/initial-template
I have changed the name of the application to Chat. Ensure that the App
folder is called /app/chat/
and that apps.py
has been renamed with its name
variable:
from django.apps import AppConfig class SimpleAppConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "app.chat" # Update
If you rename an application, you must reflect this in /project_template/settings.py
:
INSTALLED_APPS = [ "channels", "django...