1
00:00:00,180 --> 00:00:01,770
Hello, friend, welcome back.

2
00:00:02,160 --> 00:00:07,580
In a previous video, we successfully complete our locking portions and right now we are locked in.

3
00:00:07,980 --> 00:00:10,640
So in this video, I want to discuss about that lock out.

4
00:00:10,800 --> 00:00:15,450
So if you are working this lock out, first of all, you have to do have to work in our authentication

5
00:00:15,810 --> 00:00:17,700
without integration into the video.

6
00:00:18,000 --> 00:00:18,280
Right.

7
00:00:18,320 --> 00:00:23,880
So before we have already added our two of this matter to the authenticate method and the locking method

8
00:00:23,880 --> 00:00:24,900
from our Django.

9
00:00:24,900 --> 00:00:25,230
Right.

10
00:00:25,230 --> 00:00:26,970
That is also the following the method.

11
00:00:27,420 --> 00:00:29,940
So right now they have put the logo.

12
00:00:29,940 --> 00:00:31,350
They have also another one.

13
00:00:31,680 --> 00:00:36,720
They have another method as a logo right now to do, first of all and load it as a log out.

14
00:00:37,140 --> 00:00:40,420
OK, so make sure you add it so there is a log out method.

15
00:00:40,680 --> 00:00:45,920
So with this log old method very easily, we can actually add that log functionality.

16
00:00:46,290 --> 00:00:49,520
So for the log out, we have to do we have to create another function.

17
00:00:49,860 --> 00:00:55,080
So before doing this, I want to do I want to put some of the link in our D profile that matches the

18
00:00:55,080 --> 00:00:56,680
profile that is a logout area.

19
00:00:57,180 --> 00:01:02,250
So now go to our profile e-mail and under the profile estimate, the result log out.

20
00:01:02,250 --> 00:01:02,530
Right.

21
00:01:02,550 --> 00:01:04,590
So here I want to do to put all of that.

22
00:01:04,590 --> 00:01:09,830
You are l so here if you want to add that you are lighting, you already know about it.

23
00:01:09,900 --> 00:01:18,380
The result you are l and then I want to do I want to put that one of your name as a log out, whatever

24
00:01:18,390 --> 00:01:18,790
you want.

25
00:01:18,820 --> 00:01:20,690
Right now I just make that inside the log out.

26
00:01:20,790 --> 00:01:23,070
So now we have to do we have to create this.

27
00:01:23,440 --> 00:01:24,180
All right.

28
00:01:24,180 --> 00:01:25,560
We have to create this also.

29
00:01:25,560 --> 00:01:27,930
We have to create it in our authenticate.

30
00:01:28,380 --> 00:01:29,430
And that is where you are.

31
00:01:29,880 --> 00:01:31,860
So here I want to do to create it.

32
00:01:31,890 --> 00:01:33,750
I just simply copy it here.

33
00:01:33,750 --> 00:01:34,560
I pasted.

34
00:01:34,560 --> 00:01:37,350
I want to create or I just make that name.

35
00:01:37,920 --> 00:01:44,520
So as a logout, OK, it will be as a logo and the for the good password here.

36
00:01:44,520 --> 00:01:45,630
I also want to add it.

37
00:01:46,130 --> 00:01:47,490
That is OK.

38
00:01:47,850 --> 00:01:52,740
And then I just put that name, I put that name, our name will be as a logo.

39
00:01:53,130 --> 00:01:57,420
So I just simply added that as a logo and into the area.

40
00:01:57,420 --> 00:01:59,340
I name it as the art logout.

41
00:02:00,060 --> 00:02:05,190
OK, that means the artwork also now into the video we have to do we have to create our this method

42
00:02:05,190 --> 00:02:06,420
as an art logout.

43
00:02:06,450 --> 00:02:10,550
So now go to our view and that means authenticate and the view.

44
00:02:11,040 --> 00:02:18,620
So here this portion logging and after this I can be for the registration here I want to do and to create

45
00:02:18,630 --> 00:02:23,730
one of the other function as a day of our function name will be as a logo.

46
00:02:24,030 --> 00:02:27,750
And here what exactly we have to do, we have to pass that request.

47
00:02:27,750 --> 00:02:28,150
Right.

48
00:02:28,170 --> 00:02:35,040
I just simply put that and it's pretty simple without this logout method, with this this method I want

49
00:02:35,040 --> 00:02:39,240
to do, I just simply added our logo method and into the method area.

50
00:02:39,270 --> 00:02:40,960
I just simply pass that request.

51
00:02:40,980 --> 00:02:42,900
OK, so that's all you have to do.

52
00:02:42,900 --> 00:02:45,360
And after that, what it'll be like old.

53
00:02:45,370 --> 00:02:46,890
What exactly should be redacted.

54
00:02:46,950 --> 00:02:48,030
You can also add it.

55
00:02:48,390 --> 00:02:52,650
So I just simply added as a returned and redirect.

56
00:02:52,950 --> 00:02:58,380
So to the return redirect I have also lowered our redirect function.

57
00:02:58,380 --> 00:03:00,570
That means the direct method as a redirect.

58
00:03:00,960 --> 00:03:05,280
So we decided to return the direct I want to do I want to pass some of the page.

59
00:03:05,280 --> 00:03:11,970
That piece wanted will be as a logo, then it shall be rejected which page I want to do and do and should

60
00:03:11,970 --> 00:03:15,450
be subjected to our logging base for the logging.

61
00:03:15,450 --> 00:03:20,070
I have already created one of the you all saw your name as a logging right.

62
00:03:20,250 --> 00:03:23,640
That means you should be directed toward this particular base area.

63
00:03:23,640 --> 00:03:29,460
So for the reasons here, uh, in our view, sorry.

64
00:03:29,490 --> 00:03:30,810
So that is a clear view.

65
00:03:31,020 --> 00:03:34,140
And the view area is to be addicted to our logging base.

66
00:03:34,740 --> 00:03:37,440
OK, I hope is very much clear to your friend.

67
00:03:37,450 --> 00:03:40,410
So that's all you have to do for the log out.

68
00:03:40,440 --> 00:03:42,510
OK, so now let's check this out.

69
00:03:42,510 --> 00:03:46,860
If you not to save all, first of all, to check their server.

70
00:03:51,030 --> 00:03:59,160
Yeah, you can see this appropriately running now when you free this space and now go to a logout.

71
00:03:59,490 --> 00:04:04,260
Yes, you can see it's not perfectly locked out and it also needs to be logout.

72
00:04:04,530 --> 00:04:09,460
I just simply added that as a return redirect with the cataloging base.

73
00:04:09,660 --> 00:04:12,270
So now the system perfectly adequate to a logging base.

74
00:04:12,750 --> 00:04:16,640
So now from here you can log in and also from here you can log out.

75
00:04:16,640 --> 00:04:22,500
So I just created as a Arion Etiwanda, three, four, five as a logging.

76
00:04:23,340 --> 00:04:26,940
Yeah, we successfully logged in because a log out.

77
00:04:27,090 --> 00:04:27,450
Yeah.

78
00:04:27,450 --> 00:04:28,950
We successfully now logged out.

79
00:04:29,220 --> 00:04:35,130
And when you log, no difference automatically our disspain, which is nothing as of my account and

80
00:04:35,130 --> 00:04:36,690
also into the profile area.

81
00:04:36,690 --> 00:04:40,400
If you want to display your name, that means your username.

82
00:04:40,620 --> 00:04:47,310
So I just simply first of all, logging, because logging right now into the main media, if you want

83
00:04:47,310 --> 00:04:52,860
to display which user is already locked in, you can also display that is also the follow one with the

84
00:04:52,860 --> 00:04:53,220
user.

85
00:04:53,220 --> 00:04:56,310
We can actually did that work so far displayed?

86
00:04:56,310 --> 00:04:59,360
We have to go to our profile so that the name area.

87
00:04:59,370 --> 00:05:08,370
So here and they are going to the PAETEC, I just name it as a log in by logging by and then our user

88
00:05:08,370 --> 00:05:08,610
name.

89
00:05:08,640 --> 00:05:14,640
OK, so here if you want to display it is pretty simple with the user, with this user.

90
00:05:14,640 --> 00:05:20,220
They have, as I told you in Django, in our admin area, they have the default of the field as a user

91
00:05:20,220 --> 00:05:20,490
name.

92
00:05:20,490 --> 00:05:25,680
So I know what to do and to display our user name that this user user name, which will be visible,

93
00:05:26,430 --> 00:05:28,380
no Google Savol.

94
00:05:28,680 --> 00:05:35,570
And now if you refresh it now, you can see it's not perfectly displayed as a log thing by Arion.

95
00:05:36,240 --> 00:05:39,230
So here you can do ads on the V-Tech, then it'll be better.

96
00:05:39,240 --> 00:05:45,840
I want to make that as a board of reference, so just simply got it.

97
00:05:45,840 --> 00:05:48,830
And here I posted that they are posted.

98
00:05:48,840 --> 00:05:53,400
So I just to save also a little different with this user, you have to access that username.

99
00:05:53,400 --> 00:05:56,550
So this user name actually in our admin area.

100
00:05:56,550 --> 00:06:01,440
So obviously I have already discussed about that things with you into the admin area that have on the

101
00:06:01,440 --> 00:06:04,350
table as user table and user table area.

102
00:06:04,350 --> 00:06:11,010
They have the by default on the table feel as if username, email, first name, last name so you can

103
00:06:11,010 --> 00:06:12,210
actually access it.

104
00:06:12,210 --> 00:06:15,180
If you want to access it, you can access it with this user.

105
00:06:15,220 --> 00:06:18,090
OK, so you can access it with this user.

106
00:06:18,090 --> 00:06:21,770
And right now I am to display our filename at the user name.

107
00:06:21,780 --> 00:06:25,940
So right now if you refresh it, yeah.

108
00:06:26,020 --> 00:06:29,340
You can see it's perfectly showing as a locking by the alian.

109
00:06:29,850 --> 00:06:32,030
So I hope friend is very much clear to you.

110
00:06:32,040 --> 00:06:37,620
So, you know, next video I want to discuss about one of the other most important things as a messaging

111
00:06:37,620 --> 00:06:38,040
option.

112
00:06:38,370 --> 00:06:44,520
Like from here, if you click on a log out, OK, when you click on the log out, then it will be displayed

113
00:06:44,520 --> 00:06:48,450
some of the message so you can display this message in our next video.

114
00:06:48,450 --> 00:06:50,610
I will show that things with a live example.

115
00:06:51,090 --> 00:06:54,540
So thanks for watching and I will see you in the next video.
