In this city, we are going to walk with the alert and Django form, so basically alert handling informs,
so indisciplined we are going to handle alerts and Django, there are two types of alert.
One is for error and there is success.
So we will fill the form.
So we will fill the form, we will fill form the real date and check on for both.
The cases will track on the front end to render and display messages.
So let's get started with this.
So we had we had Maidenform.
So this was our fault, OK, on the request method and on the basically here you can see on the request
we used to render the form and the post requesting that you should submit the form so we would apply
the error handling on the post method part.
So basically before this, I will show you some process.
The process here is about that we have on and bootstrap.
So what we can see is not provide contextual feedback messages for a typical user actions with the handful
of available unflexible alert messages.
So there are basically many types of alert, but this is a primary alert, secondary success.
So Bethia so here you can see the primary alert is a local success is in green color dangerous and reckless,
and a warning is only a letter to another type of alert.
And you can see is like a picture dismissable in nature so that you can see the alerts and the Smithsonian
Nature have a cross button on the right hand side, which can be cleared and on the or under a refreshment
or when I refresh this page.
So here you can see this alert message comes, it comes up again.
So basically you can cross the button and dismiss the message for that purpose only.
So let's get started with this.
So the will keep trying to keep it simple.
So if the form is valid, title is post to subject to the subject of what I do, I create my dictionary.
And irrespective of the result, it is going to have the form with tackle, irrespective of the result,
I'll make condition.
OK, then my dictionary of success
is going to prove and same with my degree of success.
Message is, well, the form is submitted, OK, and then what am I going to do?
I'm going to return this page.
So I take requests as a barometer, my phone call to the fictional context of the world worldwide cherry.
And you can see, no, I have returned my phone, brought my home to a and contextual my dictionary,
so basically I would move to this part where we would use this.
And here you can see the word warning.
So I just decided you can have it quick.
Remember, that warning is for yellow or dangerous or red and green sort success.
OK, what are you going to do?
Oh, Lord, another success.
And this Dysport.
OK.
And I will dispute the success message here, but only I would display the success message only on one
condition that this person, if success is equally visible to the group, then only I will say this.
So I would this is the end of the block and I would end conditioned person.
And if there's a slight error here,
I hope not.
Right.
So I would buy be and of OK, so I will move to my home on the request I saw.
I get request, I render the phone and but on the post I will check the error handling.
So what we can do that.
I would like that.
All right, Bill.
Best subject.
And here you can see it from somewhere.
OK, so OK, there was a slight error because I missed a single acid test so it could not the background
color, but I would refresh this process, the form resubmission.
OK.
OK, now it's pretty fine.
It says so quickly so we can add a margin to this.
So basically this would help us out the areas where the margin is equal to one.
In order for divine, we have a modern open on the cross border, it disappeared.
So this is pretty cool with this for the same part we can do for the area also.
OK, but for this but what we can do, you find this condition so we will check the error.
Well, I did this because I wanted to have a quick idea of how this works.
OK, but if title is not OK, what we can do.
This is our fault, OK, and we can hear.
The next exit will take.
No
title should be capital, OK, so this says no title should be capital.
OK, OK, so when we move to a fall.
OK, no, ok, I'll say it here.
No, no, no, no.
This time I would make a greater percent of the full.
Good.
I think they're just going error, OK, OK, OK, OK, let me for the time being, if one was.
OK, now I will go to the phone request.
This is fine.
OK, so there should be capital.
OK, this was just sort of the case I'm taking a look at now if title is not illegal to title or upper.
So this is a string class in Python which can be checked.
If title is going to write a book, then we can what we can do, we would do the same thing.
My dictionary of error is able to rule.
My Dictionary of Error message is a little titled
title should be in capital letters, OK, title should be Capital.
OK, I hope this is fine.
You can look up and see here that you should be in capital and then I will render the page on the same
part of my phone.
Well, OK, but I will only show the error only on one condition.
That would be if errors should be true and this then I would show an error message, OK, and this should
be my danger class.
OK, so I hope now you have a clear idea of what's happening, so I will make that request.
Best title, best subject.
OK, you know, this title should be capital, OK, and if I make it OK, I'll make a test title here,
like in capital.
Test subject, well, we can have this in small letters issue is subject.
A form submitted not I hope the guidance is very clear to you, so in next year we are going to work
with the more than exception handling with the Roussey, all pages and even in the forms.
Also the time to go.
Thank you so much.