Mixins and as_view()
Compose behavior and wire CBVs into urls.
What as_view Really Does
A class cannot be a URL target on its own. as_view() returns a function that creates an instance and dispatches the request.
Always Call as_view in urls
In urls, you call the class with as_view(), never the bare class. That callable is what Django actually routes to.
path("", HomeView.as_view())