1
00:00:00,150 --> 00:00:01,770
Hello, friend, welcome back.

2
00:00:02,100 --> 00:00:05,900
In a previous video, we successfully complete our logout portion.

3
00:00:06,240 --> 00:00:11,120
So now in this video, I want to discuss about one of the most interactive things in Django.

4
00:00:11,130 --> 00:00:12,630
How can display all that?

5
00:00:12,630 --> 00:00:14,100
Your customized message?

6
00:00:14,380 --> 00:00:19,410
OK, so that means when you logged in, there should be displays of the message that you are logged

7
00:00:19,410 --> 00:00:19,650
in.

8
00:00:19,650 --> 00:00:21,960
When you log out, then it will be displayed.

9
00:00:21,960 --> 00:00:24,290
Some of the success say that you are logged out.

10
00:00:24,540 --> 00:00:29,700
And also if you want to put on the validation, OK, if you want to add some of the validation in your

11
00:00:29,700 --> 00:00:35,010
logging area, so can display this type of error message in this video, I will show you that things

12
00:00:35,010 --> 00:00:36,140
with a live example.

13
00:00:36,630 --> 00:00:40,320
So for doing this, they have a if you go to the Django official website.

14
00:00:43,070 --> 00:00:48,530
If you go to that jungle, we shall live side and go here, so I don't need this.

15
00:00:49,820 --> 00:00:53,770
And here they have also the framework as a messaging framework.

16
00:00:53,780 --> 00:00:56,240
So if you know the documentation.

17
00:00:57,860 --> 00:01:08,000
And here, if you start with the messages, messages, framework, so with this message, this framework,

18
00:01:08,000 --> 00:01:09,440
you can actually do that work.

19
00:01:09,470 --> 00:01:11,630
You can see that a text message framework.

20
00:01:11,960 --> 00:01:18,440
So that is are setting everything you can actually find out on here is the messaging messages framework.

21
00:01:18,650 --> 00:01:21,700
So that is actually one of the default Django framework.

22
00:01:21,710 --> 00:01:23,300
So there is a message just framework.

23
00:01:23,330 --> 00:01:25,600
So how can working with this is step by step?

24
00:01:25,610 --> 00:01:26,340
I will show you.

25
00:01:26,360 --> 00:01:35,300
And also, if you search into the Google, if you start with the Django or messages like messages in

26
00:01:35,300 --> 00:01:42,170
Django, if you souce, they have the link as the messages framework, django authentication and also

27
00:01:42,170 --> 00:01:43,240
the apps on the block.

28
00:01:43,670 --> 00:01:47,900
So that is actually the device as a 14 using the messaging framework.

29
00:01:47,900 --> 00:01:53,840
So right now, if you go here, so they have actually one of the clean instructions, how can display

30
00:01:53,870 --> 00:01:54,850
these messages?

31
00:01:55,310 --> 00:01:57,170
So here you can see the sitting area.

32
00:01:57,180 --> 00:01:58,580
We have to add it.

33
00:01:58,580 --> 00:02:04,840
And then also the view Viada, if you want to display that message, you can display like that way.

34
00:02:05,060 --> 00:02:11,570
And also they have some on the tag as a success tag that is actually the template area for the visibility

35
00:02:11,600 --> 00:02:12,530
and visibility.

36
00:02:12,590 --> 00:02:17,130
And then also our borders are bootstrap Snapchat.

37
00:02:17,180 --> 00:02:19,400
That is our setting fire into the setting here.

38
00:02:19,400 --> 00:02:21,150
You can see the apps on the messages stack.

39
00:02:21,440 --> 00:02:26,930
So that is our Alladin for that is our large success warning danger if you want to display all that

40
00:02:26,930 --> 00:02:28,790
ad or message you can displayed.

41
00:02:29,190 --> 00:02:31,590
OK, and that is our business HTML here.

42
00:02:32,120 --> 00:02:35,780
So with this you can actually do that work very easily.

43
00:02:35,900 --> 00:02:40,180
I step by step, I show you like first of all there is a message suggestion malaria.

44
00:02:40,190 --> 00:02:43,010
What exactly you want to visible this message.

45
00:02:43,190 --> 00:02:45,890
OK, so right now actually I just copy it.

46
00:02:46,440 --> 00:02:48,550
So here I want to visible this message.

47
00:02:48,560 --> 00:02:54,640
I just simply copied from here and I want to do all the visible lead in our logging page.

48
00:02:54,660 --> 00:02:58,910
That means here, when you log out here, I want to visible some of the success message.

49
00:02:58,910 --> 00:02:59,280
Right.

50
00:02:59,300 --> 00:03:01,240
So that is all logging page.

51
00:03:01,250 --> 00:03:03,500
Now go to our logging.

52
00:03:03,710 --> 00:03:07,910
That means that is our authenticate and that is our logging.

53
00:03:08,360 --> 00:03:14,030
So don't worry, everything will be very clear to you what I see or how it can actually working with

54
00:03:14,030 --> 00:03:16,970
these messages so that form.

55
00:03:17,000 --> 00:03:21,890
So before that phone, OK, here I want to do the visible or all that message.

56
00:03:22,370 --> 00:03:24,110
So that is also one of the for loop.

57
00:03:24,110 --> 00:03:30,080
And I just said that is one of the and for loop and the loop area that is allowed into the al-arabia,

58
00:03:30,080 --> 00:03:32,240
there is a mass text message.

59
00:03:32,240 --> 00:03:34,340
Text means it should be dynamic.

60
00:03:34,340 --> 00:03:39,170
That means whatever the message text you want to visible if you want to visible that message, text

61
00:03:39,170 --> 00:03:41,260
as a infl if you want to.

62
00:03:41,270 --> 00:03:45,740
So that success is everything when you call it to the message success automatically.

63
00:03:45,770 --> 00:03:47,580
So we display our massive success.

64
00:03:47,600 --> 00:03:54,200
OK, so it'll be actually displayed and also the alert that dismissable, that means there should be

65
00:03:54,200 --> 00:03:56,120
some of the icon of the clause.

66
00:03:56,130 --> 00:04:00,990
You can see that one of the button and the close button from here automatically.

67
00:04:01,010 --> 00:04:07,010
So we loaded and there are close button actually the CrossLink, and that is actually the message.

68
00:04:07,040 --> 00:04:10,060
OK, so with this, you can actually display that message.

69
00:04:10,070 --> 00:04:13,080
So I show you then everything will be more clear to you.

70
00:04:13,190 --> 00:04:19,010
So first of all, here, I just want to display this message in our logging and after that, also in

71
00:04:19,010 --> 00:04:23,590
our setting into the setting by here in this area, we have to we have to add it.

72
00:04:24,020 --> 00:04:25,670
So I just simply copy it.

73
00:04:25,670 --> 00:04:29,870
I just simply copy it from here and now go to our main project.

74
00:04:30,050 --> 00:04:36,140
That means our portfolio will go to the setting and the seating area at the end.

75
00:04:36,860 --> 00:04:40,850
OK, at the end after this here, I just simply paste it, OK?

76
00:04:40,880 --> 00:04:44,240
I just simply pasted that message and that is all that our text.

77
00:04:44,420 --> 00:04:47,180
So now I want to do all the visible visibility like here.

78
00:04:47,180 --> 00:04:50,340
I want to visible that condition into the conditionally.

79
00:04:50,390 --> 00:04:52,520
I just put that condition in our view.

80
00:04:52,520 --> 00:04:52,870
Right.

81
00:04:53,360 --> 00:04:55,190
That means right now we don't need this.

82
00:04:55,190 --> 00:04:59,680
Actually, I just simply remove it the profile as HTML.

83
00:04:59,690 --> 00:05:06,410
So I just take it all in logging and into the authentication, into the authentication.

84
00:05:06,410 --> 00:05:11,660
If you go to that view into the area before here, you can say just put the ls that the pin.

85
00:05:11,660 --> 00:05:15,490
That means whenever you have an appropriate username and password will be visible.

86
00:05:15,740 --> 00:05:20,270
That means you when you put that inappropriate username and password, then it will be displayed on

87
00:05:20,270 --> 00:05:23,130
the PIN message as the invalid username and password.

88
00:05:23,140 --> 00:05:23,390
Right.

89
00:05:23,720 --> 00:05:27,260
So I want to actually display this message with some of the validation.

90
00:05:27,570 --> 00:05:31,660
So if you want to display it, first of all, also here we have to do we have to import it.

91
00:05:31,670 --> 00:05:33,770
That means we have to input that messages.

92
00:05:35,000 --> 00:05:44,600
If you go to that this blog and here you can see that actually you have to add one of the you can see

93
00:05:44,600 --> 00:05:47,490
the level from Django country input messages.

94
00:05:47,510 --> 00:05:49,240
So first of all, you have to import it.

95
00:05:49,250 --> 00:05:51,970
So just simply import it on here.

96
00:05:51,970 --> 00:05:52,940
I just simply paste it.

97
00:05:53,300 --> 00:05:57,200
So now if you want to visible, that message is pretty simple here.

98
00:05:57,580 --> 00:06:02,490
You have to do haplessly display these messages with the success ad or whatever you want.

99
00:06:02,530 --> 00:06:07,580
Right now I just simply copy it and now I want to do in particular that area.

100
00:06:07,590 --> 00:06:13,710
That means L.A., I just simply posted that message, will be sure that message is that is a success

101
00:06:13,710 --> 00:06:14,190
message.

102
00:06:14,190 --> 00:06:20,610
As I told you, they have the sound tags as a box in full success or anything at all.

103
00:06:20,650 --> 00:06:24,440
So right now, to display that error because of what you told me as the error message.

104
00:06:25,230 --> 00:06:31,170
Say just name it as an error message and the error message area with this cheekiest, whatever the message

105
00:06:31,170 --> 00:06:38,100
you want to pass right now to pass on the message, you should be displaying the email or password or

106
00:06:38,340 --> 00:06:39,540
password invalid.

107
00:06:40,080 --> 00:06:42,730
So they step up onto the message itself, obviously.

108
00:06:42,960 --> 00:06:50,910
OK, so now let's check this out if you don't at the Savol and now if you refresh it.

109
00:06:53,100 --> 00:06:57,870
So now I just put all the inappropriate username in appropriate password is a logging.

110
00:06:58,790 --> 00:07:06,000
Yes, you can see friend knows perfectly display, that means the email and the invoice, so it is invalid.

111
00:07:06,020 --> 00:07:08,920
So here that is our message as a message.

112
00:07:09,170 --> 00:07:16,760
Also, I just simply added another token as I just simply added the token as our this arrow.

113
00:07:16,770 --> 00:07:17,070
Right.

114
00:07:17,330 --> 00:07:19,250
So if you want to change it, you can change it.

115
00:07:19,250 --> 00:07:23,040
If you want to make that things as a success, it should be as a different look.

116
00:07:23,090 --> 00:07:24,100
OK, so I just.

117
00:07:24,100 --> 00:07:24,310
Right.

118
00:07:24,320 --> 00:07:31,010
Don't mind using that tag as a Aerotek and request I just bought as an email and the password invalid.

119
00:07:31,280 --> 00:07:37,850
So you can see it's not showing either email and password invalid and it's on display before or after

120
00:07:37,850 --> 00:07:38,570
the blocking.

121
00:07:38,780 --> 00:07:43,600
That means after the logging account, that means, you know, logging pays into the logging page.

122
00:07:43,610 --> 00:07:48,770
If you go into the logging base here, you can see that ejecta the messages on the Falu.

123
00:07:48,890 --> 00:07:53,520
There is a clear message because of all from here so that the clear messages.

124
00:07:53,520 --> 00:07:58,580
So that is actually displayed as a follow up that the messages in message.

125
00:07:58,610 --> 00:08:02,810
So now there is a cloud tag, as I told you, that is all the tag is there right now.

126
00:08:02,820 --> 00:08:06,110
I'm using one of the tag, so I'm using that arrow tag.

127
00:08:06,110 --> 00:08:08,620
If you want to use that success tag, you can use it.

128
00:08:09,080 --> 00:08:15,830
So also that there is a large image as a rule, as a alert, and also that one of the button as a close,

129
00:08:15,950 --> 00:08:17,720
you can see that have also hit the button.

130
00:08:18,110 --> 00:08:20,420
So that is a clue on the button as a close button.

131
00:08:20,660 --> 00:08:24,230
And they're looking across sending link so that one of the spin class.

132
00:08:24,240 --> 00:08:27,260
So that is one of the e-mail tech for the cross-link.

133
00:08:27,560 --> 00:08:29,030
That is the one of the cross icon.

134
00:08:29,130 --> 00:08:35,630
OK, so with this cross icon, you can see that the cross icon and if you click on the console now consistent,

135
00:08:35,630 --> 00:08:36,370
totally gone.

136
00:08:36,380 --> 00:08:39,380
So for the reasons they have also that are allowed.

137
00:08:39,740 --> 00:08:41,710
So that is actually the this Mischler.

138
00:08:42,050 --> 00:08:45,440
OK, so and also there is a clear message display.

139
00:08:45,470 --> 00:08:47,570
So for the reasons are messages display.

140
00:08:47,730 --> 00:08:48,260
Right.

141
00:08:48,260 --> 00:08:50,330
I hope is very much clear to friend.

142
00:08:50,810 --> 00:08:57,350
So that is a clever alert message is perfectly invisible and also needs to be log out there to display

143
00:08:57,350 --> 00:08:59,010
another message better.

144
00:08:59,060 --> 00:09:05,760
I logged in fast Azarian and you do me one, two, three, four, five as a login.

145
00:09:06,470 --> 00:09:07,820
So right now I'm logged in.

146
00:09:07,820 --> 00:09:12,680
So if you click on the log out, then it'll be displayed at one point that another message seems pretty

147
00:09:12,680 --> 00:09:16,460
most simple things in our view in the video.

148
00:09:16,460 --> 00:09:19,610
So when you log out, I just simply pass it right.

149
00:09:19,610 --> 00:09:21,040
There is a log out request.

150
00:09:21,050 --> 00:09:25,150
So here after that log out here, I want to show of the message better.

151
00:09:25,160 --> 00:09:26,510
I just simply copy it.

152
00:09:27,140 --> 00:09:31,410
And after that, when it should be log out, this message will be a success message.

153
00:09:33,530 --> 00:09:39,310
OK, that will be our success tag because volunteers are setting can see of success tech.

154
00:09:39,830 --> 00:09:42,320
So that is our success tag with this geekiest.

155
00:09:42,320 --> 00:09:52,130
I want to do and pass on the message as a logout you or log out like a log out successfully.

156
00:09:54,620 --> 00:09:56,180
So log successfully step up.

157
00:09:56,180 --> 00:10:01,550
One of the messages will be displayed and automatically I shall be displaying all logging areas into

158
00:10:01,550 --> 00:10:04,070
the logging area that we see in a logging base.

159
00:10:04,220 --> 00:10:06,710
Before and after that, our logging.

160
00:10:06,710 --> 00:10:08,750
Your account will be displayed on here.

161
00:10:08,960 --> 00:10:10,670
OK, it's totally dynamic.

162
00:10:11,090 --> 00:10:13,450
Now let's check this out if you like to save all.

163
00:10:14,000 --> 00:10:16,770
So here I have added I want to log out.

164
00:10:16,770 --> 00:10:20,700
Then this coordinates would be perfectly log out without this request.

165
00:10:20,700 --> 00:10:23,440
Then shall we display this message right now?

166
00:10:23,450 --> 00:10:24,200
Let's check this out.

167
00:10:24,200 --> 00:10:27,680
If this refresh the log out.

168
00:10:28,670 --> 00:10:29,320
Yes.

169
00:10:29,330 --> 00:10:36,530
Now, considering now showing our message as a logger successfully and also here I use our success text.

170
00:10:36,530 --> 00:10:38,480
You can see now it's perfectly visible.

171
00:10:38,750 --> 00:10:41,000
I hope you like it very much so.

172
00:10:41,010 --> 00:10:46,750
Now, if you want to use sound the alert, you can use that alert in Django, OK?

173
00:10:46,790 --> 00:10:48,090
That means the alert message.

174
00:10:48,830 --> 00:10:50,340
So that's all you have to do.

175
00:10:50,360 --> 00:10:54,370
So right now, another one for the registration.

176
00:10:54,680 --> 00:10:55,190
So better.

177
00:10:55,460 --> 00:10:58,620
Next video I want to discuss about that registration potions.

178
00:10:58,640 --> 00:11:02,580
That means how you can complete your total registry from here.

179
00:11:02,600 --> 00:11:06,590
That means a user registration so we can do that work in our next video.

180
00:11:06,590 --> 00:11:08,740
I'm sure that things with a live example.

181
00:11:09,260 --> 00:11:12,710
So thanks for watching and I'll see you in the next video.
