Welcome back, everyone, to this section of the course, we're going to discuss jingo forms.
We've been able to use HDMI forms to allow client users send information in their browser to the back
end of our jingo application.
Then the Jenga website could create, read, update or delete information in the database based off
the inputs on their HTML forms.
Now, user interactions based on each HTML forms are extremely common across the internet on various
websites whenever you find yourself having to input information and then that updates something on the
back end.
That's pretty much an HTML form in action.
However, given what we know so far, each HTML forms require a lot of processing to connect with Django,
especially if we want to later connect these inputs to models.
Recall that previously we had to manually define that entire HTML form inside the template and then
do python processing on the backend in order to connect all the labels and inputs to the actions we
wanted to actually do inside of Python and Django.
Now, fortunately, forms and inputs and interactions with fake clients on the browser side of things
is so common that Jane comes off a built in forms class, which can be used with Django and Python to
create forms and then send that form to the template through a simple tag call.
So essentially, you're going to be able to replace all those lines of HTML form code with a simple
tag, and you can do all the heavy lifting on the back end.
So this allows us to rapidly develop forms for the client while only needing to work mainly of Django
and Python.
It's super useful and super convenient, and it's going to be a huge productivity improvement and make
our overall website code a lot more readable, especially on the template side of things.
So we're going to discuss in this section is have a review of how get post and COSGRIFF actually work.
We've talked a little bit about them when discussing HMO forms, but to really understand general forms,
clearly we need to just have a review of what we mean by get and post requests, as well as security
of CSR.
If then, we'll talk about how to actually create a jingle form, talking about the very basics of the
jingle form class that we'll discuss in slightly more detail things like form fields and validation,
as well as form widgets and actually using CSR styling on the jingle forms that with the tags that are
sent back to the templates.
And then we're going to talk about a specific class called model forms, which essentially creates an
automatic form based off the attributes inside your model's class, easily allowing you to connect a
model in the back end all the way to a form on the front end.
And later on, we'll see how this can be extended to class based views.
All right, let's get started.
I'll see you in the next lecture.