Building Web Apps Using Django: Generic Views


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

Explore various Django class-based generic views, which help to simplify the tasks of viewing, creating, editing, and deleting instances of Django models, in this 14-video course. Django is a widely used web framework written in the Python language. You will begin with a two-part tutorial on updating forms in a Django app: part 1 on defining forms and a view function, and part 2 on configuring update forms. Then explore how to use the built-in generic views: ListView to list instances of a model in your Django project; DetailView; CreateView; UpdateView, and also DeleteView. Discover how to configure permissions for the DeleteView; generate an archive of your Django model instances using the ArchiveIndexView; and create an archive of Django model instances, categorized by year, using the YearArchiveView. A two-part tutorial on applying finishing touches concludes the course: part 1 on defining an "About Us" page for your Django application, and part 2 on setting a customized 404 error page for your Django website.



Expected Duration (hours)
1.8

Lesson Objectives

Building Web Apps Using Django: Generic Views

  • discover the key concepts covered in this course
  • define forms and a view function to enable users of your Django web site to update model instances
  • configure update forms so that users can submit the new data for model instances in a POST request
  • use the built-in generic ListView to list instances of a model in your Django project
  • display all details of a Django model instance using the built-in DetailView view
  • enable the creation of new instances of your Django model by implementing a CreateView view
  • allow users to update instances of your Django model by means of an UpdateView view
  • use the built-in DeleteView view to allow users to delete instances of your Django model
  • set permissions for users to delete instances of your Django model and define the redirect URL for a successful delete
  • generate an archive of your Django model instances using the ArchiveIndexView view
  • create an archive of your Django model instances, categorized by year, using the YearArchiveView view
  • define an "About Us" page for your Django application
  • set a customized 404 error page for your Django web site
  • discover the key concepts covered in this course
  • Course Number:
    it_apbwaddj_06_enus

    Expertise Level
    Intermediate