Hello, friend.
Welcome back.
Every dynamic Web site they have on the database where you can insert your all the dynamic data into
the database and also from where you read all the data and visible this data in your website.
So in Django, they have also one of the building databases and these database names as a green light.
They're continuing to stall our project.
That means our Django project by default.
You'll get one of the file as a DB and they score light.
So that is one the building database for the Django.
So here now we will use it.
So if you want to use this database, then you have to define that things by the models.
So in this section is step by step.
I will show you how you can create that models and how can working with these models and with this model,
how can connect your database and also read that data and insert that data into the database.
So for now, we will use that our school I.D. default on the Django database.
But here one thinks is life is not enough for the big project.
So if you want to working with the big Bozic, then better to use some of the professional database,
like as a girl or the Mongo DB.
So literally, I will also show you how can working with that is.
So right now I want to working with Django, building one of the database of these guillet.
So if you want to working with these, like if you go to our project, I have already created one of
the application in our project area that is our first applications.
Right.
So every application you will get one of the models like here, you can see that the models seem to
this model here.
You can see also one of the libraries already added.
So that is actually one of the building library.
And into this library, that machine learned models like really all that model related functions, all
that model related content is already added, in particular that area.
So here all that our model related functionality is already added in our model slavery.
So now if you want to compare, is aligned with our traditional database, how this will be look like
like here.
But I saw the quote for you like here that is our traditional scroll code and that is our escalate code.
So into the school code, what exactly we did, like if you that is actually, as I told you, that
is our is called code.
So if you run this code in your school database area, then what exactly it shall we do?
It will be create one of the table names for table name will be as a person table and the person will
have one of the field, one of the idea field.
Another is the first name field and there will be as a last name fieldtrip.
And it is also one of the civil type.
And you can see the result of the primary.
That message will be automatically incremented.
And in the first name field, that is our type as of March type.
And at the time here I define some of the land that means that tarde character is still Vitek and that
is also not nullable.
OK, and also that is the last name.
And for the last name, field to this field will be as a marker and also for this field, I have defined
that title character.
OK, so here, if you run these commands, if you run this command in your escrowed, then it should
be created on the table into this table.
They have the tree field.
One will be as a the first name and the last name.
So now if you compare with these things with this model, that how that thing's exactly on here.
So for this one, it will be Uzelac.
First of all, that will be one of the class and class name as a person.
One of the class name into this class is in trade with our this model library.
So in this model library now, Texas or another model, that is our model.
OK, and after that, here they have the three variable.
One will be, as I did the first name and the last name.
So now into this variable, into the idea that with these models, that means with all these models,
like really into this model, slavery is no excess as some of the type as Autofill and the primary key
as a true.
That means you will be automatically incremented and then another variable as a first name.
And it is the first name in our models, Labidi, in this modern slavery had simply defined some of
the character, field and character field will be maximum length at a party.
OK, so before that was actually vaka as a party and here we have to do we have to deal with our models
and are into these models, our character field and the character field.
Here you have to define your maximum length.
So here just simply defined that maximum character length will be at a 30 and also for the another one
that is our last name variable in this last name variable with our model slavery into this model slavery.
They have also one of the type that is actually the character will type into this character that our
maximum length will be at a 30.
OK, so that is actually a little bit different, both of these.
So the this will be for our skill and this will be for our models and that is our Escalade models.
OK, so I hope it should be very much clear to you.
So if you run this class, then automatically it will be created on the table as a person to be the
end of this table.
There will be.
The three field one will be the first name and the last name of a friend and every type like here,
that is a used auto field type, that is our character field type.
That is also the character filled out.
And here you can see before I used that model, slavery.
So everything is already added in our small area for the originals by default that the import our these
models.
OK, so everything is already on here.
So if you want to learn more about that, models that have also on the official Web site, you know,
Django, they have also all of the models seem to these models.
You will get a lot of the resources.
So we will actually use these resources.
OK, so we'll use these resources.
So you can see that is actually the one so on my person.
So here are some example.
So if you want to learn more about it, then it's better to actually read this piece so you will get
a lot of the resources from here.
So we will use it.
So we will use everything in our project like that is our choices.
So if you want to use that choice is how you can use it.
I will show you that things with the live example.
So I have this to read.
This article to increase your knowledge will be very much helpful to you.
So, you know, next video, I will discuss about how you can create these models, OK, how can create
one that are stable and also can create some of the field for this one and also can insert some of the
data into this all the field area.
So step by step and everything will be very much clear to you.
So thanks for watching and I will see you in the next video.