1
00:00:00,210 --> 00:00:01,770
Hello, friend, welcome back.

2
00:00:02,100 --> 00:00:08,370
In a previous video, we set up our total project, so now I want to do want to work for our authentication

3
00:00:08,640 --> 00:00:09,960
and for the authentication.

4
00:00:09,960 --> 00:00:14,010
As I told you before, Django already provided some of the table.

5
00:00:14,070 --> 00:00:18,120
That means here you can see that iCloud is a table and they use a table.

6
00:00:18,120 --> 00:00:23,940
If you go to that user and the user considers that user name an the password field.

7
00:00:23,940 --> 00:00:28,740
And also they have done that field as a first name, the last name and email address.

8
00:00:29,100 --> 00:00:33,720
So right now, I want to do want to create one of the registration pages fast and for the registration

9
00:00:33,720 --> 00:00:39,780
here, if you want to use that username, password, the first name, last name, email address, all

10
00:00:39,780 --> 00:00:43,370
the field is already really made into the Django admin area.

11
00:00:43,530 --> 00:00:45,600
So I have already migrated this table.

12
00:00:45,600 --> 00:00:47,690
So now I want to do I want to use this.

13
00:00:47,700 --> 00:00:52,260
So here with this here I want to do undertake take some of the field like here I want to take one of

14
00:00:52,260 --> 00:00:57,750
the field as a username and for the registration I want to take as a password and the email address.

15
00:00:57,930 --> 00:01:02,190
And also, if you want to add that fast name, that last name, you can also defining it.

16
00:01:02,210 --> 00:01:05,760
So right now for doing this, we have to do we have to work in our model.

17
00:01:05,850 --> 00:01:06,190
Right.

18
00:01:06,480 --> 00:01:09,750
So now go to our project victory so that they are positive.

19
00:01:09,930 --> 00:01:11,190
This right now, we don't need this.

20
00:01:11,700 --> 00:01:14,610
I just remove everything from here, OK?

21
00:01:14,610 --> 00:01:16,200
Just remove everything from here.

22
00:01:16,470 --> 00:01:21,030
And now for doing this, you have to go to our project, into the project.

23
00:01:21,030 --> 00:01:23,430
So that is our application into the application.

24
00:01:23,430 --> 00:01:24,200
That is our model.

25
00:01:24,660 --> 00:01:26,400
So we have to define our model.

26
00:01:26,400 --> 00:01:26,680
Right.

27
00:01:26,940 --> 00:01:29,940
So if you want to create this model, then what exactly we have to do?

28
00:01:29,940 --> 00:01:34,410
So in a previous section, I have already discussed about that things with you for our database, we

29
00:01:34,410 --> 00:01:40,150
have created some of that table so we can create this table, all the things from to this model.

30
00:01:40,500 --> 00:01:45,270
So right now, I have already by default, one of the database tables as a user.

31
00:01:45,270 --> 00:01:48,190
So do the users that have already all that filled.

32
00:01:48,420 --> 00:01:50,450
So now I want to do first of all, use it.

33
00:01:50,760 --> 00:01:55,710
So if you want to use it, we have to do we have to, first of all, import our authentication model.

34
00:01:56,070 --> 00:01:59,380
So they have also all of the authentication model is relevant.

35
00:01:59,440 --> 00:02:08,620
So now I want to call it like I just simply that from and the Django and the Django and Cantrip, OK,

36
00:02:08,860 --> 00:02:09,840
done the country.

37
00:02:09,840 --> 00:02:12,890
And then they have also one of the authentication models.

38
00:02:12,890 --> 00:02:16,670
So I just simply call it as art and the models.

39
00:02:18,450 --> 00:02:21,810
So from our authentication model, I want to do an import.

40
00:02:21,810 --> 00:02:25,160
I want to import one of the model as it user friendly.

41
00:02:25,560 --> 00:02:28,160
So that is actually by default already the element.

42
00:02:28,170 --> 00:02:33,760
So there is an authentication model for the authentication model imposed on the model class as it users.

43
00:02:33,780 --> 00:02:39,780
So with this user, we will get our all that filled with this user will get our username and password

44
00:02:39,780 --> 00:02:42,870
feel FastLane for the last name of the email address.

45
00:02:43,290 --> 00:02:48,810
So right now I want to do only only want to access our user name and then email address and the password.

46
00:02:49,080 --> 00:02:55,680
And also if you want to define solve the external field, like right now they have the only DPL.

47
00:02:55,680 --> 00:02:59,960
So if you want to add external feel like if you want to add that Facebook idea, what else?

48
00:03:00,000 --> 00:03:04,400
If you want to add some of the profile picture, then you can also add that field.

49
00:03:04,410 --> 00:03:06,390
OK, who can do that one step by step?

50
00:03:06,390 --> 00:03:11,070
I will show you the first of all, I want to take out all that user's table, all the fields.

51
00:03:11,070 --> 00:03:15,870
So if you want to defining it, we have to do have to define one of the class fast's.

52
00:03:15,900 --> 00:03:17,190
I just simply defined as a class.

53
00:03:18,450 --> 00:03:19,710
I just simply defined as a class.

54
00:03:19,710 --> 00:03:21,270
Everything will be very much clear.

55
00:03:21,540 --> 00:03:22,680
Don't worry about it.

56
00:03:22,770 --> 00:03:23,910
Just follow that in step.

57
00:03:23,920 --> 00:03:27,960
So here I take one of the class name as a input profile info full.

58
00:03:28,110 --> 00:03:33,840
OK, so I just name it as info so I just create on the class as a user info.

59
00:03:33,840 --> 00:03:35,660
And here what exactly we have to do.

60
00:03:35,660 --> 00:03:40,470
You have to define our models, models and also the model.

61
00:03:40,470 --> 00:03:42,720
We have to integrate with our model class.

62
00:03:42,720 --> 00:03:44,450
So I just simply defined as a model class.

63
00:03:44,550 --> 00:03:44,930
Right.

64
00:03:45,360 --> 00:03:47,520
So that is our class name.

65
00:03:47,520 --> 00:03:50,090
And here we have to do we have to define our own.

66
00:03:50,100 --> 00:03:52,200
I just take one of the variable as it user.

67
00:03:52,440 --> 00:03:57,600
And with this user, I don't want to access all the different models and into these models I want to

68
00:03:57,600 --> 00:04:00,710
define as a one to one field on the relationship.

69
00:04:01,140 --> 00:04:07,620
OK, so I just name it as a one to one want to on field.

70
00:04:08,300 --> 00:04:14,730
So I just simply defined I want one field and here I want to import our model that is a role model as

71
00:04:14,730 --> 00:04:15,300
it users.

72
00:04:15,310 --> 00:04:16,980
I just simply pass it on here.

73
00:04:17,370 --> 00:04:21,720
So this solution will be as a one to one relation with our this class.

74
00:04:21,720 --> 00:04:24,560
That means that user info plans to our user model.

75
00:04:24,570 --> 00:04:26,580
So here I have already improved our user.

76
00:04:26,580 --> 00:04:28,050
So we now use a model.

77
00:04:28,050 --> 00:04:29,580
I want to recreate that relation.

78
00:04:29,850 --> 00:04:34,710
So with this user model, as I told you, with this user model, now we can actually access our all

79
00:04:34,710 --> 00:04:35,270
that field.

80
00:04:35,280 --> 00:04:38,520
So whatever the field you want to take, we can actually take it.

81
00:04:38,700 --> 00:04:39,090
Right.

82
00:04:39,240 --> 00:04:44,880
And also after that, if we as I told you, if you want to add some of the external field like here,

83
00:04:44,880 --> 00:04:47,640
I want to take one of the external field as a Facebook idea.

84
00:04:49,080 --> 00:04:51,230
OK, Facebook underscore idea.

85
00:04:51,510 --> 00:04:58,500
And here with this model sorry, with these models, with these models you have to define and Facebook,

86
00:04:58,500 --> 00:04:59,850
it means that will be as.

87
00:05:00,020 --> 00:05:04,790
You all type, so you have to define all the type so that I'm also not the type as you are.

88
00:05:05,540 --> 00:05:09,590
OK, you are Millfield Field, so just name it as a ball field.

89
00:05:09,800 --> 00:05:15,110
And into this, you will feel that if you want to make this field as a knowledgeable, then you can

90
00:05:15,110 --> 00:05:16,010
also be finding it.

91
00:05:16,040 --> 00:05:18,950
So I just simply defined all of the argument as a blank.

92
00:05:20,360 --> 00:05:22,520
OK, I just make the things blank as a true.

93
00:05:23,360 --> 00:05:27,460
That means there will be as an unknowable and also undertake another one.

94
00:05:27,470 --> 00:05:33,590
So if you want to add another table field as a profile for the profile picture, so just name it as

95
00:05:33,590 --> 00:05:34,190
a profile.

96
00:05:35,210 --> 00:05:37,240
OK, profile, underscore picture.

97
00:05:38,180 --> 00:05:41,560
So I take another one and that will be as a mistake.

98
00:05:41,590 --> 00:05:43,670
So I just simply defined the models.

99
00:05:44,150 --> 00:05:50,180
So with this model sound defined our time for the emails that have also another type as a missed field,

100
00:05:51,050 --> 00:05:52,550
I just simply defined as Ms.

101
00:05:52,550 --> 00:05:56,450
Field, OK, I just simply defined as the image field.

102
00:05:57,840 --> 00:05:59,890
So I just simply defined that image.

103
00:06:00,140 --> 00:06:02,690
And for the image here also, you have to define that.

104
00:06:02,690 --> 00:06:05,600
What exactly these image will be applauded.

105
00:06:05,630 --> 00:06:07,510
OK, so here also we have to define it.

106
00:06:07,520 --> 00:06:13,790
So I just simply defined as upload, upload to upload to its location here.

107
00:06:13,790 --> 00:06:15,830
Also we have to define that location name.

108
00:06:16,160 --> 00:06:19,400
So I just simply define the location as a profile.

109
00:06:21,820 --> 00:06:27,910
Profile, underscore pieces, OK, just name it as a pieces and also I want to do and to make that feel

110
00:06:27,910 --> 00:06:32,170
as a blank slate, as simply defined as a blank and the true.

111
00:06:34,430 --> 00:06:35,950
OK, just make that things as a blank.

112
00:06:35,950 --> 00:06:36,280
True.

113
00:06:36,610 --> 00:06:37,240
Perfect.

114
00:06:37,240 --> 00:06:39,590
So, friend, I hope you can will understand about it.

115
00:06:39,610 --> 00:06:45,310
So with this user model we can actually access all that, our default, all that field as a username

116
00:06:45,520 --> 00:06:52,240
and password, feel fast for last name feel and the email address will and also additionally add another

117
00:06:52,240 --> 00:06:53,170
to this field.

118
00:06:53,470 --> 00:06:55,140
I add another tool of this field.

119
00:06:55,150 --> 00:06:59,530
One is the Facebook idea and that is the profile picture, OK, and Facebook.

120
00:06:59,530 --> 00:07:02,290
And it will be on the wall type for the reasons here.

121
00:07:02,290 --> 00:07:03,790
I'd be fine with this model.

122
00:07:03,800 --> 00:07:07,140
Sevda, these models by default that have that is actually a Django model.

123
00:07:07,330 --> 00:07:08,950
So this Django model lively.

124
00:07:08,950 --> 00:07:13,900
I want to access one of the type as the model field type and I just make the things as an animal for

125
00:07:13,900 --> 00:07:15,160
the reasons I just pass on.

126
00:07:15,160 --> 00:07:17,380
The argument as a blank will be as a true.

127
00:07:17,770 --> 00:07:20,510
And also I take another field as a profile picture.

128
00:07:20,800 --> 00:07:26,110
So with these models, I want to define our type for the emails because the profile picture will be

129
00:07:26,110 --> 00:07:27,190
one of the image type.

130
00:07:27,460 --> 00:07:33,220
So for the regions here, I am defined on the mistype type as the image field and this image will be

131
00:07:33,220 --> 00:07:37,870
uploaded a specific some of the folder name I have defined as a profile pieces.

132
00:07:37,870 --> 00:07:40,220
And I also make that field as an animal.

133
00:07:40,390 --> 00:07:40,780
Right.

134
00:07:41,140 --> 00:07:43,390
I think everything is very much clear to you.

135
00:07:43,810 --> 00:07:47,980
And also here I defined as images will be uploaded one of this folder.

136
00:07:47,990 --> 00:07:49,810
That means the profile picture folder.

137
00:07:49,820 --> 00:07:52,000
So don't we have to we have to create this folder.

138
00:07:52,350 --> 00:07:57,640
So for creating these in our project trajectory that see in our second project, in the second project,

139
00:07:57,640 --> 00:07:59,440
I want to do and to create one of the folder.

140
00:07:59,680 --> 00:08:05,320
And I just named this folder as a media, OK, just name it as a media folder.

141
00:08:05,530 --> 00:08:10,390
And with the media folder here, I want to create another new folder and all this folder name will be

142
00:08:10,390 --> 00:08:11,400
just like that.

143
00:08:11,410 --> 00:08:12,760
That means this folder name.

144
00:08:13,120 --> 00:08:18,500
So into the media folder, I want to create another folder and I just name it as a profile piece.

145
00:08:18,520 --> 00:08:20,940
OK, so now I just simply say it.

146
00:08:20,950 --> 00:08:22,300
So that is our profile piece.

147
00:08:22,630 --> 00:08:29,050
That means all the images will be saved in particular that position that means here and also for defining

148
00:08:29,050 --> 00:08:34,960
all the tasks and the choices for the reasons we in our previous section I have already discussed about

149
00:08:34,960 --> 00:08:39,310
that in situ, you know, a previous section we have created of the static folder.

150
00:08:39,310 --> 00:08:39,580
Right.

151
00:08:39,850 --> 00:08:43,780
So now for this project, I also want to do I want to create on a very static folder.

152
00:08:44,110 --> 00:08:49,060
So, you know, our second project area, I just simply defined as a new folder and I just named this

153
00:08:49,060 --> 00:08:49,720
folder name.

154
00:08:49,720 --> 00:08:52,830
I define a static, OK?

155
00:08:52,930 --> 00:08:54,580
I just name it as a static.

156
00:08:55,450 --> 00:08:57,210
So I just simply defining it.

157
00:08:57,460 --> 00:09:02,820
So now we have to do we have to also add this is static in our setting different.

158
00:09:02,860 --> 00:09:04,270
I think you already remember it.

159
00:09:04,270 --> 00:09:06,910
So that is our setting and it is the setting area.

160
00:09:06,910 --> 00:09:11,830
We have to defining it in particular that area that we see in our OS area.

161
00:09:12,130 --> 00:09:19,390
So I just simply name it at the static is static, underscore directly, OK, that means the static

162
00:09:19,390 --> 00:09:20,020
directly.

163
00:09:20,020 --> 00:09:24,190
And here I defined that OS because we have to also join.

164
00:09:24,340 --> 00:09:33,250
So I just simply define a worst part and then join and join with our base based directly.

165
00:09:33,250 --> 00:09:36,410
And here we have to also define our folder names are folder.

166
00:09:36,420 --> 00:09:38,320
I have defined that name as the static.

167
00:09:39,970 --> 00:09:40,350
Right.

168
00:09:40,360 --> 00:09:45,800
So I just simply defined as a static and also I have created another one, another one as a media.

169
00:09:45,810 --> 00:09:49,530
So for the media I have to also included in our Wayzata.

170
00:09:49,900 --> 00:10:00,820
So now I just name it as a media media underscore directly and then in our ways that path and then join

171
00:10:01,390 --> 00:10:04,780
our base directly.

172
00:10:04,780 --> 00:10:07,390
And here also we have to define our folder name.

173
00:10:07,390 --> 00:10:10,480
I have created one of the folder as a media site.

174
00:10:10,480 --> 00:10:11,740
Just name it as a media.

175
00:10:11,770 --> 00:10:12,100
Right.

176
00:10:12,430 --> 00:10:14,830
And now also we have to add to all this.

177
00:10:14,830 --> 00:10:18,340
We have to have this in our CSC area.

178
00:10:18,340 --> 00:10:21,370
So here we actually did that.

179
00:10:21,370 --> 00:10:22,840
I think you already remember it.

180
00:10:23,260 --> 00:10:27,880
So you can see that is all the access and the JavaScript and the images, all the things we have to

181
00:10:27,880 --> 00:10:29,200
include it on here.

182
00:10:29,590 --> 00:10:32,980
So first of all, I do want to define our aesthetic.

183
00:10:32,980 --> 00:10:36,580
That really that means here we have to define that, our aesthetic files.

184
00:10:39,270 --> 00:10:46,650
OK, static files and static files, I name it as a director radius, right, and then in particular,

185
00:10:46,690 --> 00:10:49,870
that position we have to pass our on this variable.

186
00:10:50,520 --> 00:10:55,220
So here I take it, I take that variable that we apply our aesthetic victory.

187
00:10:55,950 --> 00:11:01,110
So just simply defining it on here, that is exactly a good friend.

188
00:11:01,530 --> 00:11:03,570
And also, we have to add our media.

189
00:11:03,590 --> 00:11:05,430
So here also after that.

190
00:11:05,430 --> 00:11:07,270
After that, we have to add that media.

191
00:11:07,290 --> 00:11:07,680
So better.

192
00:11:07,710 --> 00:11:09,240
I just bought out the note for you.

193
00:11:09,810 --> 00:11:11,160
That will be as a media.

194
00:11:14,210 --> 00:11:21,350
OK, that will be as a media and the media do it for you here, we have to define as a media, OK,

195
00:11:21,350 --> 00:11:22,910
media under scrutiny.

196
00:11:24,110 --> 00:11:25,640
So do the media route here.

197
00:11:25,640 --> 00:11:31,700
We have to define our media directly, media directly and also into the media area.

198
00:11:31,700 --> 00:11:41,480
We have to post our full name as a media media underscore you, ORDELL or you will be in that position

199
00:11:41,660 --> 00:11:47,210
as this will be as a media site, as simply defined that media.

200
00:11:47,800 --> 00:11:51,680
OK, so make sure you add your all the static folder.

201
00:11:51,690 --> 00:11:53,450
That is a static folder I have created.

202
00:11:53,450 --> 00:11:56,450
And also I have created another folder as a media.

203
00:11:56,810 --> 00:12:00,970
I also added our media and also I added two of these in our choice area.

204
00:12:01,460 --> 00:12:07,610
So that is actually our way is the way as I have defined two of this means I have joined our baseball

205
00:12:08,000 --> 00:12:12,760
with the baseball, I have joined our static this folder name and the media folder name.

206
00:12:13,370 --> 00:12:15,040
So now go to our model again.

207
00:12:15,080 --> 00:12:19,660
That means, you know, our locking up and the locking up, that is our models into this model said,

208
00:12:19,670 --> 00:12:22,460
yeah, I want to add one of those team.

209
00:12:23,030 --> 00:12:24,270
So I just take one of those.

210
00:12:24,270 --> 00:12:32,660
Eighteen is Espace, double double line, double underscore and then Estin and then double on score.

211
00:12:32,660 --> 00:12:34,910
And here I defined that is seen as a self.

212
00:12:36,470 --> 00:12:37,940
So that is self.

213
00:12:37,940 --> 00:12:39,860
And here I want to do a return.

214
00:12:40,250 --> 00:12:43,760
I want to return our self and to the self here.

215
00:12:43,760 --> 00:12:45,550
I want to return our disposer.

216
00:12:45,590 --> 00:12:50,990
OK, so here I want to define that user and that is here to help define our one to one field, one of

217
00:12:50,990 --> 00:12:53,810
the relationship and in particular that position.

218
00:12:53,810 --> 00:12:55,370
I want to define our user.

219
00:12:55,370 --> 00:12:56,620
That means our user model.

220
00:12:56,630 --> 00:13:03,200
So into the user, into the user model area, I want to define our user name, user name.

221
00:13:03,200 --> 00:13:04,760
That means that is actually our user.

222
00:13:04,760 --> 00:13:06,260
That means this user model.

223
00:13:06,260 --> 00:13:08,790
And also here I define our user names.

224
00:13:08,790 --> 00:13:12,140
So whatever the things will define that in our user name area.

225
00:13:12,140 --> 00:13:15,170
So we will actually access this user name without this user.

226
00:13:15,260 --> 00:13:18,880
OK, and also here I define as a one to one field.

227
00:13:19,160 --> 00:13:24,290
So here, if you want to define this type of audition's when this user will be deflected automatically,

228
00:13:24,290 --> 00:13:29,640
this user related, all that our Facebook idea or the profile picture will be selected.

229
00:13:29,660 --> 00:13:34,550
OK, so if you want to define this type of condition in our previous session, I have already discussed

230
00:13:34,550 --> 00:13:35,630
about that things with you.

231
00:13:35,870 --> 00:13:42,290
So now also you can define it like I just name it as the on the select right on Dilek.

232
00:13:42,290 --> 00:13:47,840
And then with these models, with these models you have to define as a cascade.

233
00:13:50,250 --> 00:13:55,380
Cascade, so this cascade, as I told you, when this user will be elected, this user related, all

234
00:13:55,380 --> 00:14:00,040
that Facebook information, that means that you are ill and also profile will with elected.

235
00:14:00,360 --> 00:14:02,610
So I just simply defined as a cascade.

236
00:14:02,880 --> 00:14:04,030
So that is our own delay.

237
00:14:04,070 --> 00:14:06,120
So it is only legs with this model.

238
00:14:06,120 --> 00:14:07,710
I define that concept perfect.

239
00:14:08,310 --> 00:14:11,550
And also friend here, I'm using that image to feel right.

240
00:14:11,580 --> 00:14:14,640
So here we will applaud that images for day.

241
00:14:14,640 --> 00:14:20,040
If you want to use that image, then you have to do you have to install one of the package so that no,

242
00:14:20,040 --> 00:14:22,260
there have also in Django, they have done the package.

243
00:14:22,270 --> 00:14:30,150
So and I just started I just opened our terminal and go to our positive pretty fast as a CD and then

244
00:14:30,150 --> 00:14:32,340
my second project.

245
00:14:32,640 --> 00:14:36,090
And here I want to install one of the packages for the images.

246
00:14:36,090 --> 00:14:43,380
And if you want to uninstall it, they have also the command line as a beep and then install a beep

247
00:14:43,380 --> 00:14:44,860
install and that below.

248
00:14:45,900 --> 00:14:48,000
So that is actually the pilot, one of the packages.

249
00:14:48,000 --> 00:14:52,000
So these packages, if you want to working with the images, then you have to install it.

250
00:14:52,290 --> 00:14:58,470
So that is actually the command as a people install and that below as the enter and then it should be

251
00:14:58,470 --> 00:14:59,190
downloaded.

252
00:14:59,190 --> 00:15:04,140
All the files from the Internet make sure you are connected to the Internet and should be downloading

253
00:15:04,140 --> 00:15:05,730
and install it in your system.

254
00:15:06,030 --> 00:15:09,620
And here you can see your friend is showing us a requirement already satisfied.

255
00:15:09,630 --> 00:15:11,380
That means I have already installed it.

256
00:15:11,400 --> 00:15:16,200
So far, the results e actually showing that things as a requirement already satisfied rather than it

257
00:15:16,200 --> 00:15:18,680
should be downloaded all the files onto the Internet.

258
00:15:18,690 --> 00:15:22,740
So I have already install it for the reasons actually it's not showing like that way that there is a

259
00:15:22,740 --> 00:15:26,750
requirements already satisfied and then our next president will be here.

260
00:15:26,760 --> 00:15:28,140
I have defined that model.

261
00:15:28,140 --> 00:15:30,210
So that is our class as a user info.

262
00:15:30,480 --> 00:15:34,200
So now we have to do here using the default on right.

263
00:15:34,200 --> 00:15:36,510
That means default admin into the admin.

264
00:15:36,510 --> 00:15:38,100
They have already all the things.

265
00:15:38,340 --> 00:15:40,370
So now we have to do we have to register it.

266
00:15:40,710 --> 00:15:43,650
So if you want to register it, then you have to go through your application.

267
00:15:43,660 --> 00:15:46,680
That means a logging application into the logging application.

268
00:15:46,690 --> 00:15:47,820
That is our admin type.

269
00:15:48,240 --> 00:15:50,220
And would that been area you have to do?

270
00:15:50,220 --> 00:15:52,410
First of all here, you have to load it in.

271
00:15:52,460 --> 00:15:56,850
That is the imported side just simply defined as a form and then our application.

272
00:15:56,850 --> 00:16:00,540
That means that a logging application into the logging app and that is our model.

273
00:16:00,590 --> 00:16:00,840
Right.

274
00:16:01,110 --> 00:16:03,090
So now I to do and first of all, load it.

275
00:16:03,090 --> 00:16:05,370
So here I define as a logging application.

276
00:16:05,970 --> 00:16:09,000
That means the logging app into the logging app that is our models.

277
00:16:09,580 --> 00:16:11,160
So just simply defended the models.

278
00:16:11,400 --> 00:16:17,880
And then I want to do and import what so from our logging application that is our models into this model

279
00:16:17,880 --> 00:16:20,130
that I have created this class as a user info.

280
00:16:20,490 --> 00:16:22,590
So now I have to do I have to register it.

281
00:16:22,950 --> 00:16:24,510
So no, I just simply copied.

282
00:16:24,510 --> 00:16:28,770
And now in our admin here, I import our these user info class.

283
00:16:28,950 --> 00:16:29,270
Right.

284
00:16:29,520 --> 00:16:34,110
So now I want to do and register it so that you can see they have also some of the comments on the register,

285
00:16:34,110 --> 00:16:35,100
your model here.

286
00:16:35,370 --> 00:16:41,550
So no, I want to register it in particular that position that is the admin and the side into the admin

287
00:16:41,550 --> 00:16:41,910
side.

288
00:16:41,910 --> 00:16:47,820
We have to register, register and here I have to do I have to register it.

289
00:16:47,820 --> 00:16:49,860
So that is our user info.

290
00:16:50,430 --> 00:16:55,980
So in particular, that position I want to do and register it like a friend of mine this year you register

291
00:16:55,980 --> 00:16:59,210
it and after that we have to do we have to migrate it again.

292
00:16:59,550 --> 00:17:03,210
So now I just click as a save all because of all in our modules area.

293
00:17:03,210 --> 00:17:04,860
I have already defined some of the fields.

294
00:17:04,860 --> 00:17:05,190
Right.

295
00:17:05,460 --> 00:17:09,570
So now I have already addressed some of the fields and now we have to do we have to migrate it.

296
00:17:09,750 --> 00:17:12,450
So if you want to migrate it, I think you already know about it.

297
00:17:12,460 --> 00:17:16,070
So in particular, that folder that we see in our second project.

298
00:17:16,350 --> 00:17:24,930
So here I want to define as a magnet, as a file and the menace Lotfy and the migrate to enter.

299
00:17:25,980 --> 00:17:28,920
Now you can see it's not showing as invalid Centex.

300
00:17:28,920 --> 00:17:34,560
You know what this self that we see in our models into the models here, you can see I didn't defend

301
00:17:34,560 --> 00:17:35,190
that kolon.

302
00:17:35,190 --> 00:17:36,980
So here you have to define that gluon.

303
00:17:37,020 --> 00:17:39,270
OK, so it is very much helpful.

304
00:17:39,270 --> 00:17:42,240
You can see when you actually get any arrow automatically, it'll be displayed.

305
00:17:42,240 --> 00:17:45,780
This error identified that here I am missing that column.

306
00:17:45,780 --> 00:17:48,510
So you can see it's now perfectly now showing.

307
00:17:48,510 --> 00:17:49,800
So I just updated it.

308
00:17:50,190 --> 00:17:52,020
Now click the save all again.

309
00:17:52,920 --> 00:17:54,720
No one to do and run it again.

310
00:17:55,230 --> 00:17:59,310
So that is the fire and the minus five that magnetically going to enter.

311
00:18:00,360 --> 00:18:07,740
And also here, showing us a return self used to have that I unexpected this invented block, so in

312
00:18:07,740 --> 00:18:08,810
particular that area.

313
00:18:08,820 --> 00:18:13,280
So here you have to do here to define these things on here, OK?

314
00:18:13,350 --> 00:18:14,520
So that is actually expected.

315
00:18:14,520 --> 00:18:17,400
Some of the blocks are just simply defining it on here.

316
00:18:18,300 --> 00:18:20,090
Now, let's check this out again.

317
00:18:20,100 --> 00:18:24,340
So if you actually face on that road, then you have to rely on it.

318
00:18:24,360 --> 00:18:29,260
OK, so here I have actually missing it and also I have defined some the expenses on here.

319
00:18:29,580 --> 00:18:33,630
So for the reasons here, I have to pass that things to that position.

320
00:18:33,900 --> 00:18:35,210
So I just simply pass it.

321
00:18:35,610 --> 00:18:38,330
And now let's check this out again.

322
00:18:38,340 --> 00:18:42,420
I just click at the Save All Again, migrated again.

323
00:18:42,430 --> 00:18:43,740
Click on the enter.

324
00:18:44,840 --> 00:18:50,570
Yes, now I can see Snowplough perfectly magnetised, and after that, our second Kleinsorge second

325
00:18:50,570 --> 00:18:56,390
line, I think you already know about it as a big pie and that man is not pie.

326
00:18:56,660 --> 00:18:58,550
And that make migration's.

327
00:19:00,710 --> 00:19:05,910
Migrations, and then we have to define our application and application name as a logging.

328
00:19:06,920 --> 00:19:07,370
Right.

329
00:19:07,400 --> 00:19:09,110
Logging under escort app.

330
00:19:09,950 --> 00:19:13,160
Is simply defined as a free man as start by.

331
00:19:13,160 --> 00:19:17,980
And that make migrations and the logging app to enter.

332
00:19:18,890 --> 00:19:22,710
Yeah, you can see it's now successfully generated our this user model.

333
00:19:22,730 --> 00:19:27,580
That means that user model I have created as a user info, it's not successfully created this model.

334
00:19:27,890 --> 00:19:33,680
And now also after that we have to do have to run our migrate again that modify Manna's fight and the

335
00:19:33,680 --> 00:19:35,300
migrate click on the enter.

336
00:19:36,380 --> 00:19:40,940
Now everything is perfect, so no one to turn to check it, so for checking this, we have to run our

337
00:19:40,950 --> 00:19:46,510
site so simply we find the pie and that man is Dot Fi and then Ron server.

338
00:19:47,920 --> 00:19:49,010
We're going to enter.

339
00:19:51,850 --> 00:19:58,510
Our server is now running no go to our side and here right now, I want to refresh all that minigame.

340
00:20:00,120 --> 00:20:05,990
Now go to our home, yes, now can see that is actually all locking up and here I have created one of

341
00:20:06,000 --> 00:20:08,680
the migration tables that is actually our user info.

342
00:20:08,700 --> 00:20:08,990
Right.

343
00:20:09,270 --> 00:20:12,510
So if, you know, open the user info, click on the avenue here.

344
00:20:12,510 --> 00:20:14,150
You can see there is that user.

345
00:20:14,430 --> 00:20:16,500
So that is all that user will be visible.

346
00:20:16,500 --> 00:20:21,210
And there is I have defined that Facebook, one of the field up in the Facebook I.D. and also I did

347
00:20:21,210 --> 00:20:24,480
find another name and the regular picture.

348
00:20:24,480 --> 00:20:24,770
Right.

349
00:20:25,080 --> 00:20:26,010
So that is our profile.

350
00:20:26,010 --> 00:20:27,300
Picture perfect.

351
00:20:27,300 --> 00:20:30,060
So that is the URL that feed I have defined in our model.

352
00:20:30,070 --> 00:20:33,440
So if, you know, open this model again now, it should be very clear to you.

353
00:20:33,450 --> 00:20:35,280
So that is are all the user.

354
00:20:35,490 --> 00:20:40,710
And I have created our Facebook idea and that is another field as a profile picture.

355
00:20:40,920 --> 00:20:46,950
And also you can see to the esteemed position, I have defined our user and if the user ipass our user

356
00:20:46,950 --> 00:20:47,270
name.

357
00:20:47,280 --> 00:20:47,650
Right.

358
00:20:47,940 --> 00:20:53,220
So now I think you can all understand about it because that is that user and into this user here is

359
00:20:53,220 --> 00:20:54,620
passing that user name.

360
00:20:54,780 --> 00:20:58,350
OK, so for the reasons here, I have actually defined this listing.

361
00:20:58,590 --> 00:21:00,870
So that is our user into this user model area.

362
00:21:00,900 --> 00:21:02,970
So we passed out this user name.

363
00:21:02,970 --> 00:21:08,110
So now you can see something, our user name, and that is our Facebook ID and the profile picture.

364
00:21:08,370 --> 00:21:13,140
So now I want to do I want to create one of the page for our registration and the registration area.

365
00:21:13,150 --> 00:21:14,760
I want to load our form.

366
00:21:14,790 --> 00:21:17,730
OK, so we can do that work in our next video.

367
00:21:17,760 --> 00:21:19,890
I will show you that things with a living sample.

368
00:21:20,200 --> 00:21:23,580
So thanks for watching and I will see you in the next video.
