1
00:00:00,180 --> 00:00:01,620
Hello, friend, welcome back.

2
00:00:01,830 --> 00:00:08,460
In a previous video we have created on the table as about the middle class I was about and here I have

3
00:00:08,460 --> 00:00:12,870
added some of the table feel that the title feel description, feel images.

4
00:00:12,870 --> 00:00:16,500
And also with this model, I added that I type.

5
00:00:16,500 --> 00:00:22,470
That means that the title will be as a character filled description, will be as a textfield and also

6
00:00:22,470 --> 00:00:23,120
that image.

7
00:00:23,340 --> 00:00:23,670
Right.

8
00:00:23,880 --> 00:00:27,600
And here also I added our approach to one of the python, Lavie.

9
00:00:27,600 --> 00:00:34,030
And for for if you want to access it, you have to install what, the package as a people package so

10
00:00:34,030 --> 00:00:37,500
you can install that package, as I have already discussed about that things with you.

11
00:00:37,500 --> 00:00:37,820
Right.

12
00:00:38,100 --> 00:00:39,460
So now we are ready to go.

13
00:00:39,480 --> 00:00:42,810
So now I want to do want migrated to before migrated.

14
00:00:42,810 --> 00:00:44,760
I want to do an actual registry.

15
00:00:44,790 --> 00:00:48,060
That means I want to register our this table in our index.

16
00:00:48,060 --> 00:00:48,990
That is our admin.

17
00:00:49,110 --> 00:00:49,440
Right.

18
00:00:49,470 --> 00:00:55,640
So the admin I want to pass on the information to our admin that I want to create another table.

19
00:00:56,070 --> 00:00:59,130
So that is the things I want to do on here for doing this.

20
00:00:59,130 --> 00:01:03,740
First of all, here you have to do you have to import your these models, right.

21
00:01:04,080 --> 00:01:05,910
That means into the model area.

22
00:01:05,910 --> 00:01:07,170
I have created this one.

23
00:01:07,180 --> 00:01:11,110
So here we have to import it so better.

24
00:01:11,220 --> 00:01:18,420
So here I want to do and to live added as a form from that will be in the same position that the model.

25
00:01:18,420 --> 00:01:22,190
So I just simply added as a dot and the models.

26
00:01:22,770 --> 00:01:29,000
So from to this model, I want to do the import, I want to import our which class I have already created

27
00:01:29,010 --> 00:01:30,840
on the class as about.

28
00:01:30,840 --> 00:01:31,220
Right.

29
00:01:31,230 --> 00:01:34,530
So now I just simply name out this class name.

30
00:01:34,530 --> 00:01:40,390
So if you have that multiple class you can add that multiple class with using that comma.

31
00:01:40,590 --> 00:01:43,230
OK, so right now I have only one so far.

32
00:01:43,230 --> 00:01:48,120
The reasons I just name it as about and now also you have to do have to really study the you can see

33
00:01:48,120 --> 00:01:52,120
they have also some of the command as they register your model here.

34
00:01:52,440 --> 00:01:59,170
So now I want to do under a state secondary study that will be as admin and the site admin side and

35
00:01:59,170 --> 00:02:06,020
the register admin side register and the side of the here you have to do have to put that name.

36
00:02:06,030 --> 00:02:07,760
So that means your model name.

37
00:02:07,770 --> 00:02:10,020
So I just simply name it.

38
00:02:10,020 --> 00:02:18,220
It will be as about, OK, so now if you click as a Savol and now if you go to your admin, click the

39
00:02:18,240 --> 00:02:18,870
refresh.

40
00:02:19,500 --> 00:02:19,980
Yes.

41
00:02:19,980 --> 00:02:25,890
You can see for now automatically snobbism visible our about and by default is automatically added.

42
00:02:25,890 --> 00:02:33,570
Another is on here, but because of all you can see, I added our name that the class name will be a

43
00:02:33,930 --> 00:02:40,290
but is now showing us it about OK and also showing us the index indexed means that that will be our

44
00:02:40,290 --> 00:02:41,500
application name.

45
00:02:41,580 --> 00:02:43,610
OK, so that is our application name.

46
00:02:43,770 --> 00:02:48,450
So here is now visible because of all I have created our application name as the index.

47
00:02:48,720 --> 00:02:49,140
Right.

48
00:02:49,260 --> 00:02:51,110
I hope is very much clear to you.

49
00:02:51,300 --> 00:02:53,360
So now we are ready to migrate it.

50
00:02:53,370 --> 00:02:57,960
So for Mike that I say it again now open our path.

51
00:02:57,960 --> 00:03:00,600
That means that is our general and the portfolio.

52
00:03:00,600 --> 00:03:01,470
That is our portfolio.

53
00:03:01,470 --> 00:03:01,720
Right.

54
00:03:02,070 --> 00:03:05,790
So if you want to make the deal, first of all here, you have to do you have to make that.

55
00:03:05,790 --> 00:03:07,380
You don't need to do anything you can do.

56
00:03:07,380 --> 00:03:11,740
The two different or L'Italia will also show you and that things with a different way.

57
00:03:12,090 --> 00:03:20,370
So right now I just may need as a python like Python managed by and then you have to write as a make

58
00:03:20,790 --> 00:03:26,160
migration's OK, make migration, make migrations.

59
00:03:26,430 --> 00:03:32,910
So when you run it as a python managed by and then make migrations and if you click as they enter.

60
00:03:34,940 --> 00:03:41,300
Now, courses automatically make ready for our magnet for index and also created one of the model that

61
00:03:41,300 --> 00:03:43,270
means a model as about right.

62
00:03:43,550 --> 00:03:46,200
So now I want to do I want to initialize this one.

63
00:03:46,220 --> 00:03:52,250
That means if you now go to index in the migration area here, you can see the reservoir in it and then

64
00:03:52,700 --> 00:03:54,900
automatically initialize one the table.

65
00:03:55,340 --> 00:03:59,200
So that is our initial Lesterville as a name and that is all that our field.

66
00:03:59,240 --> 00:04:05,660
OK, and here one things I missed because of all, because if you go to our model into the model area

67
00:04:05,690 --> 00:04:11,130
in Laravel, what exactly we did in Laravel, we first of all, we take one of the idea that that means

68
00:04:11,150 --> 00:04:12,100
the primary ID.

69
00:04:12,410 --> 00:04:17,120
So here in Django, you don't need to add any primary ID automatically.

70
00:04:17,150 --> 00:04:19,610
So we created one of the primary idea for you.

71
00:04:19,910 --> 00:04:26,300
OK, so here you don't need to do anything for a specific for another table for the primary key.

72
00:04:26,450 --> 00:04:29,780
So by default, it's automatically added on the primary key.

73
00:04:30,170 --> 00:04:32,210
So right now that is our initialized file.

74
00:04:32,240 --> 00:04:34,760
So now I want to do and actually migrate out this file.

75
00:04:35,300 --> 00:04:40,610
So if you want to migrate it, then you have to do you have to write down as a python and then manage

76
00:04:40,630 --> 00:04:43,190
to pay and then migrate.

77
00:04:44,330 --> 00:04:50,450
So I just simply added as a python menaced by with this madness, by I want to migrate and now they

78
00:04:50,570 --> 00:04:51,110
enter.

79
00:04:53,210 --> 00:04:59,600
Yes, you can see it's not showing his operation to perform our D1 and our destabilises now successfully

80
00:04:59,600 --> 00:05:00,150
created.

81
00:05:00,500 --> 00:05:02,720
So here now everything is ready.

82
00:05:02,840 --> 00:05:11,540
So now if you go to our side and now if you refresh it and now go to our about, you can see there is

83
00:05:11,540 --> 00:05:12,410
a cloud about.

84
00:05:12,410 --> 00:05:15,920
And here if you go to our ad about yes.

85
00:05:15,920 --> 00:05:19,970
Now conceive and I hope it should be now visible, can be very much clear to you.

86
00:05:20,000 --> 00:05:25,090
So that is our title I have created on the field as a title, that description field.

87
00:05:25,310 --> 00:05:27,740
And also there is another field as image.

88
00:05:28,040 --> 00:05:31,850
So from here you can insert this data and you can save it, right.

89
00:05:32,150 --> 00:05:33,680
So there is a laboratory field.

90
00:05:33,680 --> 00:05:41,180
So here I just simply added the tree field and now we successfully created our field on here so we can

91
00:05:41,180 --> 00:05:42,310
save this data.

92
00:05:42,320 --> 00:05:48,260
And also, how can I add that imagist part, say, step by step in our next video, I will show you

93
00:05:48,260 --> 00:05:49,930
that things with a live example.

94
00:05:50,540 --> 00:05:53,930
So thanks for watching and I'll see you in the next video.
