Hello, friend, welcome back.
In a previous video, we successfully created two of this table.
One is the category and the other one is actually the product.
And also after that, we migrated.
Right.
So now we have to do we have to visible all that our data.
That means the category data and the product data.
So for doing this, we have to work in our app shop into The View.
So here we have to work.
Right.
So now we don't need this.
I just simply removed the reservoir profile chains.
Also, you don't need this.
I just simply remove everything from here to now.
In your view, first of all, here on the ground to work with our class view function.
So if you want to use that cloud view, I think you already know about it.
So first of all, here we have to do we have to load out all the clouds, view that material to throw
all that out, or at least view data and the details of your data.
So if you want to defining it so from so from our Django.
So from the Django, the views.
And then also there is a generic front with a genetic we have to do we have the input, we have to input
our older view class.
So that is the lowest class.
So I just simply defined the list view and also another one of the details view for details, let us
show all that our base.
So I just simply definitely does view.
OK, so here I have loaded all the third class and now also we have to do have to add our model.
So modelling from from our app shop app underscore shop.
So from our app shop here, there is our model.
So into the model and want to take our this product class.
OK, so here I want to show us, first of all, all that our product.
So that is our in our app shop and the models and from here and the input our product class.
OK, so now what to do and to create the class view.
I think you already know about it.
So just simplify the class and I name it as a home.
OK, and here I want to do and to load our this list view class.
So here I just simply define our lives view.
So when I think you already know about it because we did that work before.
So now with this model, OK, with this model here, we have to define our models.
I define our model as a product so that we are product model and then also want to do the load on the
pace for the regions here in the definition of the template, name, template, underscore name and
also in our um.
I have already created one of the folder in our app shops into their very own to do and to create on
the file.
Here I create the new file and I just name it as a form of not SDM.
OK, so now I want to do want to define that name.
So here it shall be in our app, you know, app shop into the app shop is will be as a home dot SDM.
So just simply defined as a home address.
So now we have to work in our home.
So now go to our home.
That is Temel and here we have to load and all that, our basic things.
So first of all, we extend, OK, that we extend extends our basic HTML.
So just simply defined as the basis HTML and then also we have to define the block.
So I just simply defined that our blog, some block will be as a body block body and risk a block.
And also we have to do we have to finish that block.
So just simply finish that block.
OK, I just simply finish that block.
That means that and block so to simply defend and block perfect, so now I want to do and the visibility
with our using the for loop.
So here I define that as a four and a name with the product.
OK, just name it with the product and even and from here you can see I didn't find any, any object,
but here I'm using that all these views.
So if you use that leaves you is providing by the following of the name as the object list.
OK, so you can actually also defining that with the object list.
So I just simply name it as an object with this object list you can define so you don't need to pass
any object foris aspecific for this space automatically.
Shall we get it.
OK, so with this object list I take that things with this product.
So now with this product we can actually access all the Darfield.
Right.
So now first of all, I want to do I want to end it.
That means I want to end our four.
So that is our end for and here I want to display our product details.
So now if you want to display that means with this product.
So with this product, you can display whatever the feel you want to display.
Right.
Right now in the model area, I have defined the filename as Ismay's name category.
OK, so now I just want to show that name.
So I just simply copied.
And now here, here, I want to define that with this product.
I want to access our name.
That means a product name.
OK.
I hope is very much clear to you.
So now for this homepage, we have to we have to also create one of the.
So in our app shop application.
Go to that.
Are you what else into the what else.
I have already loaded our part and there is a view and also here I define that name, app name as the
app shop.
So now I want to do it on the part.
So I just simply define the part and part will be our home directly.
I want to visible it.
So that is our views.
So with these views here, I have already created in our views area of the class function that is a
view class as a home.
So now I want to use it so that you the views that is our home.
And also here you have to define it as underscore view.
Right.
So I just simply defined as view and also here I want to do and define that name name for this part,
and I just name it as a home home.
So now here we have defined our home.
So now I want to do when any user logged in after that logging, it should be addicted to our home page.
OK, so here I have defined that part, so I just name it with this home now we can actually access
it.
So if you want to access it, like I defined that things in our app locking into the view, that means
when and user will be signing.
Uh, so before I have passed that the EDP response.
Right.
So now I'm going to change it here.
I want to pass with the EDP responsive verdict and then with the reverse.
So the reverse.
I want to pass it now in our app that our app shop into the app shop here I have defined if you go,
that is our absolute name.
And here I define that name as a home.
Right.
So I would want to pass it to the home and also here and do the same things for all logout.
So here is a logo.
They also defined that it should be done our history, be responsible with our app homepage.
Perfect.
So now I have to do and to save it, I just going to save.
All right.
Now I don't have any data, right?
So here I don't have any data.
But I underline to insert some of the data manually.
If you go to our app show, first of all, I want to create another category.
So I just simply defined as add category and I just name it as accessories.
OK, just name it as the accessories on the category.
Click the save and also to create another one and I just name it as a t shirt.
OK, t shirt category.
So that's step one, the category and to create and also and to create another one as the electronics.
So here are defined as electronics clay as a.
So right now I have created three of this category.
One is the electronics t shirt and the accessories.
So no one to do and to add on to the product, go to our product, click on the ad product here for
the purpose.
I am using the maze.
So for now I'm actually using this one for educational purposes.
I'm using it.
And also here I define that under the name the best t shirt and also the category you can say automatically
is getting all the other categories.
And we just select the category as a t shirt and there is a preview as a select your size as L am s
this type of attacks I have defined.
And also the result is.
For the description I want to do, I want to I don't know, the mutex OK, I just simply saw on the
demo text like here, but now I just copy.
And here I define some of the demo decks.
OK, so better here.
A defense of the demo tapes and also the price.
So I just simply defend the price of the 260 and all price I have defined as a three hundred.
OK, so that means previous one.
The previous price was actually at 300.
So now our price is the two sixty for this specific product.
OK, so now I just feel safe.
I can see our product is now safe.
So now if you want to check it like here, if you now go of our base and now click the refresh and now
to download logging with our user says it set up our on here.
It should be the key to our homepage.
Right.
So don't I just simply define our area at Gmail dot com and you do me.
One, two, three, four, five.
Now clear the login.
Yes, now it's different, now it's perfectly clear to our home page and also here is showing only that
name for this product, I have defined that name as a best T-shirt.
So now you not showing off the best T-shirt, right.
So our product, that means in our home page, I have defined only the product name.
So now we can actually display all that.
Our Phelim, that means here we can display if we want to display that category, name the main picture.
That is our previous description, prize all price.
So everything we get every data and I just take the things with this that is our object list and what
this object used here.
I developed the for loop into the for loop.
With this product we can actually visible all that our database field.
Right.
So better I want to do want to create some of the product fast from here.
OK, and then we will display and also will customize our homepage as our demand so we 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 in the next video.