Hello, friend, welcome come back in a previous video, I have already created one of the Super eight
minutes or so and also we logging it right.
So right now we don't need this.
So now I want to do in this video, I want to discuss about more of the example for this model like
here if you go our project.
So in particular that right now we don't need this.
I just simply close it.
OK, so now in particular, that position, they have all the parameters.
So into these parameters I have using as a maximum length as a 50.
Right.
So here to have some of the another parameter I also want to share with you, like by default, the
diameter parameter of the null, like the normal means.
Well it should be by default.
That will be a default by default that actually defaults.
And if you make the things are the true, that means if you make the things that are true, then this
field will be marked as a null.
So by default in Django, that is actually that false.
But if you want to change it, if you want to make that feel as an animal, then you can make that things
now as a true OK.
And also they have the another parameter that is actually a blank and by default, these blank actually
defaults.
OK, so by default that is actually default.
So by default, that is actually default.
That means you have to mark this field as a record.
OK, that means this field is the regrette.
So if you want to make that things as inarticulate, then you can just change it.
That a blank parameter.
You have to change it as a true OK.
You have to just change it as a true.
I hope you can will understand about it.
So by default, these blank as it falls away, it will be a default.
That means you have to insert the data that is this field is required.
It's just like some of the input fields input, the import.
And if you have some of the required right, they have some of the required options that this field
is the that step up on some of the parameters.
But in Django here, if you want to use it, then you have to make the things as a trousseau and it
should be the truth.
Then you can make that things feel as a logical OK rather than by default.
That was a default by default.
That will be as a false choice, will be as false.
Then you cannot actually make that feel as empty.
You have to insert some of the data in specific.
This felt like a friend.
So here there is actually another parameter as a blank I setting, you can well understand about it.
So that is by default some of the parameters that will be needed in our project.
And also they have another option for the charges like here.
If you want to put your user to your user can choose only one option.
OK, then you can also define that things with the charges.
So how can working with this in this video, I will show you like here, there is a number of these
right into this number of Ester's field here.
I want to define some of the option.
So here I want to we want to use some of the charges option.
The user can only try this.
Some of the rating.
That is good.
That is the bad and that is excellent.
So all the user can only use one option.
So here, if you want to add this step of on the Chargers function, then how can do it?
I show you like here, first of all, you have to do we have to define I just take one of the variable
as a rating.
So I just simply defined the rating and into the seating area.
So into the seating area.
I have to do I have to define our field.
First of all, here should be as a value I show you everything will be very much clear to you.
I just simply defined as the one will be as a value and then our name will be is just like as a select
options.
Right.
Inestimable.
I think you already know about that.
Select and the option and for the option we define some of the value.
Right.
So now I just simply defining it as a waste.
So I just simply defined all of the name will be as a host.
And then I want to take another one, the true value.
And for this one, I just simply defined as a bad and also I want to take another one, the three.
And for this one, I want to define as a not bad.
OK, not bad.
So this step up on the text, so this the text will be visible in our offline area.
That means our chosen area.
And also after that, I want to pick another one as a four and the four the four I defined as a good
so only user can choose I specific this all that field.
OK, so here I define as a five and four the five I name it as excellent.
OK, I just name it as excellent.
So now if you compare it to the various HTML code into this HTML, what exactly would it into the e-mail.
I'm better able to post on the comments for this one into this HTML.
We define that select right.
So we define that select into the select what exactly we need into the select, we define some of the
option, so we define some of the option.
So the option here have some of the value and in the value we define some of the value.
Right.
And also.
So after that, we define some of the gold as a worst.
So this type of one of the texts that the text actually visible right after that, we have to do have
to close it option something that we have to close it.
So if we now compare with this one, so that the original code into this e-mail code, that is actually
option value.
And here in Django, that is actually our value.
OK, and also the text that the old text.
So now I want to do underpin this text as it was.
That is a bad.
There is not bad.
That is good.
And excellent is just like that.
OK, and so now I think it should be very clear to you.
So here I just simply defining it.
So with this stating, I simply defined some of the value as a one value the to value three value.
And for that we value our text.
It'll be as a not bad.
So here I am defining it and now we have to do we have to start things in our D field area.
That means our number starts Valaria and with this Campbellsville area, that is our models.
And here I define as Intissar Field.
Right.
So here I can say I define that all in these are values here.
If you want to use some of these chain value, OK, like here, if you use some of these chain values,
then you have to update this type.
That means then you have to use it as a character filter.
Right.
So now it's OK with me.
I am using that our all that integer value for the resources.
OK with me.
So now we have to do we have to parse out this stating we have to pass it.
That means that it will be other charges.
And here we have to do we have to pass out these things.
I just simply copied and here I just simply pass it.
OK.
So that's all you have to do.
So as I told you, what about the Thiensville updated in our model?
Savir, then you have to run.
You have to migrate it with the three commands.
Right.
So now, first of all, I want to do because I save all I to save all and now go to our time, you know,
I just open our time, you know, and that position, first of all, I have to migrate each side.
I simply defined as a python and then as a man is not fi and that my great just simply defined as a
minus fi and the magnetically as they enter now can see it's not perfectly added.
And after that we have to do our second command.
Our second command will be as a python and that man as Dart Fi and the MC migration.
I can make my conditions and our application name, our application name is the fast step fast underscore
app, right?
So that is our first app.
So that will be as a python.
Man, is that the man fi and that make migration's and the app knuckleballers enter perfect.
And now we have to do again our run this command as a python manage and find my grade.
So just simply defined as the python and that man is not fi and that my great python man is why I end
up going to enter.
Nice, perfect.
And after that I want to do unta on our starboard side just simply defending the python.
I get python and that man is dot fi and then run server side a simply defined as Python managed to fi
and answer botanicas enter.
Or so everybody started running, so I just simply copied and now go here and now OpenNet our server
again.
To now go to our admin center so that other admins have already logged in for the reasons you can actually
I can actually access it.
So not if you go to our albums and go to our ad albums and do the ad albums here.
You can see now I have defined that number of estar.
So there is the feel here to have defined all the charges option.
So now I can see all the choose.
This option is not visible as it was as bad as a not bad the good and excellent.
So all that are available here I have defined so all the total value I have defined for the ratings.
So that is are all that value.
So now it's perfectly now visible like a friend now consisting of perfectly visible in particular that
position, and also is not showing all the Tauruses.
So if you want to add some of the albums right now, I don't have any data.
Right.
So now if you want to add new album, like I just named as a Kazarian and I just named that name as
a new album, OK, just name it as a new album.
And here I just do find that they listed as a today and I just make that number of stars as excellent.
OK, so now I just simply defining it as a safe.
Yeah, you can see this album, Object one was acted successfully, and here you can see also Snell's
successfully added on here and here into this album area.
You can see it's not as the album object because of all here.
I didn't find any selling like here in our that position.
You can see I did find that is the line with the show, with the first name and the last name for this
model.
That means our musician Terbil like if you go to our musician Terbil, then it's very much clear to
you if you go to that musician table here, you can see the musician table.
I have defined our first name and the last name for reasons actually snowshoeing like that way, but
in our albums into the albums is showing as the album object.
So here, if you want to display your name, that means your album to have also onto the field in the
field.
I have defined that name and also a number of stars had defined as excellent.
Right.
So if you want to display these type of things, then you can also defining it.
So if you want to do that work, then you have to do we have to go to here.
So right now you don't need this and in particular that position.
So here after this here, I want to added the same things I just simply copied.
And after this after this here, I want to added our this def Esterline and here that is a self in the
return it with the self.
I want to display that name.
That means our artist name, the artist name will be visible.
And here I want to do after that is to be sure as a rating authority to still be sure as a rating and
with the self around to display our these choices.
All that our rating data.
OK, here that is our filename as a name starts.
I just simply with the selfie defined as the name.
OK, that means a number of visitors and also here at the front of the question.
So here we have to use it.
So the symbol definitely stern and here we have to finish it.
In particular, that position we have to defining it.
OK, so I define this turn and here the sales of our numbers astir, so I just simply perfectly defining
it on here.
So now also be updated.
So friend here I have updated our models.
As I told you, whenever you update your model, then you have to run to have this command.
So now we have to run it again.
Clear to save all.
OK, just click on Save All.
So right now we don't need this.
I can sell it.
I want to run it again.
So I just save all.
And now, first of all, we have to run again as a python mayonaise dot file and migrate.
Right.
And the enter is perfect.
And after that Python managers dot fi and then our MC Migration's.
Migration's and our application name as a fast, fast underscore app site is simply defined as a python
menace file and the migration and fast app will enter.
And after that, also we have to run it again as a python, and that man is not Fi and that Maigret
no, no going to enter.
Yeah, everything is now updated to know what to do under Ronald Sarva.
So I just simply defined as a python and as dot fi and then Ron Sarovar, I just simply add on our subarctic
and our.
Yeah, our server is now perfectly running, so now if you go here, go to the home, refresh it, go
to the album.
Yes.
Now Kansi friend, now it's actually showing that name.
So for this album, I have defined that name as a new album.
And after that I have defined that comma right now.
Should be very much clear to you here.
I have defined that name.
That means our album name and then the comma.
And after that it will be displayed that rating one of the text.
So you can see after that comma that is actually showing the ratings and ratings are value actually
visible.
So here is the visible added value as a fight.
So how you have defined that as the accident for this one and for the excellent value is a five.
So right now you can see I find that our there so there is no.
So now it's perfectly visible.
Our leading five, if you want to change the default to here, going to display that name, you can
also define that name on here.
So friend, I think is very much clear to you how you can do that work.
OK, so I have already discussed about that the view, that template and the models.
Right.
So now together, everything how can read all the data and how can visibility in your funding page?
That means if you go to our funding into the funding, if you go here.
So there is our funding.
Right.
So here have already discussed about the things we do.
How can the that your template and also that has all the static data, how can add that CSC in particular
that position.
So now together everything.
How can actually display all that your data that is in our database right now that has all the data.
So if you want to display all the data.
So right now there is a musician to have the two data.
So if you want to read these data and visible this data in particular, that position, how you can
do that work.
In our next video, I will show you that things with a live example.
So thanks for watching and I'll see you the next video.