Hello, friend, welcome back.
In a previous video we have created on the table as about the middle class I was about and here I have
added some of the table feel that the title feel description, feel images.
And also with this model, I added that I type.
That means that the title will be as a character filled description, will be as a textfield and also
that image.
Right.
And here also I added our approach to one of the python, Lavie.
And for for if you want to access it, you have to install what, the package as a people package so
you can install that package, as I have already discussed about that things with you.
Right.
So now we are ready to go.
So now I want to do want migrated to before migrated.
I want to do an actual registry.
That means I want to register our this table in our index.
That is our admin.
Right.
So the admin I want to pass on the information to our admin that I want to create another table.
So that is the things I want to do on here for doing this.
First of all, here you have to do you have to import your these models, right.
That means into the model area.
I have created this one.
So here we have to import it so better.
So here I want to do and to live added as a form from that will be in the same position that the model.
So I just simply added as a dot and the models.
So from to this model, I want to do the import, I want to import our which class I have already created
on the class as about.
Right.
So now I just simply name out this class name.
So if you have that multiple class you can add that multiple class with using that comma.
OK, so right now I have only one so far.
The reasons I just name it as about and now also you have to do have to really study the you can see
they have also some of the command as they register your model here.
So now I want to do under a state secondary study that will be as admin and the site admin side and
the register admin side register and the side of the here you have to do have to put that name.
So that means your model name.
So I just simply name it.
It will be as about, OK, so now if you click as a Savol and now if you go to your admin, click the
refresh.
Yes.
You can see for now automatically snobbism visible our about and by default is automatically added.
Another is on here, but because of all you can see, I added our name that the class name will be a
but is now showing us it about OK and also showing us the index indexed means that that will be our
application name.
OK, so that is our application name.
So here is now visible because of all I have created our application name as the index.
Right.
I hope is very much clear to you.
So now we are ready to migrate it.
So for Mike that I say it again now open our path.
That means that is our general and the portfolio.
That is our portfolio.
Right.
So if you want to make the deal, first of all here, you have to do you have to make that.
You don't need to do anything you can do.
The two different or L'Italia will also show you and that things with a different way.
So right now I just may need as a python like Python managed by and then you have to write as a make
migration's OK, make migration, make migrations.
So when you run it as a python managed by and then make migrations and if you click as they enter.
Now, courses automatically make ready for our magnet for index and also created one of the model that
means a model as about right.
So now I want to do I want to initialize this one.
That means if you now go to index in the migration area here, you can see the reservoir in it and then
automatically initialize one the table.
So that is our initial Lesterville as a name and that is all that our field.
OK, and here one things I missed because of all, because if you go to our model into the model area
in Laravel, what exactly we did in Laravel, we first of all, we take one of the idea that that means
the primary ID.
So here in Django, you don't need to add any primary ID automatically.
So we created one of the primary idea for you.
OK, so here you don't need to do anything for a specific for another table for the primary key.
So by default, it's automatically added on the primary key.
So right now that is our initialized file.
So now I want to do and actually migrate out this file.
So if you want to migrate it, then you have to do you have to write down as a python and then manage
to pay and then migrate.
So I just simply added as a python menaced by with this madness, by I want to migrate and now they
enter.
Yes, you can see it's not showing his operation to perform our D1 and our destabilises now successfully
created.
So here now everything is ready.
So now if you go to our side and now if you refresh it and now go to our about, you can see there is
a cloud about.
And here if you go to our ad about yes.
Now conceive and I hope it should be now visible, can be very much clear to you.
So that is our title I have created on the field as a title, that description field.
And also there is another field as image.
So from here you can insert this data and you can save it, right.
So there is a laboratory field.
So here I just simply added the tree field and now we successfully created our field on here so we can
save this data.
And also, how can I add that imagist part, say, step by step in our next video, I will show you
that things with a live example.
So thanks for watching and I'll see you in the next video.