Hello, friend, welcome back.
In a previous video, we successfully dialect our album.
So now I want to do I want to do the same things for our artists.
So now to dissect our artists.
So for now, if you want to direct this artist, first of all, we have to define some of the bottom.
Right.
I have to define some of the delay button in our album list.
So after that, I want to add some of the button.
So we have to do we have to go to our album space.
So now go to our album list.
So that is our first tap and the fast tap.
That is our album list.
Right.
Into this album list after this.
OK, so here that is our table.
So after this I take one of the bracket.
So I just simply sorry, I just finished the bracket and after this bracket I pick one of the areas
and here I also want to define on the unclick.
I have already discussed about that things with you.
I want to display one of the unclick JavaScript and the return and the come from return, confirm in
return, confirm a function here.
I want to define our message.
I want to select it as a dialect, like a dialect musician.
So if you are you really want to direct it.
So if you want to direct it, then they have some of the pop up masses, which also will be displayed
with this specific name.
And also for this pattern here, I want to define on the bottom.
So I just simply the front of the class say to somebody from the class has a better and better and better
for that until I use that danger, danger and then and s.m.
So that is one of the most Sharpless I just simply defined.
And then our bottom name will be as a dialect.
I just name it as a dialect.
So now if you click as a Savol and now go to our alonely space, click as a refresh.
Yeah, you can see the bottom.
And also if you click has a consistent showing as a pop up message as a dialect musician.
So if you click is OK, then it will be selected.
So not only have to also put out the action.
So for doing this, we have to do have to create one of the function in our view.
So go to our view base and it the view which will be just like that.
Same because we have already created our main functionalities will be just like the same better I want
to do and copy it.
OK, I just past it.
So here I want to do to create another one of the function as a dialect, not albums, and I want to
change it.
So as a dialect musician, OK, it will be as a dialect musician and also here we have to pass out the
ID, so do that thing.
Sleater and also here we have to define our aspecific get idea.
I also do the things later on into the discussion, into the discussion here.
I define as a dialect.
One of the message ID as a dialect is success.
And I also want to display on the message as a musician the successfully so I just simply defined as
a musician.
OK, musician de successfully this type of massive docilely display and also Hitosugi display I want
to do to define that things in our dialect as Jamaluddin.
If you want to create another new esteemable place, you can create it.
But it's totally OK because here you know the dialect here, I didn't find anything.
I only find one of the idea as a dialect scheme success for our display, our message.
So I just simply defined the same name.
OK, I hope you can all understand about it.
So now we have to do after that we have to create one of the you all for this one.
So now go to that, your Warrell.
And here I just simply copied it and now I just simply paste it.
So here also you have to deflect it with the specific one of the ideas.
So I do this letter and now first of all, I name it as a dialect, our artist and into the view I have
already created on the function.
So in our view, I have created the function name as a dialect musician.
So I just simply copied and now here I name it as our dialect musician.
And also I define that name as a dialect artist.
Right.
So now we have to do we have to define our this, but we have to define out this part in our album.
Mysterio That means here in our Hatif so now I want to pass it.
So I think you already know about what exactly you have to do.
You have to define as a key as you are.
All right.
And then our final step, that means our apt name.
So I define our apt name as a fast step maybe.
Yeah, that is actually the first step.
They just simply copied.
And now in our story into the fast step here, I have to do I have to define our part names.
So I have defined our name in know that you are l that is our name.
I have defined as a dialect artist.
Right.
So I just simply copied.
And now after that I just simply define other direct artist.
And as I told you, also, we have to do we have to deal with a specific one of the idea.
Right.
You can see that is also the idea.
So now we have to add directly to the ideas of what the regions here.
I want to define that as an artist.
OK.
Sorry artist.
I d I just name it as an artist and into this artist idea, we have to also get our specific destabilized
name.
That means if you go to our album, not this album, the musician into the musician, I want to direct
it so that the musician also that have sold the idea.
So we decided I want to direct it.
So that is the idea I have already defined.
If you go to our view and the view here, you know, our artist in the early stages can say just take
our specific ideas, that that means there is a specific idea that I take that things with this our
artist info so no one to do and to defining it.
So I just simply copied.
So from here, that is a musician to be like, get all the data.
So now with this artist info into this artist info on Texas, our I'd to simply define this idea of
reference.
So here that is our idea.
That means that is actually our artist idea.
So this the artist.
I do.
We have to also add in our you all to the Warrell here.
We have to add each side just simply defined that it our I name I have defining it on here as an artist
ideate assembly copyright and now you are IDUs to name it as an artist.
And also we have to add this idea in our request.
That means, in our view, into the view I have created our function, our function name.
I have defined as a direct musician into the request before.
I have already added that idea for our direct album.
So now for our Delek musician, I have to also do the same things.
I just simply define our artist.
I'd like a friend.
So now let's check this out.
If you now click and save all, I just click and save all.
And now if you refresh it now, if you click on the link.
That being said, I want to direct this idea that without this artist dialect, it OK.
And here you can see snowshoeing as a musician deflectors successfully.
So it's not showing on here.
But our musician is not elected because of all here.
I didn't find any code for directed.
Right.
So you only actually doing that thing.
So when you actually put that action is directed to our this director's Tamalpais with this success
message.
So for the reasons for this message is visible, but our data is not directed.
So now here we have to do we have to define of the code for direct this data.
So it'll be just like that same.
But I just copy it.
And here now I want to deflect it.
So I just simply define on here.
So I just simply define the things as the albums and I to do and to change it.
I want to name it as the artist.
Sorry, OK, I just name it as artist and then I want to direct it from unstable, stable and elected
from our model.
If you go to a.
Our model, I want to deflect it from our musician, Devolites, I just simply copied and now here I
define our musician table and musician to be all the all the objects get and the primary key.
I have defined our primary key as the artist ideas.
I just simply define as artist I.D. Each will be deflected right.
So now should be deflected from our musician.
So now if you click as a Savol now first of all, I want to check it.
Everything is well.
And now if you go here like now, if you go to the home, they have the three musicians.
One is the Karzai and our Michael Jackson and the Taylor Swift.
Right.
So no one to do.
I want to reflect it.
Lavie, if you go to our Michael Jackson and hear one thing, as I told you before, I have already
found one of the primary key and also the fact that Kaskade like if you go to our model and the model
here, you can see now it will be very much cooler to you into the artist.
I have defined our model as a foreign key into the musician on Bílek model Kaskade.
That means if we do if you delek this our artist automatically this artist selected all that, our album
will be elected.
OK, so here I have defined this part I show you right now.
I didn't really it like I just saw the dialectically as a dialect.
So that is Michael Jackson.
Click OK now consistent swing as a musician delek that successfully now if you go to home.
Yes.
Now because your friend now our this Michael Jackson is totally gone.
And also Michael Jackson deleted all that album is also gone from here.
OK, so what the results here have defined that cassette model.
So on Delek model, which would be reelected.
So I just simply defined as a cascade that means this musician related all that album also will be deleted.
So now it's totally gone if you go to the database.
So that is our database.
If you click the browse, you can see Michael Jackson is totally gone to one of the idee.
So now if you go anywhere musician sorry.
If you go to that, our album and the album here, you can see they have no artist data as a tool.
So that means all that I did, that I was totally removed from here.
So that is the results.
I have defined that part.
So I think you can well understand about it.
How can do that work?
So now from here you can add new musicians, right?
So you can add musician, you can edit this musician.
If you want to add new album, you can add this new album from here.
And also if you want to get elected, how can they it?
If you want to direct your musician, you can direct this musician.
If you want to direct that musician album, you can also delete this album.
So that is actually the main Cortinas.
That means if you can create this data, you can insert this data into the database.
You can read this data from the database, you can update this data.
And also you can start out with a specific sound, the notification software that is one of the most
important part in Django.
So if you already understand that main chord application, then you can create simple any type of dynamic
website.
Right.
With this concept, you can use out the dynamic website goes into the dynamic set, maximum time, maximum
time.
You have to apply this code.
Right.
So now that is the perfect.
And also in Django, there is another important part that is that user authentication, that means that
users will be able to login, user will be able to log out, users will be able to register some background.
So for citizens, in our next video, I will start a new session is about that authentication.
So can working with the user authentication in our next session.
We really started it.
So thanks for watching and I'll see you in the next video.