Hello, friend, welcome back in a previous video from our view, so from our View index page here,
I have passed all that, our user details and also I pass all that, our user info details.
Right.
And also I pass it in our dictionary.
So into this position, I pass our total to two of these filter.
And also I pass out this dictionary in our context area that is now we can actually use it in our indexes
HTML.
That is all the data.
So now if you go to our index e-mail and here and to do to now we don't need these sites simply removed.
And here I want to define the condition.
So first of all, and we define all the if condition, that means I want to display all the Twitter
user specific idea that I write.
So first of all, I have to do I have to find out our this user is authenticated or not.
So I just simply define with this user and they have also not the function.
As I told you, there is a user authenticate site is simply defined as the user authenticate.
So if this user is authenticated, then it shall be displayed all that our data and rather then I just
simply define another condition as ls OK, that means Ale's is sort of a display of other things like
that.
Somebody else elses will be displayed on the day of information.
I just simply for another day, I'm here to defend the class as they are.
I want to show us how the mass is actually OK and the primary I just simply defined as one of the class
it will be displayed.
You are not logging logged in.
So this step up, one of the messages will be displayed.
So that is in the deposition.
And also we have to do we have to finish our this condition.
So after that, I just simply defined as and if I could a.
So here we have to defining it and rather then when this user will be as authenticated, then I want
to do and display all that our message.
That means here I want to be flying on the pad.
I got up and read the paragraph.
Paideia is to be displayed high and then it will be displayed with our from here I have passed our user
bezique so we do the user basic.
We will get that user user name and also the email.
Right.
So now I just simply with this user that we user basic info on to access our database field as a username
user name.
And also I want to do undertake another one.
I just simply copied.
And now here it will be displayed as the email.
That means that your email.
Your email.
So with this basic info, we will also get our this feel that also this filtered out will be as the
email site is simply defined as the email.
OK, and also after that, I want to take our Facebook idea and the picture.
So I just simply defined as a battlegroup and here I define the area because here we have to load our
study request.
That means our Facebook Eurail.
So will be as a Facebook
took a Facebook profile.
So that will be as a principal profile.
And here we have to put out this link.
Right.
So in that position, we have to put it to Facebook.
This profile, we actually get that data.
We get that data with our this user info that we use are more info.
So for now, I just simply copied so with this user, more info on to access our field them they have
already found the filename.
If you go to our model into the model I have defined, the filename will be as a Facebook.
Right.
So now I just simply copied and with this user info I want to display our Facebook ideal is to be visible.
And also I have to do I have to display our emails.
That means here also that I don't of the profile image.
So if you want to add this profile image, then you have to add some function for this one.
If you go to that, you waddell's and do you are the Sadir, you have to define input.
Some of the functions like here I defined as a form and into that Django Django, they have also the
conf and here I am from here I want to input and then the settings.
OK, you have to import it.
And also from Django, from Django and they have also on that country country and that the static files.
OK, static files, and they have also the wall tells you what else, and from here you have to import,
you have to import that static, all the data that is static so that pretty much common things every
time you have to actually use it.
So then also you have to define all of the static files.
You are pattern.
So the simple, definitive static files underscore your order pattern.
OK, well, patterns.
So here, make that sure you add two of this and then also you have to define our D.C. patterns, or
in particular after this.
After this you have to define, as you are told, sorry, you are old patterns.
So with this you are a pattern here you have to add as a plus and the equal that means after this automatically,
which will be added our dispersion.
So I just simply defined the plastic rule and then our static files.
OK, that means this is static files with these static files and that is our usual pattern.
And we do see a pattern here.
We have to add it.
And then also we have to define another liberal patterns and then blasts and they go and then it's static.
So this is static.
Here we have to define our I have already import our settings so the settings will be now needed.
Since these static position, we have to define the settings so into the settings.
We have to define our two of the things that I have already declared to have this in our Bozic.
If you go to the setting, in the setting here and here, you can see I have already defined as a media
route and also I have defined that media you will see with the material.
I have already defined our appropriate folder name.
That means this media folder.
So here now we have to add to this.
OK, so now what I want to do, I want to use this media model so you know where you are in this area
after the settings.
I want to access that media model and also our documents throughout.
Sorry.
And also here we have to define the final document should document underscore route into the documents
stored with the setting, OK, with the settings.
We have to also define our another word through to the setting.
I have defined also the media rules.
I have to also add it.
So I just simply add define.
I would really erode.
So if you want to access these images, you have to add this.
OK, so I just simply defined the things on here.
So now we can actually use our email.
So now if you go to our index into the index after that, that means after that Facebook profile here,
I want to do I want to use it.
So just simply defined as images and the images I see.
First of all, here we have to define out all that our images in our this folder area.
Right.
That means there is a media.
So here we have to define that media.
I just simply define that media so that we don't need this all the text so that the media image, the
idea.
And after this media here, we have to define our path.
So here I have already take all the data from here.
I have already defining it so that our user more info.
So with this user, more info like with this user, more info, I want to access our filename or filename
as a profile picture.
I just simply copied.
And now here I just simply define our profile picture.
OK, that is a dot and then our profile picture perfect.
So that's all you have to do.
So now let's check this out.
It should be work like it is here to save all.
Shake it fast.
So it's not getting sounds at all, you know, you are able to attribute media, you are I can see if
you go to our you are still so into that you are.
Well, that is a media.
You are like you see, I actually copy it, but maybe it's missing.
That is actually the media.
You are still OK.
So I have to do I have to as a media while.
Now, let's check this out again, click to save all.
Check this again.
And better, I want to run some of the things on here than it should be actually run this Sarvodaya
game.
Yeah, obviously, it's not perfect, so now let's check this out if you don't go here right now.
I'm already locked inside the log out from here.
And there is a register and there is a law, so no one to do and locking with the Karzai and then I
defend the password.
One, two, three, four, five.
The locking.
Yes.
Now, because free now showing our appropriate these user details that the user username is visible
and also this user email address is visible.
That is our profile that the Facebook profile link here, you can see this by default, getting our
D-Link as a every dot com and the test, and that is actually the mails.
So be trying to do and define some of the wide for this image.
So that is our image.
I have defined in our index simply the index area here after this.
So here after this, I want to defend another wide, OK?
I just simply defend all the way to the 200 pixel.
Now click here to save all.
And now refresh it again, yeah, it's not perfect, so friend, I hope you can understand about it.
And also I have created another user, Azarian.
So now if you get a log out so you can see now it's actually showing us that you are not logged in.
So that is actually the condition I have defined right into the index.
I have defined that condition.
If this user is not authenticated, then Aless will be displayed.
This one.
That means that you are not logging.
Right.
So now you can see snowshoeing with this primary.
One of that alert I have used with this system showing as you are not locked in.
So now there is a register option and there is a logging option.
Right now, the logging with this user, Azarian, like I Ardian, and then maybe a different password
is one, two, three, four or five.
Click as the logging.
Yeah, you can see snowshoeing as a high orien, and that is actually the email address visible, the
profile that in the Facebook profile is visible and also is not displayed that image.
So I don't know if you clear the logo successfully, log out if you want to, at the registers right
now to find out that it is still used as a Udemy and then password, one, two, three, four, five,
and then defined as you do me at Gmail dot com.
So they step up one of the email at the centre use and then I define as a Facebook enemy.
So they step up one of the Facebook Eyedea and I choose some of the emails.
So right now, for this purpose, I'm actually using this type of one of the emails.
So right now I just select this one, click an open because I register.
Yes, you can see suffering as a congratulation registration as successfully done, so now we are successfully
registered now and to locking our you do me as a username and password.
One, two, three, four, five.
Clear the logging.
Yes, you can see in Hidemi is visible and then also showing our email address and you can see there
is a profile showing us a Facebook dot com slash you do me and also, you know, perfectly showing our
specific this user profile picture.
So far, the same purpose.
I'm using this type of the profile picture.
I think you can well understand about it.
That means, friend, we successfully complete our total authentication system.
Right.
So right now you can a logging, you can select a log out, you can register some of the user friendly
disposition.
Everything is now perfectly working.
So that is one of the most important part in Django.
That is authentication.
So step by step from the sketch I create, we have created it.
Right?
I think you enjoy it very much so.
We successfully complete our Django default authentication system.
Know next video only started.
Another session is about that Class-Based view.
So friend, as I told you, don't worry is step by step will go more deep and our friend of schools,
everything will be very much clear to you.
You will have very little knowledge about the Django.
So thanks for watching and I'll see you in the next video.