1
00:00:00,150 --> 00:00:06,960
Hello, friend will come back in a previous video, I have to show you some of the basic finest texture

2
00:00:06,960 --> 00:00:08,360
of the Django, right.

3
00:00:08,670 --> 00:00:12,880
So now in this video, I want to discuss about how Django actually work.

4
00:00:12,990 --> 00:00:15,740
So right now, if you want to, is very much important.

5
00:00:15,750 --> 00:00:22,020
One of the things you have to know about it, like if you already work with the beef, if you already

6
00:00:22,020 --> 00:00:28,920
work with the Laravel, so they have some of the finest texture in PSP or the Laravel actually, that

7
00:00:28,960 --> 00:00:33,300
use one of the finest texture that called the embassy pattern.

8
00:00:33,420 --> 00:00:33,830
Right.

9
00:00:33,840 --> 00:00:36,860
That means the model view and the controller pattern.

10
00:00:36,990 --> 00:00:41,190
But Django actually use and there is texture pattern that is the MBT.

11
00:00:41,370 --> 00:00:48,230
OK, so I show you like here I open the one of the file.

12
00:00:48,540 --> 00:00:53,600
So it's actually use one of the another architectural pattern as a MBT.

13
00:00:53,730 --> 00:00:57,380
So that is that MBT, not the NVC.

14
00:00:57,600 --> 00:01:01,140
OK, so they have that other file structure pattern that is NVC.

15
00:01:01,470 --> 00:01:07,530
So it means for the M for the model better I just give a bit bigger size.

16
00:01:07,540 --> 00:01:15,040
So that is M for the model, B for The View and C for the controller and same as the triangle.

17
00:01:15,040 --> 00:01:19,590
So that is M for the model, V for the View and T for the template.

18
00:01:19,860 --> 00:01:22,470
So that is actually the phylis texture of the Django.

19
00:01:22,770 --> 00:01:29,910
Like I show you like first of all M for the model, OK, and then the view and then another one is the

20
00:01:29,910 --> 00:01:33,290
template so that they are the template.

21
00:01:33,300 --> 00:01:35,010
So that is actually the ar pattern.

22
00:01:35,010 --> 00:01:37,320
So model view and then template.

23
00:01:37,350 --> 00:01:43,230
So what exactly the model model is used for so related everything which is related with the database.

24
00:01:43,230 --> 00:01:45,700
So that is all that our model.

25
00:01:45,720 --> 00:01:47,730
OK, that means that related.

26
00:01:52,390 --> 00:02:02,200
Related everything with database, so database deleted everything actually managed by this model and

27
00:02:02,200 --> 00:02:09,070
then The View and then another one of the template template is for the actually which actually you view.

28
00:02:09,100 --> 00:02:10,780
OK, that means switch.

29
00:02:13,560 --> 00:02:23,370
Because you view on the show, like if you go to easy learning, easy dot com, b dot com, and here

30
00:02:23,370 --> 00:02:25,170
you can see that there is all of the base.

31
00:02:25,180 --> 00:02:26,360
So that is on the base.

32
00:02:26,370 --> 00:02:26,650
Right.

33
00:02:27,000 --> 00:02:31,550
So here they have the base and here is showing some of the text.

34
00:02:31,560 --> 00:02:37,320
And if you go to that, our being touched since they've been touch here, you can see they're showing

35
00:02:37,320 --> 00:02:38,990
some of the text of the picture.

36
00:02:39,210 --> 00:02:40,860
So that is our template.

37
00:02:41,050 --> 00:02:43,470
OK, so that is actually one of the template.

38
00:02:43,470 --> 00:02:50,550
And then and that if they have any database related issues like here, if you go to that, our all courses

39
00:02:50,760 --> 00:02:52,310
and with all courses area.

40
00:02:52,320 --> 00:02:58,380
So this part that this part actually comes from or from the database, that means I have another background.

41
00:02:58,560 --> 00:03:01,430
And with this background, I actually uploaded that part.

42
00:03:01,440 --> 00:03:05,490
OK, so that is one of the headline and that is the short description.

43
00:03:05,760 --> 00:03:09,820
And also they have the headline and there is some of the short description.

44
00:03:10,170 --> 00:03:13,230
So this actually counts from our database.

45
00:03:13,230 --> 00:03:19,380
So that is actually the database that everything actually managed by this hour, this part that means

46
00:03:19,380 --> 00:03:22,050
it's managed by our this model.

47
00:03:22,230 --> 00:03:23,820
OK, that means the database related.

48
00:03:23,820 --> 00:03:30,360
Everything actually managed by this model and view is means actually control our this model to run the

49
00:03:30,370 --> 00:03:31,010
template.

50
00:03:31,020 --> 00:03:33,560
OK, that means it's actually like as a controller.

51
00:03:33,870 --> 00:03:37,460
So it's not that controller, but you can predict that things as a controller.

52
00:03:37,680 --> 00:03:43,650
So you manage that every data you spend as our this data from our database and display that things on

53
00:03:43,650 --> 00:03:49,110
here, each man is all the data from our database and it's getting all the data from the database and

54
00:03:49,110 --> 00:03:50,490
display that things on here.

55
00:03:50,610 --> 00:03:50,920
Right.

56
00:03:51,210 --> 00:03:53,350
So that is actually managed by this view.

57
00:03:53,820 --> 00:03:55,470
So in general, that is up to the view.

58
00:03:55,470 --> 00:03:59,040
So you can you can write down at the all logic

59
00:04:02,370 --> 00:04:06,300
logical work, you can say, OK, so that is like one of the controller.

60
00:04:09,510 --> 00:04:15,870
So, like as a controller, so all that logical happened, like, is perfectly getting our database

61
00:04:15,870 --> 00:04:21,660
in and getting the data from the database and displayed that started in our Tampa Bay area.

62
00:04:21,660 --> 00:04:22,020
Right.

63
00:04:22,270 --> 00:04:24,050
Is displayed that things on here.

64
00:04:24,360 --> 00:04:27,150
So this procedure actually managed by this view.

65
00:04:27,190 --> 00:04:34,150
So for the reasons here, I just simply dumped it as it all logical work actually completed by our this

66
00:04:34,200 --> 00:04:37,740
view in our MBT pattern, but into the MVC pattern.

67
00:04:37,770 --> 00:04:39,960
What exactly should we do in the embassy?

68
00:04:39,960 --> 00:04:49,520
Perton, if you like, I just make as a model and then view and then there is a controller with a controller.

69
00:04:49,530 --> 00:04:55,020
So if you actually compare both of these, so the model will be that just like that same model will

70
00:04:55,020 --> 00:04:59,340
be just like the same as it will be as a related everything with the database.

71
00:04:59,580 --> 00:05:04,350
And then actually the view and view means actually that is actually the controller work.

72
00:05:04,360 --> 00:05:10,230
OK, well all that logical functional seemed to the embassy pattern, all that logical, functional

73
00:05:10,230 --> 00:05:12,360
actually completed by these controllers.

74
00:05:12,360 --> 00:05:16,110
But in MBT actually is completed by our this view.

75
00:05:16,230 --> 00:05:19,490
OK, and that is our template also into the template.

76
00:05:19,500 --> 00:05:22,320
So that means which base you actually view.

77
00:05:22,560 --> 00:05:26,870
So this base view in our embassy pattern, that is our view.

78
00:05:27,420 --> 00:05:34,020
OK, friend, I hope you get some of the basic idea what exactly the difference between the embassy

79
00:05:34,020 --> 00:05:35,020
and the embassy.

80
00:05:35,200 --> 00:05:39,150
So right now that is our structure and it is right now we don't need this.

81
00:05:39,150 --> 00:05:43,130
I hope if you already know about it a little bit, that embassy pattern.

82
00:05:43,410 --> 00:05:45,170
So that is actually our embassy pattern.

83
00:05:45,180 --> 00:05:47,320
If you compare it, it will be just like that.

84
00:05:47,340 --> 00:05:51,650
OK, so model will be the same, which is related with the database related.

85
00:05:51,660 --> 00:05:57,210
All the tissues and view is in our embassy that is actually display all the pace.

86
00:05:57,210 --> 00:05:59,370
That means that is actually our all the template.

87
00:05:59,700 --> 00:06:02,550
So if you compare it so that is all the template.

88
00:06:02,550 --> 00:06:02,870
Right.

89
00:06:03,240 --> 00:06:05,030
So that is all that our static data.

90
00:06:05,040 --> 00:06:08,430
So that is all, that is static data that have no connection with the database.

91
00:06:08,430 --> 00:06:11,190
So for the reasons that is actually our all the template.

92
00:06:11,400 --> 00:06:16,770
And if you go to our all calls into the all course area, so there's all that that actually comes from

93
00:06:16,770 --> 00:06:22,260
one of the database, that means all of this database is get all the data from the database and display

94
00:06:22,260 --> 00:06:27,060
that things on here and also get all the data from our database.

95
00:06:27,060 --> 00:06:29,630
And that is picture is also comes from the database.

96
00:06:29,940 --> 00:06:32,610
So this way it actually is related with the database.

97
00:06:32,610 --> 00:06:38,550
Everything actually managed by this view, like as a controller, it's actually apply all that logic

98
00:06:38,680 --> 00:06:42,240
work is perfectly sane, some of request to the model.

99
00:06:42,240 --> 00:06:43,430
That means our database.

100
00:06:43,680 --> 00:06:49,740
So through this model is parsed that request and get that request and displayed this data in our D template

101
00:06:49,740 --> 00:06:50,100
base.

102
00:06:50,100 --> 00:06:52,170
That means here it's actually visible.

103
00:06:52,290 --> 00:06:52,620
Right.

104
00:06:52,800 --> 00:06:56,970
So this procedure you actually completed by our D view.

105
00:06:57,090 --> 00:07:00,690
So that is actually w I hope is very much clear to your friend.

106
00:07:00,930 --> 00:07:02,400
So that is our MBT pattern.

107
00:07:02,410 --> 00:07:06,290
So we have to do we have to actually flow out simply this step.

108
00:07:06,690 --> 00:07:06,890
Right.

109
00:07:07,150 --> 00:07:08,940
So just take some of the little idea.

110
00:07:08,940 --> 00:07:11,130
So literally, when will actually work with it?

111
00:07:11,340 --> 00:07:16,560
When you work with the model, when you work with the view, when you when will work for the with the

112
00:07:16,560 --> 00:07:19,680
template, then everything will be more clear to you.

113
00:07:19,830 --> 00:07:22,710
See the next video and we'll discuss about that view.

114
00:07:22,720 --> 00:07:24,870
And also I will discuss about that.

115
00:07:24,870 --> 00:07:31,980
You also can working with this see what else I can show some of the data with using that view in our

116
00:07:31,980 --> 00:07:34,890
next video, I will show you that things with a live example.

117
00:07:35,430 --> 00:07:36,930
So thanks for watching.

118
00:07:36,930 --> 00:07:38,760
I'll see you in the next video.
