Hello, friend will come back in a previous video, I have to show you some of the basic finest texture
of the Django, right.
So now in this video, I want to discuss about how Django actually work.
So right now, if you want to, is very much important.
One of the things you have to know about it, like if you already work with the beef, if you already
work with the Laravel, so they have some of the finest texture in PSP or the Laravel actually, that
use one of the finest texture that called the embassy pattern.
Right.
That means the model view and the controller pattern.
But Django actually use and there is texture pattern that is the MBT.
OK, so I show you like here I open the one of the file.
So it's actually use one of the another architectural pattern as a MBT.
So that is that MBT, not the NVC.
OK, so they have that other file structure pattern that is NVC.
So it means for the M for the model better I just give a bit bigger size.
So that is M for the model, B for The View and C for the controller and same as the triangle.
So that is M for the model, V for the View and T for the template.
So that is actually the phylis texture of the Django.
Like I show you like first of all M for the model, OK, and then the view and then another one is the
template so that they are the template.
So that is actually the ar pattern.
So model view and then template.
So what exactly the model model is used for so related everything which is related with the database.
So that is all that our model.
OK, that means that related.
Related everything with database, so database deleted everything actually managed by this model and
then The View and then another one of the template template is for the actually which actually you view.
OK, that means switch.
Because you view on the show, like if you go to easy learning, easy dot com, b dot com, and here
you can see that there is all of the base.
So that is on the base.
Right.
So here they have the base and here is showing some of the text.
And if you go to that, our being touched since they've been touch here, you can see they're showing
some of the text of the picture.
So that is our template.
OK, so that is actually one of the template.
And then and that if they have any database related issues like here, if you go to that, our all courses
and with all courses area.
So this part that this part actually comes from or from the database, that means I have another background.
And with this background, I actually uploaded that part.
OK, so that is one of the headline and that is the short description.
And also they have the headline and there is some of the short description.
So this actually counts from our database.
So that is actually the database that everything actually managed by this hour, this part that means
it's managed by our this model.
OK, that means the database related.
Everything actually managed by this model and view is means actually control our this model to run the
template.
OK, that means it's actually like as a controller.
So it's not that controller, but you can predict that things as a controller.
So you manage that every data you spend as our this data from our database and display that things on
here, each man is all the data from our database and it's getting all the data from the database and
display that things on here.
Right.
So that is actually managed by this view.
So in general, that is up to the view.
So you can you can write down at the all logic
logical work, you can say, OK, so that is like one of the controller.
So, like as a controller, so all that logical happened, like, is perfectly getting our database
in and getting the data from the database and displayed that started in our Tampa Bay area.
Right.
Is displayed that things on here.
So this procedure actually managed by this view.
So for the reasons here, I just simply dumped it as it all logical work actually completed by our this
view in our MBT pattern, but into the MVC pattern.
What exactly should we do in the embassy?
Perton, if you like, I just make as a model and then view and then there is a controller with a controller.
So if you actually compare both of these, so the model will be that just like that same model will
be just like the same as it will be as a related everything with the database.
And then actually the view and view means actually that is actually the controller work.
OK, well all that logical functional seemed to the embassy pattern, all that logical, functional
actually completed by these controllers.
But in MBT actually is completed by our this view.
OK, and that is our template also into the template.
So that means which base you actually view.
So this base view in our embassy pattern, that is our view.
OK, friend, I hope you get some of the basic idea what exactly the difference between the embassy
and the embassy.
So right now that is our structure and it is right now we don't need this.
I hope if you already know about it a little bit, that embassy pattern.
So that is actually our embassy pattern.
If you compare it, it will be just like that.
OK, so model will be the same, which is related with the database related.
All the tissues and view is in our embassy that is actually display all the pace.
That means that is actually our all the template.
So if you compare it so that is all the template.
Right.
So that is all that our static data.
So that is all, that is static data that have no connection with the database.
So for the reasons that is actually our all the template.
And if you go to our all calls into the all course area, so there's all that that actually comes from
one of the database, that means all of this database is get all the data from the database and display
that things on here and also get all the data from our database.
And that is picture is also comes from the database.
So this way it actually is related with the database.
Everything actually managed by this view, like as a controller, it's actually apply all that logic
work is perfectly sane, some of request to the model.
That means our database.
So through this model is parsed that request and get that request and displayed this data in our D template
base.
That means here it's actually visible.
Right.
So this procedure you actually completed by our D view.
So that is actually w I hope is very much clear to your friend.
So that is our MBT pattern.
So we have to do we have to actually flow out simply this step.
Right.
So just take some of the little idea.
So literally, when will actually work with it?
When you work with the model, when you work with the view, when you when will work for the with the
template, then everything will be more clear to you.
See the next video and we'll discuss about that view.
And also I will discuss about that.
You also can working with this see what else I can show some of the data with using that view in our
next video, I will show you that things with a live example.
So thanks for watching.
I'll see you in the next video.