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: [ Ссылка ]
Migrations Simplified: [ Ссылка ]
Django Management Command Simplified: [ Ссылка ]
Master Django Middleware: [ Ссылка ]
Realtime communication (using Django Channels): [ Ссылка ]
Django Custom User model: [ Ссылка ]
Django Celery and Redis: [ Ссылка ]
Django ORM Basics: [ Ссылка ]
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: [ Ссылка ]
Join this channel to get access to perks:[ Ссылка ]
Connect with me:
Linkedin: [ Ссылка ]
FB group: [ Ссылка ]
My laptop: [ Ссылка ]
Phone Camera: [ Ссылка ]
Tripod Stand: [ Ссылка ]
Monitor: [ Ссылка ]
Keyboard: [ Ссылка ]
Main Mic: [ Ссылка ]
Mic: [ Ссылка ]
SSD: [ Ссылка ]
External HDD: [ Ссылка ]
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
![](https://s2.save4k.ru/pic/JOicfPr0-7s/maxresdefault.jpg)