You will learn the forms.py or Forms in Django in this video.
ie Django Simple Form and Django ModelForm
You will learn to add a custom form as well as a model form to our Django project create a new post and upload an image.
You will learn about:
How to create a simple Django Form in forms.py
How to create ModelForm
how to exclude fields
How to do form validation
how to use CBV with Django forms
how to use forms to update data in Django
Django forms can be used for many things, such as generating HTML forms from Python/Django code, validating forms, throwing errors, and saving forms.
A Django form is a Python class containing fields with properties representing HTML fields and widgets, which is used to generate HTML tags for a particular field.
Learn Django from this Django 5.x crash course.
In this Django crash course or Django Beginners tutorial, we will learn Django from scratch and we will create a simple blog application using Django 5.
This is a beginner-friendly Django course.
Python Crash Course: • The Ultimate Python Crash Course (Part 1) ...
Migrations Simplified: • Mastering Django Migrations: Create, Apply...
Django Management Command Simplified: • Django Custom Management Command Tutorial ...
Master Django Middleware: • Mastering Django Middleware: The Ultimate ...
Realtime communication (using Django Channels): • Live Data in Django using Django Channels
Django Custom User model: • Take Your Django Skills to the Next Level:...
Django Celery and Redis: • Mastering Django Celery and Redis || Code ...
Django ORM Basics: • Django ORM Basics Series: Part 1 (Project ...
Timestamp:
0:00 Intro to Django Forms
0:22 What is Django Form
0:37 Different Django Forms
0:55 Simple Django form
3:52 Django ModelForm
5:03 How to exclude fields
5:55 Django ModelForm with FBV
15:52 CBV CreateView with ModelForm
20:15 CBV UpdateView with ModelForm
🔔 Subscribe: https://bit.ly/3ChaNj8
Join this channel to get access to perks: / @codewithsj
Connect with me:
Linkedin: / jha-shubham
FB group: / djangodrf
My laptop: https://amzn.to/3TusAcR
Phone Camera: https://amzn.to/44vDfbM
Tripod Stand: https://amzn.to/3pxDJzr
Monitor: https://amzn.to/3qIeF4X
Keyboard: https://amzn.to/3Ad7R3B
Main Mic: https://amzn.to/3Q8gcwa
Mic: https://amzn.to/3yfIkVH
SSD: https://amzn.to/3hb4By7
External HDD: https://amzn.to/3wcMtYU
Thank you, everyone, for watching this video. If you have any questions, do comment below. Do like, subscribe, and share more such videos on Django and Django Rest Framework.
Presented by Bestlatech
Tune in Again