Functional overview
Figure 14.1 shows a representation of the views, templates, and functionalities that will be built in this chapter:
Figure 14.1: Diagram of functionalities built in Chapter 14
In this chapter, you will implement the CourseListView
public view to list courses and CourseDetailView
to show the details of a course. You will implement StudentRegistrationView
to allow students to create user accounts and StudentCourseListView
for students to enroll in courses. You will create the StudentCourseListView
for students to see the list of courses they are enrolled in and the StudentCourseDetailView
to access all the content of a course, organized in the different course modules. You will also add a cache to your views using the Django cache framework, first with the Memcached backend and then replacing it with the Redis cache backend.
The source code for this chapter can be found at https://github.com/PacktPublishing/Django-5-by-example/tree/main/Chapter14...