1 00:00:00,870 --> 00:00:04,990 We will talk about Django, so Django is in a Titan based Web framework. 2 00:00:05,220 --> 00:00:11,400 So in addition to that, we will learn about what requirements we need to have on our machine to run 3 00:00:11,400 --> 00:00:11,850 Django. 4 00:00:11,880 --> 00:00:17,520 So what tools and code editors will go to have so that we can run Django on your local machine? 5 00:00:17,850 --> 00:00:23,190 So before I start, I would like to show the content we are going to be covering in this video. 6 00:00:23,200 --> 00:00:27,570 So we will discuss about Django by the official documentation of the Django. 7 00:00:27,870 --> 00:00:32,880 Then we will talk about the tools and code editors, what we require them and why we need them. 8 00:00:33,090 --> 00:00:36,120 And then we will talk about how the steps to install Django. 9 00:00:36,330 --> 00:00:41,090 So these are the steps, how we can install Django and how we can start of the Django project and the 10 00:00:41,100 --> 00:00:42,580 Django upon Oracle machine. 11 00:00:42,690 --> 00:00:50,260 So Django is a high level python framework that encourages rapid development and pragmatic design. 12 00:00:50,730 --> 00:00:53,020 So it was built by experienced developers. 13 00:00:53,040 --> 00:00:58,770 It takes care of much of the hassle of Web development so you can focus on writing your app without 14 00:00:58,770 --> 00:01:00,180 needing to reinvent the wheel. 15 00:01:00,630 --> 00:01:07,080 It's free and open source in the Django is usually based on MBT Pact and model you empty. 16 00:01:07,470 --> 00:01:11,160 So this I'm referring to the official documentation of the Django. 17 00:01:11,430 --> 00:01:14,600 So it says there is a model here. 18 00:01:15,180 --> 00:01:20,940 So model year if you for structuring and manipulating the data off the web application. 19 00:01:21,580 --> 00:01:28,380 So the M stands for model and this model is used for shifting between the date of application. 20 00:01:28,680 --> 00:01:31,500 The next we have is the view and the view. 21 00:01:31,650 --> 00:01:38,040 It is responsible to encapsulate the logic responsible for processing users requests and for returning 22 00:01:38,040 --> 00:01:38,720 the response. 23 00:01:39,150 --> 00:01:45,270 So all the business logic is is encapsulated inside the view and it is responsible for building the 24 00:01:45,570 --> 00:01:51,480 logic and how the user can request and how you respond to that particular request. 25 00:01:51,810 --> 00:01:53,190 So this is all about individually. 26 00:01:53,430 --> 00:01:55,290 So next we have is the template layer. 27 00:01:55,500 --> 00:02:01,200 So Template provides the design syntax for rendering the informations how you want to present the data 28 00:02:01,200 --> 00:02:08,340 to the user so that all the front end like this is the JavaScript is there in the template layer. 29 00:02:08,370 --> 00:02:13,890 So how you can design your front end parts, how you can want to show that the data or you should show 30 00:02:13,890 --> 00:02:17,190 that design your page to the user is all defined inside the template. 31 00:02:17,560 --> 00:02:23,160 Before we create a Django server on our local machine and we run it on our local machine, you can go 32 00:02:23,160 --> 00:02:27,990 to the official website of the python you can download and according into the operating system, you 33 00:02:27,990 --> 00:02:30,940 can download Python and read. 34 00:02:31,530 --> 00:02:36,900 Please make sure that when you have downloaded the python and when you run the installer, what do you 35 00:02:36,900 --> 00:02:43,050 have to do, if you will get a window like this on your screen and it says like install Python three 36 00:02:43,050 --> 00:02:48,600 point six point to a successful conclusion, what you need to do is make sure to enable this option, 37 00:02:48,600 --> 00:02:54,810 that Python three point sixty two thought so because this would act by the T point. 38 00:02:54,810 --> 00:02:59,910 Any vision using that python three point X to execute with two point five three point sixty eight point 39 00:02:59,910 --> 00:03:00,450 seventy four. 40 00:03:00,450 --> 00:03:03,770 They do the part and you can access Python via come line. 41 00:03:03,840 --> 00:03:04,800 I will show this you. 42 00:03:05,250 --> 00:03:09,560 Yeah, I would open the command line you get this looks better with good font size. 43 00:03:09,810 --> 00:03:15,420 So what I want you to do is now when you have installed Python on your local machine, you just need 44 00:03:15,420 --> 00:03:17,190 to type Python. 45 00:03:17,920 --> 00:03:20,730 It says, yeah, it's it's Python two point eight point one. 46 00:03:21,050 --> 00:03:27,750 After install Python to your path and running Python from the command line, you can move this studio 47 00:03:27,900 --> 00:03:32,390 and the studio used to interact with the database initially. 48 00:03:32,490 --> 00:03:34,790 We are going to work with Escola database in Django. 49 00:03:35,130 --> 00:03:40,770 So you can this this provides a graphical user interface and so you can click on this link, download 50 00:03:40,770 --> 00:03:42,360 Windows Binary Open. 51 00:03:43,030 --> 00:03:45,290 So I'm hoping this in the new tab. 52 00:03:45,540 --> 00:03:51,330 So what we can do, according to your operating system, you can download the file from here, install 53 00:03:51,330 --> 00:03:52,010 it on your machine. 54 00:03:52,200 --> 00:03:54,940 Next, what you can do is install visual audio. 55 00:03:55,220 --> 00:04:00,700 So your code is a code editor we are going to use for this year. 56 00:04:00,720 --> 00:04:05,820 We are going to use Visual Studio because the best part of this is that it has an integrated terminal 57 00:04:05,820 --> 00:04:06,300 inside it. 58 00:04:06,540 --> 00:04:13,710 So I can show you this thing like this is the code and like we are doing some project so we can interact 59 00:04:13,710 --> 00:04:15,240 with the code as well. 60 00:04:15,530 --> 00:04:22,640 Now, the third part of the and the B part and in the third part, we are going to see the soldier angle. 61 00:04:22,860 --> 00:04:25,190 So what you can do is come on line. 62 00:04:25,290 --> 00:04:30,720 I would recommend you to run this command Bip Bip and Python base package manager. 63 00:04:30,960 --> 00:04:34,380 So it helps you to install packages and libraries externally. 64 00:04:34,620 --> 00:04:35,540 I like my name. 65 00:04:35,550 --> 00:04:38,170 So what do you need to install Django? 66 00:04:39,180 --> 00:04:44,400 So this will ensure Django no machine, but like I've already installed Django on my machine, so it 67 00:04:44,400 --> 00:04:49,830 might tell me that requirement all dissatisfied because I only saw Django on my local machine. 68 00:04:50,250 --> 00:04:55,620 So to check this, what you can do, I would recommend you to type Python. 69 00:04:56,700 --> 00:04:59,670 So Python has been around like I'm online and I would type in. 70 00:05:00,190 --> 00:05:00,790 Chango. 71 00:05:02,110 --> 00:05:06,790 Now, the next you can time Django dot version. 72 00:05:07,790 --> 00:05:12,380 So this will be dealing with the general religion, which has been sold successfully on my machine so 73 00:05:12,380 --> 00:05:15,400 that Dango has been installed on the machine. 74 00:05:15,620 --> 00:05:19,420 So what you need to do this Pipistrelle jangle and you need to run this command. 75 00:05:19,940 --> 00:05:23,310 So next time we going to have a visual record of the phenomena. 76 00:05:23,750 --> 00:05:28,910 So after opening a terminal, what do you need to do is move to digital. 77 00:05:32,090 --> 00:05:40,100 Then move to the older city programming knowledge, so I'm inside this folder and now I'm going to want 78 00:05:40,210 --> 00:05:43,490 to come on and help revive the old world. 79 00:05:43,520 --> 00:05:44,180 What are you doing there? 80 00:05:44,660 --> 00:05:47,060 So what I need to do is Django. 81 00:05:48,710 --> 00:05:49,310 AGYEMAN. 82 00:05:50,680 --> 00:05:52,210 Start from. 83 00:05:54,010 --> 00:05:58,750 This couldn't be any project name you want to give him my project. 84 00:06:00,580 --> 00:06:02,550 Not able to run the direct command. 85 00:06:02,710 --> 00:06:09,290 So this is my project has there is a folder for Michael Project, which has been it has been stolen 86 00:06:09,310 --> 00:06:10,320 in the current directory. 87 00:06:10,330 --> 00:06:14,580 And this is due to this command General AGGRASTAT project, my project. 88 00:06:15,100 --> 00:06:18,700 So you can see that my project has been successfully. 89 00:06:19,180 --> 00:06:21,870 Now the project has been created. 90 00:06:22,060 --> 00:06:24,430 And then if you want to. 91 00:06:25,540 --> 00:06:26,830 Start up. 92 00:06:27,250 --> 00:06:32,550 So, as I mentioned earlier, the inside, this is a manager three by five. 93 00:06:33,130 --> 00:06:41,260 So you can run this file by a command line if you specify Python as a prefix to this file. 94 00:06:41,680 --> 00:06:46,760 So in the same way we can run, this could be the file, my command line if you use Python as a prefix. 95 00:06:47,140 --> 00:06:49,330 So what I'm trying to say is. 96 00:06:50,320 --> 00:06:58,120 Like, you move to the area, you move to the Inside the Jungle project folder, which is my project 97 00:06:58,120 --> 00:07:00,850 named City, my project. 98 00:07:02,890 --> 00:07:08,920 Now, what you need to do is run the life to come on the fiscal and monetary where you can run this 99 00:07:08,920 --> 00:07:12,030 file if I can manage that. 100 00:07:13,630 --> 00:07:15,360 So you are able to run this file. 101 00:07:15,400 --> 00:07:20,950 But in addition to this, I'm also specify something, things that have. 102 00:07:22,500 --> 00:07:26,770 I knew it could be my app, so let me tell you one thing. 103 00:07:28,740 --> 00:07:30,490 So first I get it. 104 00:07:30,550 --> 00:07:33,930 So I was inside programming knowledge directly. 105 00:07:33,930 --> 00:07:36,120 Then I created a folder called My Project. 106 00:07:36,900 --> 00:07:38,360 So this is a jungle project. 107 00:07:38,460 --> 00:07:46,530 So inside the jungle project, I created an app which aspecific like this Python managed to feeb inside 108 00:07:46,530 --> 00:07:47,850 the project folder. 109 00:07:48,480 --> 00:07:51,170 I'm trying to create an app with the name My. 110 00:07:51,270 --> 00:07:59,070 And I want to tell you one thing, that there can be multiple apps so we can say like there can be multiple 111 00:07:59,070 --> 00:08:00,600 apps inside us in the Jungle Project. 112 00:08:00,870 --> 00:08:04,830 OK, so like by using this command, we are going to create an app. 113 00:08:04,860 --> 00:08:08,070 So I would say Python managed to start up my app. 114 00:08:09,410 --> 00:08:16,790 So when I moved to my older, I will see my app, so then my app has been created inside my my project 115 00:08:16,790 --> 00:08:19,690 folder in the same way I can do one thing extra. 116 00:08:20,630 --> 00:08:23,060 I can do my app to. 117 00:08:24,970 --> 00:08:31,960 Oh, so this all looks so like what I told you, that inside my Django Project's Django project, I 118 00:08:31,960 --> 00:08:36,340 have to ask what is my and it is my app too. 119 00:08:36,610 --> 00:08:41,330 So what I wanted to tell you with an excited single Django, you can create multiple apps. 120 00:08:41,770 --> 00:08:44,630 So far, we have more to this now in the last one. 121 00:08:44,680 --> 00:08:49,450 What you are going to run if you want to run the general store on our local machine, what do you need 122 00:08:49,450 --> 00:08:54,250 to do is you should be inside your product folder and type item. 123 00:08:55,480 --> 00:08:56,140 Manege. 124 00:08:58,240 --> 00:09:00,280 Boy, run through. 125 00:09:04,770 --> 00:09:11,700 So so this is the language entry point for point one, using settings, my point of setting, starting 126 00:09:11,700 --> 00:09:16,800 to person and this and this is one twenty seven point four point four point one. 127 00:09:17,100 --> 00:09:19,050 And this is the eighth of the number. 128 00:09:19,050 --> 00:09:25,110 So I want to tell you that this is your localhost, this one twenty seven point four point open one. 129 00:09:25,110 --> 00:09:31,510 And he told me your phone number so you can copy this address or you can simply do one thing, send 130 00:09:31,530 --> 00:09:31,760 one. 131 00:09:31,770 --> 00:09:34,720 Going to send for low point 0.01 is your localhost address. 132 00:09:34,740 --> 00:09:42,280 What you can type is simply a local calls and specify the phone number and phone number eight thousand. 133 00:09:42,300 --> 00:09:48,030 So this would OK, now you can see the this page is being loaded here. 134 00:09:48,240 --> 00:09:54,990 So what we can do, we can get this over with the control because we combine this using the issue with 135 00:09:54,990 --> 00:09:55,350 this. 136 00:10:00,590 --> 00:10:02,420 I would again run this command. 137 00:10:04,060 --> 00:10:10,180 OK, so this shows that this has now it has been started on my machine, so like so now this so this 138 00:10:10,180 --> 00:10:15,430 is the so you have to use this gumline fight managed to be run over. 139 00:10:15,460 --> 00:10:20,890 So this has the stock in the server on my local machine with the eggless one twenty seven point two 140 00:10:20,890 --> 00:10:22,830 point four point one hundred eight thousand. 141 00:10:23,110 --> 00:10:28,750 So this means that I guess with local horse and the board number was eight thousand sixty five local 142 00:10:28,750 --> 00:10:31,220 high school and eight thousand. 143 00:10:31,450 --> 00:10:35,720 So the server is running successfully for install the facility. 144 00:10:35,800 --> 00:10:36,790 Congratulations. 145 00:10:37,780 --> 00:10:38,500 This is from here. 146 00:10:38,500 --> 00:10:42,370 You can download documentation to do polling and community. 147 00:10:42,670 --> 00:10:44,450 So we made a Django. 148 00:10:44,470 --> 00:10:48,360 So on a machine and we will able to render Django on our machine. 149 00:10:48,640 --> 00:10:52,270 So next year we will come up with the request and the response by the. 150 00:10:52,300 --> 00:10:52,870 Thank you so much.