Hello, friend.
Welcome back.
In a previous video, I have compared both of these with the function best view and the clouds view,
and here I can display your sound data with the function and also how can display your data with the
Clausewitz's view.
I have discussed about that things with you.
So now if you want to load some of the template right now here, there is only our taxes visible.
So here, if you want to load some of the template, how can display this template so into the function
view, what exactly we did with the function view here, we define that, things like that.
We as a return and render right.
Return, render.
And here we have we have to do we have to pass that request.
And with this request, we pass our template name.
Right.
So here we passed our template name.
And after that we define that as a context so that this context area, we just pass our whatever the
data, we will pass.
So here I just pass that things into the template area.
Right.
So there is a clear function.
BISBAL So now I want to work with our classifiers view.
So if you want to add this template into the Clausewitz's view, how can added in this video?
I'll show you that things with the live example for doing this before I have use all that template templates
folder area into the template area.
I have played along the first steps right into the final step.
I have created all that out as Tamalpais.
So now I want to do I don't want to use this template.
So I as I told you, they have a lot of the application you have to create for your project.
So if you want to create your all that application related template into the application area, you
can also defining it.
OK, so right now there is our template text.
So right now we don't need this, but I just simply remove it.
I just simply deflect it.
So before for the filter I have you created it so I don't want to do in our first application area and
to create another folder because I want to add all that our template up in the first step related template
in our step area.
So far, the results in our Fastweb area.
I don't want to create one of the folder and I just named this folder as a template.
OK, just name it as a template.
And it is the template for the very own to do and to create another folder.
And I just name it as a fast step.
OK, fast underscore app.
So just like that, same before I just before I created it outside our project.
So now I just create our all the template in our application area.
So that is our template and that is our fast step.
So do the first step, the I want to do and to create one of the new file.
And here I named that file like the index dot is HTML.
So just name it as the index, this table.
Right.
So here I defined the aim, our XHTML as Jim'll Tag and into the body area.
I define one of the H1 tag and here I define as I am a template.
So just name it as I am a template, so now I want to do I want to load this hour this template, that
misery index template in our class area.
So go to the class so that we don't need this.
I just simply remove it.
OK, I hope you can understand about it for the function.
We have called it like that way.
So now we want to call it in our class area.
So now I just simply remove it.
OK, so now into this class area.
So here we don't need this here.
I just simply remove everything.
And first of all, here we have to do we have to add another class.
So in particular, that position we have been put down in the class.
So after this, I have to do they have also one the jungle in our view, and that into the genitally
that I'm also building class as a template view.
So now we have to call it template and view.
OK, so that is the template view.
So this template will be inherited without this class.
So now we have to pass it.
OK, different step by step.
Everything will be very much getu and then we have to define our template.
So I just simply defined the template name, the template underscore name.
And here I just defined our template name into the first application.
That means here in Tampa area, I have defined that first step.
So the first step I have created one of the index e-mail.
So that is our index system.
So now here I just simply call it as a fast, fast underscore app.
And here I have created index dot estimate how much easier it is you can see.
So that is the things we have to do.
So here I just simply call it.
But here one thinks if you now directly call it automatically, it should be redirected to our main
template.
That means into the main competitor.
Yeah, I have also created as a fast tab and here you can say have also created an index e-mail.
So by default it should be load this one fast.
OK, because of all here, if you want to deflect it, then you can be elected then automatically our
dysfunction.
That means this application, this template will be run.
But rather than by default, because the the same thing that is a template and the fast tab and that
index has HTML and by default it should be first of all, choose this one that this template folder
and the Fastweb, and that is our index system so that no, I cheer for you, then it'll be very clear
to you.
Like I just remember everything.
And here at the front of this HTML, one of the tag and here I take one of the H1, OK, I take all
the H1 as I am from project template folder.
So this step up one of the text, I want to visible it.
So here you don't need to do anything automatically.
You'd still be getting that our this first of all actually.
So we load our this template, that main template file step and that is our index.
OK, so we load this one up in this one.
So now let's take this out if you know, because they say, well now if you refresh it.
Yes, now, considering now automatically is getting out this template, as I am from project template
folder, that means it by default is getting our main template and the template.
I have created that e-mail index.
So that is the index as general data is now getting that things on here.
So here I don't want to load out this template.
I want to load our project that in our application area I have created the template and here I have
created that index system.
So I want to load our space.
So for the reasons here, you have to do we have to just simply deflect it.
So right now I just simply delete it like here if you deflective.
So I just simply deleted right now.
OK, I just simply.
Now what will be happen like here if you now refresh it.
Yes.
Now if it now is automatically getting out this template fast and here I have defined for the node as
a I am a template.
So now I think it's very much clear to you.
So here, if you don't go to a fast tap into the template, into the first application that are indexed
and you can see now actually getting our D indexed pace, that means that is actually our index data
is not perfectly visible.
So right now, we don't need this.
I don't want to access our main template.
So for the reasons here, but I want to go to rename it.
I just see you name it and I just make the things as a temp.
OK, I actually don't need this for the reasons here.
I have just changed that.
Our folder.
Perfect.
So now I want to do I want to discuss about before we end the functionality, we have passed all the
data with the specific some of the base with the context.
Right.
Like if you want to get all the data from the database and here if you want to take that into it, some
of the variable and here you going to pass it into that in this e-mail, how can do that work into the
clouds?
This view, if you want to display, then you have to do we have to create one of the another function?
So I just simply define another function as a function.
And then they have also one of the function as the get contextless.
I just simply defined the gate and the context, OK, it contains data.
So with this function you can actually defining it.
So as I told you before, if you create any function into the class idea, first of all, we have to
do we have to declare it with the self.
So I just simply defined as a self entered the self after the self here.
If you want to pass some of the multiple argument, OK, that is multiple key argument.
If you want to pass it, then you have to write down as a double lyster and then key.
That is the key, that is KW.
And then the argument is yes, that means here.
Now you can add that multiple keyword argument.
So if you want to add that multiple keyword argument, then you have to define that things with the
double ister and the W.K. That is the key word.
And then actually that is our argument.
OK, so like it will be like that.
Will it be part the data?
So here is the response.
First of all, the key that Minsky's means actually this one, OK?
And also it will be passed on the value.
So there is a value.
So shall we pass that value?
So that will be the key.
That means this one is really key.
So you can add that multiple key and also you can pass all the multiple arguments.
So that is all that our value.
OK.
So if you want to parse some of the multiple key argument, then you have to use this one.
I think it is very much clear to you.
So now here I don't want to define all of the argument as a context.
OK, this is simply defined as argument or the context and with the super function.
So with the super functions, what exactly the super function did, as I told you before, that means
you should be get your all the database table filled that are right.
So now to do to get our all that our database fill that I and I just take the things with our disk,
get context that area.
So I just simply defined as a gate and then into that the countries that are here.
I want to proceed with this argument.
OK, so here we have two also defining it.
So I get all that our data and then I just simply pass it.
That means this super function will get all the data from our database and this data will be passing
our gate counters that area.
So here I just simply pass it.
So now if you want to display all that, your key value, then I by step, everything will look very
much like here.
With this context, with this context, I want to pass some of the key like here.
I just simply pass on the key as a sample, OK, sample, underscore text and second one.
So that is one of the key.
And here I have to do I have to pass that value.
Right.
So just simply define that value will be as a sample.
Sample test takes one.
So that is the one and also I want to pass another one that means here with this context, I want to
pass the sample text to and here there is our value will be as a sample text.
So now if you want to visibly, then you can visibly if you go to our index and the index here, I want
to display it.
So if you want to display.
So I just simply displayed.
So that is our key.
We have to define our key.
Is that our text?
That means a simple text.
Once I just simply copied it here, I just simply passed it.
And also they have the other one, another one.
I have defined the key as a simple text to say, just simply defined as a simple text, too.
So now we have to do we have to return it.
So here after this.
After this.
I just simplified the return.
Sorry.
Written and then context, so we have to retain our this context, so here I have already defined our
multiple keyword arguments for the reasons you can say that at multiple value and the key.
And here and now I returned it and now I displayed in our index base.
So that is our our all the key.
So I have defined that things with the simple text and the simple text, too.
So now if you because I save all not only for you, refresh it.
Now, you can see it's not perfectly getting our disvalue as a sample text one and the sample text,
too, I hope is very much clear to your friend.
So don't worry.
Step by step, everything will be more clear to you.
So here I have this about the complete view.
So now we can actually load our template and also pass our all that value.
So we pass it and also be displayed in our view.
Base Synon.
Next video I want to display in our database.
I have already created on the table as a musician to be the musician.
Will that have some of the data?
So if you want to actually read all the data and visibility with the list view, how can this be played?
In our next video, I will show that things with a live example.
So thanks for watching.
I'll see you in the next video.