Web Applications with Django: Models and Class-based Views

Django 3.1    |    Intermediate
  • 10 videos | 1h 22m 35s
  • Includes Assessment
  • Earns a Badge
Rating 3.3 of 6 users Rating 3.3 of 6 users (6)
The robust websites and apps produced using Django suggest a much more complicated framework than is used. In this course, you'll build on your existing Django knowledge to perform some Django template language operations. You'll start this course by performing various query operations on your Django model instances from the Python shell. You'll also use the Django admin website to work with your models. You'll implement class-based views in Django, first using the ListView class to view multiple instances of a model before using the DetailView class to view individual records. Moving along, you'll use CreateView and UpdateView to generate and modify instances and implement a DeleteView for their easy removal. You'll round off this course by briefly exploring how to improve the aesthetics of your class-based views by incorporating HTML elements, such as tables, in their corresponding templates.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Perform various select-from-where operations on the data stored as instances in a django model class
    Use the listview view class to access all the data stored in a django model class as a list of records
    Use the detailview view class to access a specific instance of a django model
    Use the createview built-in view class to create a new instance of a django model
  • Use the updateview built-in view class to update already created instances of a django model class
    Use the userpassestestmixin and other code in the django template language to allow only active users or super users to perform specific operations
    Use the deleteview built-in view class to remove specific instances of a django model
    Define various html tables to improve the aesthetics of pages, which allow interactions with django model instances
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 11s
  • 10m 41s
  • Locked
    3.  Using the Django ListView Class with a Django Model
    9m 13s
  • Locked
    4.  Using the Django DetailView with a Django Model
    8m 31s
  • Locked
    5.  Initializing Django Model Instances with CreateView
    10m 27s
  • Locked
    6.  Updating Model Instances with UpdateView
    5m 48s
  • Locked
    7.  Authorizing Django Users with UserPassesTestMixin
    11m 59s
  • Locked
    8.  Using Django's Built-in DeleteView Class with Models
    12m 6s
  • Locked
    9.  Defining User-friendly Django List and Detail Views
    10m 3s
  • Locked
    10.  Course Summary
    1m 38s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.8 of 5 users Rating 4.8 of 5 users (5)
Rating 3.0 of 3 users Rating 3.0 of 3 users (3)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 15 users Rating 4.6 of 15 users (15)
Rating 4.5 of 104 users Rating 4.5 of 104 users (104)
Rating 4.4 of 10 users Rating 4.4 of 10 users (10)