The View Class7:27 with Kenneth Love
The most basic class for creating views is named, appropriately, `View`.
View class is the basis for all of the other Django class-based view classes. For the most part, it's a remarkably simple class with only a few methods. You can take a look at the class if you're curious.
Also, all CBV's use their
.as_view() method in URLs, so get used to typing that. You can turn that into a variable (
my_view = MyView.as_view()) and then link that in your URL but that is often seen as redundant and pointless.
You need to sign up for Treehouse in order to download course files.Sign up