O'Reilly logo

Django By Example by Antonio Melé

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a content management system

Now that we have created a versatile data model, we are going to build a content management system (CMS). The CMS will allow instructors to create courses and manage their content. We need to provide the following functionality:

  • Login to the CMS.
  • List the courses created by the instructor.
  • Create, edit, and delete courses.
  • Add modules to a course and re-order them.
  • Add different types of content to each module and re-order contents.

Adding the authentication system

We are going to use Django's authentication framework in our platform. Both instructors and students will be an instance of Django's User model. Thus, they will be able to login to the site using the authentication views of django.contrib.auth.

Edit the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required