Django Forms and ModelForms
Offered By: Pluralsight
Course Description
Overview
This course will enable you to create snappy and beautiful forms for a website. You will be able to tie up forms directly with the database models, customize them, do data sanity checks, save back to the database, and keep the information secure.
Creating forms can be a lot of effort and pain dealing with HTML and database connections. This course, Django 3 Forms and ModelForms, will help you create and render snappy, intuitive, and beautiful forms for a website, be it login forms, placing orders, entering survey details or writing blog posts and comments. First, you’ll explore modelForms, which essentially allow you to create forms from a pre-existing model. This will enable you to gather information from users, validate it, and send it back to your web application. Next, you’ll get introduced to an advanced way of rendering forms; using formsets, widgets, and templates and be able to customize them according to your needs. Features like Crispy forms will go a long way in making that form engaging and easy on the eyes. Finally, you’ll learn multiple ways to make the forms secure with Django’s easy-to-use protection against CSRF attacks from a malicious site to your server. When you’re finished with this course, you’ll have the skills and knowledge of Django’s ModelForms and all of their intricacies needed to create a useful, convenient, and secure way of creating information collecting forms.
Creating forms can be a lot of effort and pain dealing with HTML and database connections. This course, Django 3 Forms and ModelForms, will help you create and render snappy, intuitive, and beautiful forms for a website, be it login forms, placing orders, entering survey details or writing blog posts and comments. First, you’ll explore modelForms, which essentially allow you to create forms from a pre-existing model. This will enable you to gather information from users, validate it, and send it back to your web application. Next, you’ll get introduced to an advanced way of rendering forms; using formsets, widgets, and templates and be able to customize them according to your needs. Features like Crispy forms will go a long way in making that form engaging and easy on the eyes. Finally, you’ll learn multiple ways to make the forms secure with Django’s easy-to-use protection against CSRF attacks from a malicious site to your server. When you’re finished with this course, you’ll have the skills and knowledge of Django’s ModelForms and all of their intricacies needed to create a useful, convenient, and secure way of creating information collecting forms.
Syllabus
- Course Overview 1min
- Creating a Simple and Intuitive Form 21mins
- Validating the User Inputs to the Forms 25mins
- Using Formsets and Factory 23mins
- Beautifying Your Forms 19mins
- Securing the Views against CSRF: Middleware and AJAX 13mins
- Securing the Views against CSRF: Templates and Decorators 13mins
Taught by
Sangeeta Singh
Related Courses
Rails with Active Record and Action PackJohns Hopkins University via Coursera Excel Skills for Business: Intermediate II
Macquarie University via Coursera Programming 103: Saving and Structuring Data
Raspberry Pi Foundation via FutureLearn Everyday Excel, Part 1
University of Colorado Boulder via Coursera Creating Dashboards in Google Spreadsheets
Coursera Project Network via Coursera