Hello, friend, welcome back.
In a previous video I have already discussed about that, things with you, how can load your e-mail
template right now for every e-mail template?
We will need our corsairs.
We need our Jésus file.
And also we need to add all that our images.
Right.
So now here I can actually add your all the static file in this video.
I will show you that things with a live example.
So for doing this, go to our Project Victory.
So into this Project Victory.
So I have already created an I are the one of the folder as a template folder in our main file, the
story that missing our my fast project area right into this project folder in particular that folder
area.
I want to create another folder for our All the district data.
I take one of the folder name and I just name it as a static, OK, I just name it as a static and enter
now consist of creating the folder name as a static seem to the static folder.
I want to define all that our success.
I can define all that our Jessa's and also I can define that imagist right now.
First of all, I want to add some of the images.
So here I want to do and to create a new folder and I just named that folder name will be as Imagists,
OK, I just name it as images folder so that it is static.
So there are images folder.
So for irrigation purposes, if you go to our exercise file here, I have already defined on the file
one of the images as a course.
So you know, our projects right now we are working in our Django project.
That is our first project here.
I have created a static folder and the images and here I just simply passed it a so here I just simply
defined the image and that is the image I just named as the images right now for you to get some purpose.
So I'm just using the images.
Right, so no one to do aren't actually visible these images in our display area.
So how can do that work for doing this?
We have to do first of all, we have to actually load our DC static folder in our project directly.
So we have already did that work for our template.
So now we have to do the same things.
Now, if you go to our project, that is my first project and here I go to that setting fire.
And with the setting here you can see previously I have already defined our project.
Read this template directly.
I define our specific path.
Right.
So now I to do and to do the same things.
I just simply copied it and now I just take another one.
Sorry.
So here I just simply pasted Sahnoun to do another.
Take one of the variable, I take one of the variable as a static.
OK, just name it as a static underscore directory and then it'll be our pop into the bottle.
Yeah.
I want to join our base directly.
That means our base directly.
I have already discussed about the things we do into the base to create our own to do and to join our
other folder, our folder name as is Tappy.
So now here I define as a static.
OK, I just simply defined our folder name.
Each will be joined with our main part area like good friend.
So I just simply defined our static folder and after that we have to also define our DC static.
This variable, OK, we have to defining it in our if you go then they have also another function like
here you can see that it actually satisfies all that is required.
They have also one of the command by default.
That means here you can define your all the static file.
CSA is JavaScript and the images in particular that area.
So by default, that is one of the variable as a static file.
And here you can see that by default it's created as a static.
So no to until they find another one.
So here I define another one as a static files.
Underscored to actress, I just simply defending the three names, OK, and then I take one of the variable
and in particular that position I want to define our variable that I have already defined are with the
part.
So I have already popped that things with this variable, that means the static trajectories I just
simply copied.
And now here.
So after this here, I want to do this.
Simply define that.
OK, so here I go.
Simply defining it.
So just simply defining it on here, so that's all you have to do in our setting.
So here I had just simply defining it and now go to our index that is in our index place.
So, you know, index based here.
I want to visible it.
So here, first of all, if you want to display that image, I think you already know about it.
You have to defining it with the image tag into the image that is actually SAAC.
Right.
So right now, we don't need this all the tech.
So in order if you want to load that, your emails, that means your assets in particular, that position.
First of all, you have to load your aesthetic, all that file, right.
So here you have to load it in particular that position.
So here I just simply defining it.
So with the single curly bracket, with the single curly bracket here, you have to define your first
fall.
That is a two percent is sorry, that is a two percent is in this two person base in particular.
That area you have to load.
OK, you have to load your aesthetic.
So I just simply define our aesthetic all that fine on that position.
OK, so now we in particular, that area that is in our SHC here, I want to load our images, that
aesthetic, that is the images and that is our image.
So if you want to visible that image in Python, then how we can do that work.
You can define that things with the curly bracket and do the bracket.
Also, you have to define the double percentages into the double percent, as I have defined that things
with this static.
Right.
So with this is static, you have to define your image spot.
So here I have already defined already based part in our images folder into the images folder, our
images name, see the images folder that is our images names.
So I just simply refer to the images.
Right.
And into the image then are extension or extension as a PMG.
So I just simply defined as a PMG argument.
So here you have to define it and now I want to check it.
So now I open our console and here I just simply clear the table.
Now we can see they have no error.
That is, our lower road is perfectly running said.
Now if you go here, click refresh.
And here they have the error as invalid block back in 12, as you said, did you forget to register
a load?
This text actually start getting that already static.
This data that means this start I start getting if you go to our post act that the index here you can
define on this basis.
So just simply defined as this one in the law, the static data.
So now let's check this out again.
Click the save all I want to run it or I wrong again, which simply push on this basis.
Then it's actually run because it's actually again running.
Yeah, obviously it's not perfectly showing our address.
Now let's check this out.
Click refresh.
Yes.
Because he perfect's a friend here.
I have defined s the wrong like here I put all the spaces.
OK, so here after that Arkley bracket I put all the SPSS and after that I just define our supercenters.
So here, make sure they have no spaces.
OK, so right now I just simply defining it.
So now you can see it's not perfectly visible.
Our base that is our H1 tag that are able to to tag and that is actually our images and that is our
text.
Right.
That is the text.
So bitter.
I want to do under define some of the bracket like here after this I just simply defined so the bracket
OK, I just simply defined to bracket like as I say.
Well again.
And now refresh it, perfect, so here, friend, we successfully added our resources, that means our
aesthetic, all of the data that is our images is not perfectly visible.
And also here, if you want to access our route, that means our home directories or here right now
have to do if you go to our world, that means our Fuseproject.
You are here.
You can see to the Fuseproject you are all I have defined as a customer.
So now I have to do and to make the things of the empty right now.
OK, so I just simply defined as empty and also in our fast steps into the final step in know that you
are, I have defined that window to obviously empty.
So we take it to our index function and into the index function.
I have already defining it in our view, in the view index function.
I have already defined our district right here.
I have defined our template as our first step and that is our index estimate.
So now if you click on this evil, I just click the Save All Cerveris signing.
So right now we don't need to use that our Decebal as a customer to know how to use our home.
Yeah, you can see it's not perfectly getting our title.
It's not perfectly getting our all that base.
So friend here also if you want to add that iest like here, I want to add some of the CSIS and with
this case I want to change our discolor.
That means our H on color.
So how can I do this work?
This is pretty much simple things.
I think you already know about it what exactly you have to do in order aesthetics.
I have already defined our images and now for the success I want to do and to create another folder.
And I just named that folder as a success.
OK, so I just simply define another folder name as a success and into the Sears's folder.
I want to create the new file and I just named that file as a milestone.
DOCSIS success of myself of siestas file.
I just simply defining it on here.
So in that position, if you go to index e-mail here, I have defined our H1 tag.
Right.
So now I want to do on to define our search context.
So into the four day decision, tag on to define the class.
So I just simply defined as the H1 and for the H1, I just simply define the color and color will be
as red right now.
I just simply defined as a rate.
So now we have to do we have to add our 26th.
That means here to have created one of the cases as a means teleworkers.
So now we have to include our taxes in our index.
That means in our indexes HTML file.
So into this position, if you want to add that the index, then you have to add it in our head position.
Right.
So now into the head area.
So after this here, I want to link this.
I just simply defined the link into the link that is our stylesheet and that is our objective and indeed
is healthy for you here.
We have to do we have to defining it.
So if you want to define, first of all, that it will be the curly bracket and then the double percent
is right.
And then you have to define with the static, because here I have defined our.
So with this static, we have to defining it.
It's just like the same what exactly we need for our images.
So now we want to load our static data for our success.
So that is in our success folder.
So I just simply defined as a folder name and after that, our filename, our filename as a mindstate
dorsets.
Right.
So I just simply defined as a CSIS and the mysel as perfect so we successfully load it.
So now let's check this out.
If you now click Azabal, I just click the save all.
Now refresh it.
Yes.
Now see perfectly getting our cyesis so perfectly getting the CSIS and our D H1 tag has now become changed
and they have some of the mistakes made by defining it here you can see that, that.
So I just simply moubayed to save all and now refresh it.
Perfect subframe.
I hope you can well understand about how you can add your aesthetic, all the resources.
So here I added our images and also I added that's all that counts.
So that is actually the main Placidyl.
If you want to add your all the courses in Python, then you have to add it with like that way.
OK, so little will actually make that into dynamics right now.
That is all that already statically made.
So literally will dynamic it.
So from our database, if you want to displayed, how can do that work.
I will step by step.
I'll show you.
So step by step will go more deep.
So that's all actually the main basic things I have designed this course like that way.
First of all, you just know that basic, all the fundamental, if you will understand about all that
basic main core things, then how much easier to create any project with using that Django.
I hope you step by step you will all understand about it.
So friend, in our next video we'll start a new session is about that Django models.
So how can we work?
With this Django models 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.