1
00:00:00,210 --> 00:00:00,970
Hello, friend.

2
00:00:00,990 --> 00:00:01,820
Welcome back.

3
00:00:01,950 --> 00:00:08,340
Every dynamic Web site they have on the database where you can insert your all the dynamic data into

4
00:00:08,340 --> 00:00:14,230
the database and also from where you read all the data and visible this data in your website.

5
00:00:14,490 --> 00:00:20,220
So in Django, they have also one of the building databases and these database names as a green light.

6
00:00:20,610 --> 00:00:22,550
They're continuing to stall our project.

7
00:00:22,560 --> 00:00:24,570
That means our Django project by default.

8
00:00:24,570 --> 00:00:27,460
You'll get one of the file as a DB and they score light.

9
00:00:27,720 --> 00:00:30,420
So that is one the building database for the Django.

10
00:00:30,450 --> 00:00:32,240
So here now we will use it.

11
00:00:32,490 --> 00:00:36,670
So if you want to use this database, then you have to define that things by the models.

12
00:00:37,050 --> 00:00:38,850
So in this section is step by step.

13
00:00:38,850 --> 00:00:44,130
I will show you how you can create that models and how can working with these models and with this model,

14
00:00:44,130 --> 00:00:49,330
how can connect your database and also read that data and insert that data into the database.

15
00:00:49,710 --> 00:00:54,510
So for now, we will use that our school I.D. default on the Django database.

16
00:00:54,750 --> 00:00:59,070
But here one thinks is life is not enough for the big project.

17
00:00:59,100 --> 00:01:04,170
So if you want to working with the big Bozic, then better to use some of the professional database,

18
00:01:04,200 --> 00:01:06,600
like as a girl or the Mongo DB.

19
00:01:06,900 --> 00:01:09,950
So literally, I will also show you how can working with that is.

20
00:01:10,500 --> 00:01:15,140
So right now I want to working with Django, building one of the database of these guillet.

21
00:01:15,160 --> 00:01:20,460
So if you want to working with these, like if you go to our project, I have already created one of

22
00:01:20,460 --> 00:01:24,220
the application in our project area that is our first applications.

23
00:01:24,280 --> 00:01:24,560
Right.

24
00:01:24,810 --> 00:01:30,450
So every application you will get one of the models like here, you can see that the models seem to

25
00:01:30,450 --> 00:01:31,230
this model here.

26
00:01:31,230 --> 00:01:34,760
You can see also one of the libraries already added.

27
00:01:34,770 --> 00:01:36,900
So that is actually one of the building library.

28
00:01:37,050 --> 00:01:42,450
And into this library, that machine learned models like really all that model related functions, all

29
00:01:42,450 --> 00:01:46,420
that model related content is already added, in particular that area.

30
00:01:46,800 --> 00:01:52,320
So here all that our model related functionality is already added in our model slavery.

31
00:01:52,590 --> 00:01:57,810
So now if you want to compare, is aligned with our traditional database, how this will be look like

32
00:01:58,200 --> 00:01:58,830
like here.

33
00:01:58,830 --> 00:02:06,300
But I saw the quote for you like here that is our traditional scroll code and that is our escalate code.

34
00:02:06,570 --> 00:02:11,700
So into the school code, what exactly we did, like if you that is actually, as I told you, that

35
00:02:11,700 --> 00:02:12,810
is our is called code.

36
00:02:12,810 --> 00:02:18,120
So if you run this code in your school database area, then what exactly it shall we do?

37
00:02:18,330 --> 00:02:24,480
It will be create one of the table names for table name will be as a person table and the person will

38
00:02:24,660 --> 00:02:27,260
have one of the field, one of the idea field.

39
00:02:27,520 --> 00:02:31,770
Another is the first name field and there will be as a last name fieldtrip.

40
00:02:32,040 --> 00:02:34,920
And it is also one of the civil type.

41
00:02:34,920 --> 00:02:36,570
And you can see the result of the primary.

42
00:02:36,750 --> 00:02:39,330
That message will be automatically incremented.

43
00:02:39,570 --> 00:02:42,740
And in the first name field, that is our type as of March type.

44
00:02:42,750 --> 00:02:48,720
And at the time here I define some of the land that means that tarde character is still Vitek and that

45
00:02:48,720 --> 00:02:50,160
is also not nullable.

46
00:02:50,310 --> 00:02:52,530
OK, and also that is the last name.

47
00:02:52,530 --> 00:02:58,350
And for the last name, field to this field will be as a marker and also for this field, I have defined

48
00:02:58,350 --> 00:02:59,410
that title character.

49
00:02:59,890 --> 00:03:05,670
OK, so here, if you run these commands, if you run this command in your escrowed, then it should

50
00:03:05,670 --> 00:03:07,830
be created on the table into this table.

51
00:03:07,830 --> 00:03:08,970
They have the tree field.

52
00:03:08,970 --> 00:03:12,390
One will be as a the first name and the last name.

53
00:03:12,690 --> 00:03:18,070
So now if you compare with these things with this model, that how that thing's exactly on here.

54
00:03:18,090 --> 00:03:20,370
So for this one, it will be Uzelac.

55
00:03:20,370 --> 00:03:24,030
First of all, that will be one of the class and class name as a person.

56
00:03:24,030 --> 00:03:28,920
One of the class name into this class is in trade with our this model library.

57
00:03:28,930 --> 00:03:33,430
So in this model library now, Texas or another model, that is our model.

58
00:03:33,450 --> 00:03:36,780
OK, and after that, here they have the three variable.

59
00:03:36,780 --> 00:03:39,880
One will be, as I did the first name and the last name.

60
00:03:40,080 --> 00:03:45,320
So now into this variable, into the idea that with these models, that means with all these models,

61
00:03:45,330 --> 00:03:51,090
like really into this model, slavery is no excess as some of the type as Autofill and the primary key

62
00:03:51,090 --> 00:03:51,750
as a true.

63
00:03:51,750 --> 00:03:57,180
That means you will be automatically incremented and then another variable as a first name.

64
00:03:57,180 --> 00:04:03,110
And it is the first name in our models, Labidi, in this modern slavery had simply defined some of

65
00:04:03,120 --> 00:04:07,140
the character, field and character field will be maximum length at a party.

66
00:04:07,440 --> 00:04:13,620
OK, so before that was actually vaka as a party and here we have to do we have to deal with our models

67
00:04:13,620 --> 00:04:17,360
and are into these models, our character field and the character field.

68
00:04:17,370 --> 00:04:19,330
Here you have to define your maximum length.

69
00:04:19,590 --> 00:04:25,590
So here just simply defined that maximum character length will be at a 30 and also for the another one

70
00:04:25,590 --> 00:04:31,670
that is our last name variable in this last name variable with our model slavery into this model slavery.

71
00:04:31,680 --> 00:04:37,710
They have also one of the type that is actually the character will type into this character that our

72
00:04:37,710 --> 00:04:39,800
maximum length will be at a 30.

73
00:04:40,180 --> 00:04:44,460
OK, so that is actually a little bit different, both of these.

74
00:04:44,470 --> 00:04:50,280
So the this will be for our skill and this will be for our models and that is our Escalade models.

75
00:04:50,310 --> 00:04:53,010
OK, so I hope it should be very much clear to you.

76
00:04:53,020 --> 00:04:58,450
So if you run this class, then automatically it will be created on the table as a person to be the

77
00:04:58,450 --> 00:04:59,340
end of this table.

78
00:04:59,350 --> 00:04:59,910
There will be.

79
00:05:00,120 --> 00:05:06,390
The three field one will be the first name and the last name of a friend and every type like here,

80
00:05:06,390 --> 00:05:09,770
that is a used auto field type, that is our character field type.

81
00:05:09,770 --> 00:05:11,350
That is also the character filled out.

82
00:05:11,420 --> 00:05:14,210
And here you can see before I used that model, slavery.

83
00:05:14,360 --> 00:05:20,180
So everything is already added in our small area for the originals by default that the import our these

84
00:05:20,180 --> 00:05:20,730
models.

85
00:05:20,750 --> 00:05:23,320
OK, so everything is already on here.

86
00:05:23,450 --> 00:05:28,720
So if you want to learn more about that, models that have also on the official Web site, you know,

87
00:05:28,730 --> 00:05:32,240
Django, they have also all of the models seem to these models.

88
00:05:32,240 --> 00:05:33,980
You will get a lot of the resources.

89
00:05:34,280 --> 00:05:37,130
So we will actually use these resources.

90
00:05:37,160 --> 00:05:39,340
OK, so we'll use these resources.

91
00:05:39,340 --> 00:05:42,940
So you can see that is actually the one so on my person.

92
00:05:42,950 --> 00:05:45,380
So here are some example.

93
00:05:45,620 --> 00:05:50,300
So if you want to learn more about it, then it's better to actually read this piece so you will get

94
00:05:50,300 --> 00:05:52,040
a lot of the resources from here.

95
00:05:52,040 --> 00:05:53,050
So we will use it.

96
00:05:53,060 --> 00:05:56,880
So we will use everything in our project like that is our choices.

97
00:05:56,900 --> 00:05:59,340
So if you want to use that choice is how you can use it.

98
00:05:59,630 --> 00:06:01,850
I will show you that things with the live example.

99
00:06:02,180 --> 00:06:03,380
So I have this to read.

100
00:06:03,380 --> 00:06:07,490
This article to increase your knowledge will be very much helpful to you.

101
00:06:07,760 --> 00:06:12,370
So, you know, next video, I will discuss about how you can create these models, OK, how can create

102
00:06:12,380 --> 00:06:17,870
one that are stable and also can create some of the field for this one and also can insert some of the

103
00:06:17,870 --> 00:06:20,030
data into this all the field area.

104
00:06:20,270 --> 00:06:23,250
So step by step and everything will be very much clear to you.

105
00:06:23,570 --> 00:06:27,020
So thanks for watching and I will see you in the next video.
