Hello, friend will come back in our previous video, we successfully insert some of the data in our
musicians table, right?
So now if you want to check it in Django, by default, they have one of the building admin panel.
So from to this admin panel, you can read all your data and also if you want to deflect it, if you
can edit everything from here.
So if you want to access this panel, first of all, you have to do right now, we don't need this.
I disclose it.
If you want to find out this admin panel, you have to go to your application.
That means our first application I have created in this first application.
They have the admin.
OK, so now open it.
So now you can see by default one of the lively as they have been on here.
So first of all, we have to do we have to import our two of this model that the model I have already
created in our first application area.
So I have already created to have this model as a our musician and the album.
First of all, we have to do we have to import two of this.
So here in particular, that area I want to do and to import it.
So I just simply defined as a form and from our application name, our application name is a fast app.
So I just simply defined as a fast if I sd underscore app fast app and if it is step, I have defined
our two of this model in our model area.
Right.
So in these models we have to defining each side as simply defined as a fast app and the models.
OK, and then from here I want to do and be imported.
So from here I want to import our two of these tables are to have this class I have defined as a musician
and the album.
Right.
So now we just simply define two of this as a musician and also I have defined as the album.
So to simply define two of this on here and after that we have to do we have to register to have this
model.
So here I have already the import of this model as a musician and the album.
After that, we have to do we have to register it.
You can see they have some also some of the note at the register, your models here.
So here I want to do and register it.
So that is in our admin's.
So it is administratively, I want to define one of the site.
So our site as a register, I want to register our models, our modern name as a musician.
And also, I want to rule out to add another one as an admin at the site and register and register our
another table or another table is album.
So the simply as album.
OK, so here first of all, you have to import it.
So you just simply define imported from our application, our first application, that is our models
and these models.
I have already created two of these so that the musician and the album.
So I just simply import two of these and then I already studied it.
So I just register our musician and also I registered our album.
So now for access, all the data we have to do, we have to create one of the superdad.
If you want to create some of the supervening, have to open your terminal.
So I just opened my terminal.
So that is our first project.
So in particular, that position, if you want to create one of the super I mean, you have to write
on a document.
So here you have to right.
As a python and the python, then the main espie man is dot fi and then you have to define as a create
super user.
I just simply defined to create super user.
So to simply defined as Python Manase Y and the create and the super user and because they enter.
So now you can see by default is putting that username.
So by default my PC name as a I'm just so far there is only snowshoeing as a user name as a Amjed.
So if you want to change that username you can change it.
But right now it's OK with me.
So better to do and to copy it, OK, because it will be needed.
So I just simply paste it on here.
That will be our user name so it's not OK with me.
So now I have to do and click as they enter and after that is putting your email address.
So right now I have to do and to define our one of the email address as a Aryal at the original dot
com.
So this step up, one of the email address.
I have defined Azarian at the original dot com now because it enters and now it's asking for your password.
So right now I to use our password that you do me.
You do me.
One, two, three, four, five.
OK, so better I want to do to save it like Azarian at the rate Gmail dot com and password will be you
do me.
One, two, three, four, five.
OK, so I just simply defining it now as they enter now you can see it's not showing you pre type your
password.
I guess I just simply defined it again.
You do.
One, two, three, four, five as they enter.
So now you can see it's not showing as a super user created successfully.
So not only Fiorente says this, I mean, we want to install that our Jianguo in our inapposite into
the fast project area that have also of that you are so now if you open that the URL here, you can
see by default that have one of the pop.
So that is a as a slash admin.
OK, so that is the path is by default.
So now it should be very much clear to you so that have by default all of the parts or part name as
the admin.
You also know, first of all, I do want to run our server so you hear if you want to run it, I think
you already know about it as a python, right?
Peyton Manning's dart fly and then run server side A simply defined as a python and the manna's fight
and run server.
So don't enter.
So our server will be started.
So now you see our somebody is not a starter, so now I just simply copied.
I just simply copy it and now go to our browser here, I open it because it appears to go.
So that is our place.
So after that, that is actually our you are sorry what it will be.
I mean, I just simply defined fine.
I just do it again.
After that.
I just simply defined as the admin as they enter now is by default redacted to one of the default ones
that have been permitted.
So that is our username and password.
So I have already saved are all the information I have already defined.
Our user name will be as the object.
So I just simply the fact that he was a name as Alinejad and also the password I have defined so far
defined the password as you give me one, two, three, four, five.
So I just simply defining it as a login.
Yes.
Now it is different.
Now we can actually access our admin panel.
So that is one of the building admin panel for the triangle.
So from here you can see I have already created the application.
Our application name is visible as a fast app and with this application I have defined the two of this
table.
One is albums and also that is a musician.
So if you go to that musician into this musician here, you can say, having started to have this data,
that is our Jack Ma and there is a Karzai area.
Perfect.
So from here, if you want to add new musicians, you can add new musicians to this position.
If you want to direct it, you can direct it from to this area.
And also showing our ED option, OK, if you want to change it, if you want to save it automatically
should be updated.
So everything is ready at how much easier it is and how much interactive.
That framework for the resource is really so much popular right now.
I hope you can all understand about it.
Right now we successfully accessed our admin.
So from this position, if you want to create a user, you can create new users.
Right now I have already one of the user name as Amjad.
I just pulled that email address.
And also there is a password, right?
So you've got to create the user.
Then you can create more user friendly disposition.
So right now we're stuck with me.
And also I have created another table that our albums table into this album table.
If you go to that ad albums right now for album stabilized in inside any data and also here you can
say one, the primary keys.
So here, a primary key.
Our we decide IDs automatically getting all that our artist data so automatically is now loaded.
Then there is a name feel the release date.
As for the release date, I have defined the date for it.
Now, it should be very much clear to you to that our models into this model here.
You can see I have defined that our models at the another one that's classed as an album for this one.
I have defined that artist m here.
I defined that foreign key with our musician.
So what the business is now getting are all that the artist you can see still getting all the data and
then I just define another filename as a name.
The release date is defined as our type will be as a date file type and number of stars.
So everything is done perfectly on here, OK.
So you step by step, we will do a lot of work in particular that position.
So don't worry, everything will be very much clear to you.
So thanks for watching.
I will see you in the next video.