1
00:00:00,150 --> 00:00:06,420
Hello, friend, welcome back in a previous video from our view, so from our View index page here,

2
00:00:06,420 --> 00:00:11,880
I have passed all that, our user details and also I pass all that, our user info details.

3
00:00:12,180 --> 00:00:12,510
Right.

4
00:00:12,660 --> 00:00:14,700
And also I pass it in our dictionary.

5
00:00:14,700 --> 00:00:18,360
So into this position, I pass our total to two of these filter.

6
00:00:18,390 --> 00:00:23,790
And also I pass out this dictionary in our context area that is now we can actually use it in our indexes

7
00:00:23,790 --> 00:00:24,250
HTML.

8
00:00:24,300 --> 00:00:25,380
That is all the data.

9
00:00:25,830 --> 00:00:32,040
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.

10
00:00:32,310 --> 00:00:34,310
And here I want to define the condition.

11
00:00:34,320 --> 00:00:40,460
So first of all, and we define all the if condition, that means I want to display all the Twitter

12
00:00:40,500 --> 00:00:42,340
user specific idea that I write.

13
00:00:42,360 --> 00:00:46,990
So first of all, I have to do I have to find out our this user is authenticated or not.

14
00:00:47,000 --> 00:00:51,720
So I just simply define with this user and they have also not the function.

15
00:00:51,720 --> 00:00:56,440
As I told you, there is a user authenticate site is simply defined as the user authenticate.

16
00:00:56,670 --> 00:01:02,980
So if this user is authenticated, then it shall be displayed all that our data and rather then I just

17
00:01:03,000 --> 00:01:09,510
simply define another condition as ls OK, that means Ale's is sort of a display of other things like

18
00:01:09,530 --> 00:01:09,610
that.

19
00:01:09,620 --> 00:01:13,870
Somebody else elses will be displayed on the day of information.

20
00:01:13,960 --> 00:01:17,690
I just simply for another day, I'm here to defend the class as they are.

21
00:01:18,930 --> 00:01:27,660
I want to show us how the mass is actually OK and the primary I just simply defined as one of the class

22
00:01:27,900 --> 00:01:28,920
it will be displayed.

23
00:01:28,930 --> 00:01:32,550
You are not logging logged in.

24
00:01:32,580 --> 00:01:35,660
So this step up, one of the messages will be displayed.

25
00:01:36,090 --> 00:01:37,650
So that is in the deposition.

26
00:01:37,650 --> 00:01:40,400
And also we have to do we have to finish our this condition.

27
00:01:41,160 --> 00:01:45,300
So after that, I just simply defined as and if I could a.

28
00:01:46,050 --> 00:01:50,970
So here we have to defining it and rather then when this user will be as authenticated, then I want

29
00:01:50,970 --> 00:01:53,520
to do and display all that our message.

30
00:01:53,880 --> 00:01:56,550
That means here I want to be flying on the pad.

31
00:01:56,550 --> 00:01:57,950
I got up and read the paragraph.

32
00:01:57,950 --> 00:02:06,300
Paideia is to be displayed high and then it will be displayed with our from here I have passed our user

33
00:02:06,300 --> 00:02:07,840
bezique so we do the user basic.

34
00:02:07,890 --> 00:02:11,250
We will get that user user name and also the email.

35
00:02:11,250 --> 00:02:11,550
Right.

36
00:02:11,580 --> 00:02:19,320
So now I just simply with this user that we user basic info on to access our database field as a username

37
00:02:20,970 --> 00:02:21,870
user name.

38
00:02:22,290 --> 00:02:24,870
And also I want to do undertake another one.

39
00:02:25,500 --> 00:02:27,000
I just simply copied.

40
00:02:27,000 --> 00:02:29,660
And now here it will be displayed as the email.

41
00:02:30,180 --> 00:02:31,770
That means that your email.

42
00:02:34,260 --> 00:02:35,250
Your email.

43
00:02:35,280 --> 00:02:41,220
So with this basic info, we will also get our this feel that also this filtered out will be as the

44
00:02:41,220 --> 00:02:44,210
email site is simply defined as the email.

45
00:02:44,580 --> 00:02:49,710
OK, and also after that, I want to take our Facebook idea and the picture.

46
00:02:49,710 --> 00:02:55,710
So I just simply defined as a battlegroup and here I define the area because here we have to load our

47
00:02:56,460 --> 00:02:57,450
study request.

48
00:02:57,570 --> 00:02:59,340
That means our Facebook Eurail.

49
00:02:59,340 --> 00:03:01,020
So will be as a Facebook

50
00:03:04,080 --> 00:03:05,600
took a Facebook profile.

51
00:03:07,020 --> 00:03:09,170
So that will be as a principal profile.

52
00:03:09,180 --> 00:03:12,060
And here we have to put out this link.

53
00:03:12,270 --> 00:03:12,660
Right.

54
00:03:13,160 --> 00:03:16,410
So in that position, we have to put it to Facebook.

55
00:03:16,530 --> 00:03:18,810
This profile, we actually get that data.

56
00:03:18,810 --> 00:03:22,760
We get that data with our this user info that we use are more info.

57
00:03:22,770 --> 00:03:30,150
So for now, I just simply copied so with this user, more info on to access our field them they have

58
00:03:30,150 --> 00:03:31,710
already found the filename.

59
00:03:31,710 --> 00:03:35,950
If you go to our model into the model I have defined, the filename will be as a Facebook.

60
00:03:36,190 --> 00:03:36,500
Right.

61
00:03:36,630 --> 00:03:44,490
So now I just simply copied and with this user info I want to display our Facebook ideal is to be visible.

62
00:03:44,490 --> 00:03:47,670
And also I have to do I have to display our emails.

63
00:03:47,820 --> 00:03:50,300
That means here also that I don't of the profile image.

64
00:03:50,610 --> 00:03:55,560
So if you want to add this profile image, then you have to add some function for this one.

65
00:03:55,560 --> 00:04:01,240
If you go to that, you waddell's and do you are the Sadir, you have to define input.

66
00:04:01,260 --> 00:04:07,680
Some of the functions like here I defined as a form and into that Django Django, they have also the

67
00:04:07,680 --> 00:04:12,330
conf and here I am from here I want to input and then the settings.

68
00:04:13,480 --> 00:04:14,940
OK, you have to import it.

69
00:04:14,940 --> 00:04:25,410
And also from Django, from Django and they have also on that country country and that the static files.

70
00:04:28,440 --> 00:04:35,120
OK, static files, and they have also the wall tells you what else, and from here you have to import,

71
00:04:35,430 --> 00:04:41,340
you have to import that static, all the data that is static so that pretty much common things every

72
00:04:41,340 --> 00:04:42,720
time you have to actually use it.

73
00:04:42,750 --> 00:04:46,200
So then also you have to define all of the static files.

74
00:04:46,200 --> 00:04:47,180
You are pattern.

75
00:04:47,190 --> 00:04:53,370
So the simple, definitive static files underscore your order pattern.

76
00:04:55,020 --> 00:04:56,120
OK, well, patterns.

77
00:04:56,250 --> 00:05:02,670
So here, make that sure you add two of this and then also you have to define our D.C. patterns, or

78
00:05:02,670 --> 00:05:04,260
in particular after this.

79
00:05:04,440 --> 00:05:09,370
After this you have to define, as you are told, sorry, you are old patterns.

80
00:05:09,390 --> 00:05:16,370
So with this you are a pattern here you have to add as a plus and the equal that means after this automatically,

81
00:05:16,370 --> 00:05:18,300
which will be added our dispersion.

82
00:05:18,340 --> 00:05:22,030
So I just simply defined the plastic rule and then our static files.

83
00:05:24,000 --> 00:05:28,590
OK, that means this is static files with these static files and that is our usual pattern.

84
00:05:28,800 --> 00:05:30,360
And we do see a pattern here.

85
00:05:30,360 --> 00:05:31,380
We have to add it.

86
00:05:31,380 --> 00:05:39,090
And then also we have to define another liberal patterns and then blasts and they go and then it's static.

87
00:05:39,960 --> 00:05:41,170
So this is static.

88
00:05:41,190 --> 00:05:46,260
Here we have to define our I have already import our settings so the settings will be now needed.

89
00:05:46,710 --> 00:05:51,150
Since these static position, we have to define the settings so into the settings.

90
00:05:51,150 --> 00:05:57,060
We have to define our two of the things that I have already declared to have this in our Bozic.

91
00:05:57,060 --> 00:06:04,680
If you go to the setting, in the setting here and here, you can see I have already defined as a media

92
00:06:04,680 --> 00:06:09,100
route and also I have defined that media you will see with the material.

93
00:06:09,150 --> 00:06:11,520
I have already defined our appropriate folder name.

94
00:06:11,530 --> 00:06:12,910
That means this media folder.

95
00:06:13,200 --> 00:06:15,420
So here now we have to add to this.

96
00:06:15,450 --> 00:06:22,020
OK, so now what I want to do, I want to use this media model so you know where you are in this area

97
00:06:22,020 --> 00:06:23,010
after the settings.

98
00:06:23,010 --> 00:06:27,210
I want to access that media model and also our documents throughout.

99
00:06:28,260 --> 00:06:28,800
Sorry.

100
00:06:31,440 --> 00:06:40,800
And also here we have to define the final document should document underscore route into the documents

101
00:06:40,800 --> 00:06:44,400
stored with the setting, OK, with the settings.

102
00:06:44,400 --> 00:06:48,270
We have to also define our another word through to the setting.

103
00:06:48,270 --> 00:06:50,370
I have defined also the media rules.

104
00:06:50,370 --> 00:06:51,600
I have to also add it.

105
00:06:51,600 --> 00:06:53,070
So I just simply add define.

106
00:06:53,070 --> 00:06:53,850
I would really erode.

107
00:06:54,180 --> 00:06:57,290
So if you want to access these images, you have to add this.

108
00:06:57,300 --> 00:07:00,060
OK, so I just simply defined the things on here.

109
00:07:00,390 --> 00:07:02,340
So now we can actually use our email.

110
00:07:02,370 --> 00:07:09,120
So now if you go to our index into the index after that, that means after that Facebook profile here,

111
00:07:09,120 --> 00:07:10,590
I want to do I want to use it.

112
00:07:10,600 --> 00:07:14,330
So just simply defined as images and the images I see.

113
00:07:14,340 --> 00:07:18,840
First of all, here we have to define out all that our images in our this folder area.

114
00:07:18,840 --> 00:07:19,140
Right.

115
00:07:19,390 --> 00:07:20,520
That means there is a media.

116
00:07:20,530 --> 00:07:22,410
So here we have to define that media.

117
00:07:22,630 --> 00:07:31,050
I just simply define that media so that we don't need this all the text so that the media image, the

118
00:07:31,050 --> 00:07:31,620
idea.

119
00:07:32,340 --> 00:07:35,870
And after this media here, we have to define our path.

120
00:07:35,890 --> 00:07:39,450
So here I have already take all the data from here.

121
00:07:39,450 --> 00:07:42,740
I have already defining it so that our user more info.

122
00:07:42,750 --> 00:07:49,290
So with this user, more info like with this user, more info, I want to access our filename or filename

123
00:07:49,290 --> 00:07:50,400
as a profile picture.

124
00:07:50,490 --> 00:07:51,780
I just simply copied.

125
00:07:52,170 --> 00:07:55,060
And now here I just simply define our profile picture.

126
00:07:55,110 --> 00:07:58,440
OK, that is a dot and then our profile picture perfect.

127
00:07:58,950 --> 00:08:00,840
So that's all you have to do.

128
00:08:00,870 --> 00:08:02,330
So now let's check this out.

129
00:08:02,340 --> 00:08:04,920
It should be work like it is here to save all.

130
00:08:05,910 --> 00:08:07,050
Shake it fast.

131
00:08:09,410 --> 00:08:15,560
So it's not getting sounds at all, you know, you are able to attribute media, you are I can see if

132
00:08:15,560 --> 00:08:20,230
you go to our you are still so into that you are.

133
00:08:20,240 --> 00:08:22,190
Well, that is a media.

134
00:08:22,190 --> 00:08:26,330
You are like you see, I actually copy it, but maybe it's missing.

135
00:08:27,080 --> 00:08:28,100
That is actually the media.

136
00:08:28,100 --> 00:08:29,380
You are still OK.

137
00:08:29,990 --> 00:08:33,010
So I have to do I have to as a media while.

138
00:08:33,950 --> 00:08:36,440
Now, let's check this out again, click to save all.

139
00:08:37,720 --> 00:08:38,620
Check this again.

140
00:08:40,700 --> 00:08:46,190
And better, I want to run some of the things on here than it should be actually run this Sarvodaya

141
00:08:46,190 --> 00:08:46,460
game.

142
00:08:48,820 --> 00:08:53,400
Yeah, obviously, it's not perfect, so now let's check this out if you don't go here right now.

143
00:08:53,440 --> 00:08:56,110
I'm already locked inside the log out from here.

144
00:08:57,900 --> 00:09:03,780
And there is a register and there is a law, so no one to do and locking with the Karzai and then I

145
00:09:03,790 --> 00:09:04,890
defend the password.

146
00:09:04,890 --> 00:09:06,430
One, two, three, four, five.

147
00:09:07,040 --> 00:09:08,210
The locking.

148
00:09:09,000 --> 00:09:10,170
Yes.

149
00:09:10,170 --> 00:09:16,320
Now, because free now showing our appropriate these user details that the user username is visible

150
00:09:16,530 --> 00:09:19,580
and also this user email address is visible.

151
00:09:19,590 --> 00:09:23,760
That is our profile that the Facebook profile link here, you can see this by default, getting our

152
00:09:23,760 --> 00:09:27,770
D-Link as a every dot com and the test, and that is actually the mails.

153
00:09:28,110 --> 00:09:30,940
So be trying to do and define some of the wide for this image.

154
00:09:31,470 --> 00:09:33,530
So that is our image.

155
00:09:33,600 --> 00:09:38,520
I have defined in our index simply the index area here after this.

156
00:09:38,580 --> 00:09:43,440
So here after this, I want to defend another wide, OK?

157
00:09:43,450 --> 00:09:45,900
I just simply defend all the way to the 200 pixel.

158
00:09:47,400 --> 00:09:49,020
Now click here to save all.

159
00:09:50,480 --> 00:09:56,900
And now refresh it again, yeah, it's not perfect, so friend, I hope you can understand about it.

160
00:09:56,900 --> 00:10:00,000
And also I have created another user, Azarian.

161
00:10:00,020 --> 00:10:05,900
So now if you get a log out so you can see now it's actually showing us that you are not logged in.

162
00:10:05,900 --> 00:10:09,500
So that is actually the condition I have defined right into the index.

163
00:10:09,500 --> 00:10:10,640
I have defined that condition.

164
00:10:10,640 --> 00:10:14,540
If this user is not authenticated, then Aless will be displayed.

165
00:10:14,540 --> 00:10:15,040
This one.

166
00:10:15,440 --> 00:10:16,960
That means that you are not logging.

167
00:10:17,120 --> 00:10:17,480
Right.

168
00:10:17,720 --> 00:10:20,420
So now you can see snowshoeing with this primary.

169
00:10:20,450 --> 00:10:24,470
One of that alert I have used with this system showing as you are not locked in.

170
00:10:24,920 --> 00:10:27,920
So now there is a register option and there is a logging option.

171
00:10:28,060 --> 00:10:36,170
Right now, the logging with this user, Azarian, like I Ardian, and then maybe a different password

172
00:10:36,170 --> 00:10:37,910
is one, two, three, four or five.

173
00:10:38,090 --> 00:10:39,140
Click as the logging.

174
00:10:40,530 --> 00:10:45,390
Yeah, you can see snowshoeing as a high orien, and that is actually the email address visible, the

175
00:10:45,390 --> 00:10:50,610
profile that in the Facebook profile is visible and also is not displayed that image.

176
00:10:51,090 --> 00:10:55,440
So I don't know if you clear the logo successfully, log out if you want to, at the registers right

177
00:10:55,440 --> 00:11:02,670
now to find out that it is still used as a Udemy and then password, one, two, three, four, five,

178
00:11:03,030 --> 00:11:08,040
and then defined as you do me at Gmail dot com.

179
00:11:08,070 --> 00:11:13,860
So they step up one of the email at the centre use and then I define as a Facebook enemy.

180
00:11:14,790 --> 00:11:18,310
So they step up one of the Facebook Eyedea and I choose some of the emails.

181
00:11:18,330 --> 00:11:21,740
So right now, for this purpose, I'm actually using this type of one of the emails.

182
00:11:22,110 --> 00:11:26,730
So right now I just select this one, click an open because I register.

183
00:11:28,340 --> 00:11:34,250
Yes, you can see suffering as a congratulation registration as successfully done, so now we are successfully

184
00:11:34,290 --> 00:11:41,030
registered now and to locking our you do me as a username and password.

185
00:11:41,030 --> 00:11:42,440
One, two, three, four, five.

186
00:11:43,080 --> 00:11:44,270
Clear the logging.

187
00:11:46,340 --> 00:11:52,730
Yes, you can see in Hidemi is visible and then also showing our email address and you can see there

188
00:11:52,730 --> 00:11:59,390
is a profile showing us a Facebook dot com slash you do me and also, you know, perfectly showing our

189
00:11:59,420 --> 00:12:01,630
specific this user profile picture.

190
00:12:01,640 --> 00:12:02,730
So far, the same purpose.

191
00:12:02,750 --> 00:12:04,930
I'm using this type of the profile picture.

192
00:12:04,940 --> 00:12:06,550
I think you can well understand about it.

193
00:12:06,860 --> 00:12:11,120
That means, friend, we successfully complete our total authentication system.

194
00:12:11,120 --> 00:12:11,360
Right.

195
00:12:11,630 --> 00:12:17,130
So right now you can a logging, you can select a log out, you can register some of the user friendly

196
00:12:17,150 --> 00:12:18,030
disposition.

197
00:12:18,050 --> 00:12:20,110
Everything is now perfectly working.

198
00:12:20,510 --> 00:12:23,360
So that is one of the most important part in Django.

199
00:12:23,360 --> 00:12:24,440
That is authentication.

200
00:12:24,440 --> 00:12:28,700
So step by step from the sketch I create, we have created it.

201
00:12:28,700 --> 00:12:28,990
Right?

202
00:12:29,330 --> 00:12:31,880
I think you enjoy it very much so.

203
00:12:32,090 --> 00:12:36,110
We successfully complete our Django default authentication system.

204
00:12:36,530 --> 00:12:37,970
Know next video only started.

205
00:12:37,970 --> 00:12:40,640
Another session is about that Class-Based view.

206
00:12:40,640 --> 00:12:46,340
So friend, as I told you, don't worry is step by step will go more deep and our friend of schools,

207
00:12:46,340 --> 00:12:48,590
everything will be very much clear to you.

208
00:12:48,710 --> 00:12:51,430
You will have very little knowledge about the Django.

209
00:12:51,710 --> 00:12:55,160
So thanks for watching and I'll see you in the next video.
