Transcripts
1. Introduction to Course: Hey, guys, Welcome to a new course. This course about is about building at Xanga Project. So we're going to use the jangle framework to build a Web application that is going to expose us too much more advanced and, uh, intermediate concepts on how cool developer website More extensively. Don't worry. We're gonna go from the beginner stretch to that once of stage. So you don't have to worry about learning any new things about our any basic things about Django all off the stuff that is from beginner. Tread Branch is right inside this course. Okay, so what are we going to learn in this course? So let's dive into the introductory part of this course. So the first thing is, you're gonna understand the fundamentals of jangle. What are the fundamental concept that are involved in Sango that are very, very important for us to learn when we actually take on this course. The next is setting up a development environment. All right, so Xanga requires us to development in requires a syrup it environment. There is a dedicated to developing this application alone because if you want to develop or create something new you don't want to do it in an environment where everything else is working, right? You want to compartmentalize that part of the environment because if anything wrong, if anything goes wrong, you want you don't want it to affect other parts of your application. So this is very important. And next to designing that pages. So all those angle mostly focus on back in. We're also gonna learn about how to actually designer webpages because part of the developing webpages is to actually designed them. We don't want to show any kind of a big just so we don't want to develop applications that does that doesn't show websites were needy and elegant. You you want to make sure that our pages also display Ah, correct and proper design wardens were gondola. So next thing is, we're going to deal with the database because, ah, part off application development, particularly in Web application development, is very important concept of data bees. So we're gonna learn about it. So what database involved is my skin? So it don't worry about it. We're gonna go trick in this coast rights. So we're gonna learn about integrated Arabists to their project out of run commands have stored their know how to achieve their all the basic operations, all the fundamental stuff that is involved in setting up databases. Everything is detailed in this course, and next, his servant static puts this is staring plans is nothing but the which team It ceases images. So we're also going toe. So study finds in this course. So you're gonna learn about how to actually do that thing also. So don't worry about it. Next days, Bill Project from map module. So this is another concept. There is particularly related to jangle because Django develops APS by actually dividing them into applications. All right, you're gonna learn about this too. All right, So this is a major part of jungle development because jangle deals with project in terms of perhaps you need to divide specific parts off your project into individual applications and then collaborate all of them to make a final project. And next his bootstrap. This is a design framework mostly focused on CSS. We're going to learn very extensively about Bush that, like we have laid out a simple part off her course to dedicated to bootstrap so that we can learn how to develop the upsets that are gonna help us to design them and then integrate search features. Search is a very, very important element in any any, any basic to the advances that sites because search has just to find things very more easily than like a refering inside a book. All right, we can just talk about the key. What that we want. We can find out stuff that we that our insider database are the website. All right, so this is a major important thing. And next is Vega nine degrading due to alleged to complete the project. So I had, I'm sure. So this stage of what it will do is it will bring all the applications super of dollars, dropped the course and build them, integrate them and show the complete and final outcome. And next year's one of the prerequisites that are involved for learning discourse there. Not much prerequisite, but we need a few of them. What are they so basics off fight on? So you need to learn how to write, fight, encore syntax and semantics. What are the variables? How the data types the patent doesn't involve that is because it it ah identifies Darryl is by itself based on the value stood in the variables off that you need to learn what the four loops if conditions all of that and wants basics off HTML and CSS. So not extensively, just basics so that you can actually show some design on the website side threatening understanding how Web goods because we are developing a web application. So you need to know how the Web books or the Internet actually communicates how it actually makes the request. And since their response from the server to the client, all of the stuff all right, And the software start a used inside the scores a Django by dawn J query, bootstrap, html and CSS. All right, so with this, we're closing the introduction part. So this is a major, major, major courts, because you're gonna learn a lot off stuff in this, that you can actually go ahead and develop their need website that you want. All right. This course is an ultimate coast for jungle. While we have said part one because we're laying it out in two parts so that you don't have to deal with a lot of time inside this coast. All right, so with that in mind, let's get ahead, and we'll start learning or course
2. #222 Softwares: Hey, guys. So these are this off? First of you're going to use extensively to develop a project. The very 1st 1 is the language. We're going to use the pipe on language. This language is very easy to learn. Housing you piper language course, uh, inside this so that you'll be able to fight off languages bill and then jangle it is a bad thing. Were developed this in the language fighter. So xango is a main part off our project. And Jacob Jacob is nothing but a JavaScript library. It will help us toe right core easier. Then if you don't secretively have right along and more runs off court JavaScript. So jiggery eases the task. And bush that Bush trap is a design cream which will help us to create designs easier and and more authentically so that our design is is very good for user to attract and hitch de Valencia Street steam and she is are used for friends and languages. And Bush stop is integrated with these language this so that we can create a more designer intern project so that users I'm warning Christian use our project for bootstrapping design from book which is integrated with which, to my tears is great. More dynamic image driver type. So that's it. So these air, this office that we're going to use it is very important that you use it's office very this off. This have to be, uh, compatible. Yeah, because Zankel jesus washings microaggressions law at the time. So everyone in my possible the language Russians so by donors list in many Russians, Zang was released in many versions, These both might be compatible if you don't look offered. So you need to make sure that this border compatible. All right, So by the time of making discourse, the Russians might be different from your time, so make sure that you use the right questions, So let's get
3. L 2 Install Python: Okay, So in this video, we're going to download and install Python. So this is the time where we're going to install pipe down from bite on 3.6 point five. So when the time you're watching Discourse, the installation division of this off there might be abated. You're fine. And village four point. Oh, or anything less than that. But until the major vision, the number three here changes your okay to use with that. So we're here? Don't know. Don't fight on 3.6 point five. So go ahead. And don't worry. If you get down here, we will get the files that we need. So I'm working on windows, so I'll be using this x 86 64 executable installer. So I'm don't during this fight. So before be install it. We need to take off wanting. So if you have only installed python on your computer, I recommend you to uninstall and reinstall it, using the method that I'm going to do in this video. So before you do anything like that installation, so please uninstall your python on your computer and follow along with me. You see, the fight on file has already been dollar it. It's not a very big cry. So once it's downloader, open the file. So here it is. So now we need to do something that is really very important. We need to check this ad fight on 3.62 buck. This is very, very important. So after taking this instead, off install now click, customize, installation and see where the people's checked or not. We always want to check, because people is the very useful to install some other necessary things and autumns angle itself. So make sure the pastry and these other things useful for you or not for our purpose. We're checking Python is gender knock and next. So when you come to this, this part of the installation it installed for all users because we want every user on our computer to be able to use python and then hitting store. Okay, the second most successful, all right after the set of was successful, we should be able to use python from anywhere on our computer, So let's get to the next list
4. L 3 Installing Virtual Environment: Okay, so we have installed fighter. Now it's time to install a good tool in government. What is it? A virtual environment is a sort off a safe room inside a building so that if we blow it up and do something wrong, it doesn't hurt the rest off a computer. It allows to install different persons off things, making much easier than installing them on our main computer. So to do that, we need to open a commend lantern. So go ahead and open command line Doom we haven't here. So what we need to do is we need to install a virtual and rapper. So if the heat big freeze way, we have a list of the things that are already in style using. So if you observe here, the second line sees ritual and rapper so I have already installed it. So I don't need to install it again. But if you want to do it for the first time, all you can do is keep install ritual and rapper That's win for lead us. You see it since requirement, already satisfied because they are already insulted. So after installing it, what we need to do is What we need to do is we need to create a virtual environment. So how do you do that? The command is make ritual in, and now we need to give a name to that so that it creates a virtual environment based on deck names. What we're going to name it is xango Dash project. So you know, it's creating the little environment. Now, if you see here, the virtual environment is activated. How do we know Decide with based on the name here jangled as bad projects, Phil, Inside the parent, this is This is how you know you're inside over to environment. So if we want to get out of venture virtual environment, all within two is practical and deactivate and they're out of So how do we know one other between governments that we have? We can create a bunch off, not only one. So how do we know what other trillion run its present in our computer? So he work on and you get the list of them have already created feel off them. So I'm having multiple between run. It's So how do you activate a single ah one specific between run hit work on and given him , I'm going to give Bangladesh projects. So this is how you getting getting sided. So I'm going to get out of it again. Yeah. Yeah. So this is how you handle virtual environments. So that's it for this lecture.
5. L 4 Install Django: in this video, we're going to install its angle so true that open a browser and tied Sango like this and you're going toe. Get that that site he had xanga project dot com This is the mean them safer, Django. And you can always don't know the lyrics from your desperation from here. But I don't recommend doing that while this one side is great for the documentation poppers and to actually kind off look it from time to time, but installs angles. We're going to open the command line, Turner. Yeah, here is And we're going to in stones angle right from here, not from the website. So to do that, First of all, make sure that you're inside your virtual environment. Yeah, you're inside of a train, Roman. So to install it, I think installed Zandl. Make sure that these captain and he didn't you see, Now it's installing it, downloading this angle. You see, it is also collecting some fizi finds, which it always does. So after this installation will become better, we will have xango in our virtual in grand me so we can play around and complete any kind of project using xango inside our virtual environment. Yeah, the installation is completed. So three type now frieze, You can show all the Softwares that we have install inside this virtual environment. So when we did you see any chance and ask Zankel Bidzina scrapers. These are the versions off the southwest of here install and our listen storms off fears prison in our own virtual and ground. So for this lecture, we learn how installs angle. Thank you.
6. L 5 Start a Project: Okay, now let's start a project. So we're in a virtual environment, and now we're going do our directory. They were going to start a project. So to start our project, just simply type xango dash it Mean start project and then covered with your, uh, site name Bangladesh mean started. And I'm gonna call you my site. Just keeping it to. And now, if you see it will create a directory, and you go into the directly. And now you see two files being grated. Man is got by and my site. So manager pies they filed it, which is used to manage all the operations that we're going to perform. It'll project on my side is the actual degree where we have our project fights. So let's open our project. Using Adam, I'm using Adam. You're free to choose whatever the kind off environment that you want to say. I'm going to open a project, go to the place and open my dear creek. So any got by and many other bunch of files that have been created when we use the command start project. So setting start by. This is the way all database password authentication settings are prison. You're all start by and this is the file way. We're not going to use this at any level, but managed by that one. Victory is to manage. So these are the pages are find that we get after creating her project. So yeah, come here and before you writing it in command here, I'm going to tell you need to stay in the managed by directly so we execute this connect. So when you're in this place, the Derrick River managed our pies present. No type in what I'm going to do. Bite on. Managed by run Sever this we allowed to run a server like white Web server That jangle provides us. So if you run it, it's going toe run the server the starting developments over at that port and that place. So open whatever browser that you want. And after that, hit local host and give the port number 8000 and this will open Disrupt It is the default website which will be provided by Xango to make sure that our installation has successfully worked. So you test and shall work successfully. Congratulations. So head over here. And if you see here, there are 17 on applied migrations. This is, uh, another which is visible and at any beginning of the project. So we don't have to worry about this because migrations our database aspect ing So we're not going to do anything that is related database, but for the sake off understanding were going toe finish off. Does that show we're going to stop us? Ever? And this refreshment not allow? Really? It says the site can be reached. So what we're going to do know is bite on mani, start by migrate. So those of migrations on a played migration. So I'm performing migration. So it's going to perform everything. All are OK and everything is my greater. And now I believe the screen and one the server game. And if you don't know, there are known on applied migrations and no errors and no issues. So now again, refreshed of upside. And now you're good to go with this. So with this, we have created our project the next really over. You're going to learn how to create an app and what is in happens angle. So let's learn that. Thank you
7. #223 Fresh Virtual Environment: Okay, Right. So now let's quit a fresh virtual environment. Federal project. So I'm in the Dre. So what I'm going to do now is I'm going to agree. Oh, great. A new quick with name as e commerce. Yeah, I'm going to going to that Derek re. So what? I haven't done nothing. So what I'm going to do now, Days I'm going to create a virtually so engaged in. I'm going to give the same name as today so that I don't have to remember again and again. I know. What's it worth? What? The true environment. If you see this park, you have completely the process off creating, which may run. So So now let's see. What are the it this big threes command and see what of the library's say nothing. So get over it. And now, cradle, exude this comment. And I didn't see a bunch of thugs. Yeah, see, that's the difference. We have our finds. A lot of labour's installed upside off the botulinum. Here we have our own particular separate from our machine so that we convened a new tool libraries today for it. Any tune necessary finds and everything that is necessary. So we're maintaining its operating environment for our own process. So this is how this is going to work. So if you want to activate the virtual Inman and we're going to come here and work on and this that you're inside the veteran runt, all right, so let's go ahead and start by installing general. So what? I moved. It always is coming. And victory complete, installed. It's downloading. Yeah, it's downloaded. The only thing you know is installing it. It will do by itself. We don't have very much. It's kind of a traditional clients. Yeah, you starting. It is what movie takes a time. Every patient, a few more 17 it completed in gardening to mobilise we're installing dangle inside the which were moving so we don't solution despite outside of which were wrong it So if we know, it frees the last time we have seen and the list After installing this, if they seem you feel give the command could freeze if you a complete list off the, uh, instrument packages. Yeah, this successful instructor. No. Let's see what other packages inside? Yeah, the photos that I've been install a visible here now, all right. So this is over. They're going to start a pie. So in the next part were actually will get stopped. So let's get ahead.
8. #224 Hello: the main reason. Uh right. Even this command, you should've space. Bring the bush and we get the frequent delivering fight. If you observe here, we've got the version 3.0 point five. All right, Even though we did not mention Russian here, that is the reason because you come down here. 3.0 point five is the latest release, and it's got the most support until the April 2021 extend of extender support. So this is the one that has been supporting right now, and it gets It is the latest official version 3.0 point five. So this is the one that we need to install. Even though, if you want to mention it, you can. But if you feel do not want to mention it, we'll get the same vision is so let's go to the command. Are So what I'm gonna do now is, um I'm going to give a command single Rajhi e commerce? Yes. No. So, what is dark? What this does is it will clear depositor here. You should have creating, afforded excited and again. So yeah, the commerce. So what I know is quite on I on So if you give this command will recreate the developments over up and running so that we can access the website. So I do this. So what I'm gonna do, nobody's I'm gonna get command hated or it's going to do is going to give this developments of a friendly and this path which to dp on Sanders in this book. If you have something, Israel in this court cannot satisfy it. So, like 80 it will create a development server. And this right now I don't have anything on comes in. So what? I wondered how you you just come in and it's just go here. 80,000 on the local host and one Listen, Reginald, do about one bootsy. So if you see this part of the vaccination appear on your screen so that it says install were successful. So if you got here, you have agree successfully stole everything and use angle. Got it is up in So from here, begin going. Do whatever you want. Let's go ahead
9. #225 New Render HTML: are you guys? So I'm open our closet using Adam so you can use whatever edited that you like to use or I'm going to do now. Here is do creating. You're fired. Game as use. Not by Yeah. So what I'm going to do is I'm I try to change what we have seen. Uh, website So first of all, dangled our http. No short goods, then you So I'm going to give you Ah, function here. Speaks the request. More tickle. We're gonna fish responds. Oh, work right. Seeing this file. And how come to yours? Look by here, what with under new knees, I'll explain what, This year it's not. Find this later. So right now, your focus more on only one thing. She's changing, uh, design or changing working, assuming the stream of beach off over because so we're good excrement And seeing how Patrick works. So what I want to be here is And what no news import. So here, corporate, this spot. You sure it will not say that your friends will ever see homepage? You sure it is? So you see here closer running the game, your use. So now from God can use book. Who? Which saving? Yeah, I know. I'm using the inch. So what are these? Yeah, you see? Oh, shoot if you see successfully scene. So this is how we can change. What blessing? Here, you can use our heart so you can also see papers This team will be to see you. So opening jag ending unofficial. You can observe there is a changing culture. If you want to see 20 years, you're so this is how you can modify, change and use it. So this we're going to go for that and make some more adjustments and you go to learn some basic point And then after they were going to go forward and ran director html pages insurance which normal lines of strings. So now it's clear that we have the immediate over in the hitch demon, so that's go ahead
10. #226 Django Templates: Okay, guys know that we have seen how to render and hitched email cold to the website. Now we're going to see a different part of it. So now we're going to use Bootstrap, So get to the bootstrap Green website and get about started and play. Now here is the starter templates. This contents called a lot is he desired Cord is used for both. Stop here. We're getting the link for bootstrap and G. Query. This is from Papa GIs and London from the bush up disaster. So these are necessary. If you want to use bush rap and another than you can observe it is displayed. Emitted is the same thing that we're doing, but in a more comprehensive way. So lets you warned us so I'm were copied this thing. I copied it. I came here in short, off this. I'm going to right that your so what I'm going to do. You see html cord and now this. Yeah, I used triple questions because this is a multi multilane string. Yeah, that works. So issue of giving this court, I'm going to write which human in the School Court Seven. I think if this is running? Yes. So I'm going here. If you do, this is a change in the very high level is a present. So this is how it does. So I went to do something else. Uh, what a murder, you know, is insured off this super giving I'm going to do so. Do glass. You could do. I think there's on here. I'm going to close due back. All right. Seven days on the refresh this is Yeah. You see the Bush Trappist book full. This is how you can render Bootstrap pitched him and go here. But this is more, uh fixed. Me. This is not how we want toe you hit shame or cold with our website. So let's do one thing. So get to the city, sort by. And if you come down here, there is a partner. We can use templates. So there is a second for templates here. Excuse Which asked do Chris? This is the most important part for us for now. So let's call it a break on this and start off everything. That so they're us. Does betweens Derek race from the? The templates are being brought into the website. That's called the country Decker. So we need to give a pat two distinct. So how do we get back? If you see here, we can use this part on cropping. Distinct. Um, pressured here. So what it does is how nothing but based directly joins the base. Their current distance, where this collieries located, that is the business. So if you come here, you can see the e commerce. This is where the David our school ladies. So this is the best. So what I'm going to do now is, uh I will greet on your folder with templates. Yes, uh, giving you five. I'm really good. As which team will underscore beach hitched home page. Not extreme it? Yeah. Now crop it is. And I corps and Basit here. You see, now it makes more sense. All right, So what we can learn from here he is. The html page can be. So I'll try the buse. So you should have come here, So let's remove this. So what I'm going to do now is I'm going toe written that beach. The whole beach return in Sure of. It should be response. No. Very good. Use this jungle shot Birendra. So do it. Mender Here we're doing since the question. And now what we're going to send you are going to send the homepage almonds, scott page dot html. And then the context, We can learn it with this condition other things later. But right now, what we need to know here is there's rendering this page and returning it further questions . So this patient being rendered so save it, come to Hitch Demon. And if you refreshing great, there's some Yeah, we need to change this to templates. Templates? Yeah, and I'll Siri, come back here. This is Ryan. So I only need to do now is refresh it. Yeah. No, this is working. So let's change something in a general which now we can close this on here. We're going to write as this part. Hello. This is e commerce, and that's it for food. Stop. Save it. And now come here and refresh it. You see, this is working. So this is how we can really html page from their use to the local website. So what is happening here? Let's take a view. Let's take a view on how these things work. So here we're question for your so this year I makes every question you're asking this girl so many things. Do you want it? He comes here. You see, Sandy coolness you have The ureter part comes here. This is the one. All right, distorting. So it takes the home page as it's reflect whenever this kind of thing is appear so wide simply because local host call in 8000. This is the bass part. Every you are off. This one tip starts from here. Whatever. After this is present, who will take it is a reference. So after it doesn't there is nothing. It is simply so. It will take empty as its reference. So this is empty apart. It will take home page and come to the views and will make the home page view work. And when this is executed so what good Aries will return this part. It will render this whole page about HTML and goodwill, Oregon. This is what is happening here. So that's all for us now. If you did not understand a about a deposit crying, we find it and do this video again and check how it is working. So that's it for That's it for now. And let's get ahead with the next lecture
11. #227 Template context: Hey, guys. So now that we have learned how to learn under the hoods each day my home page Now we're coming to the state where we can learn how to use context. Context is nothing but something. The scent of a general page from this part. So this is a dictionary, but we can send some messages that are individual to each of the home page. So that a particular home page might, sir, our needs regarding to the message that we have sent. So let's do that. So, uh, let's just do coffee this black. So this is a boat bitch. This is contact Bridge. Yeah, all of the Missouri. See image? Demon Beach. But how can we show the difference? We're showing the difference in misconduct. We're going to send it. I do. As whom Bitch. Have you been to copy these basted in every function? So this is the about page his conduct, which have you ever descended here? Context in context. So now that we're sending each the home page with this context tight, it's so each off the context and title keys are saying But the message, it's the value whole page. I would be this different. So how can we show this message here? So now what we're doing here is Jesse. Um, in paragraph. We're going to you this way. They're going. Just give the key title here. So another thing that you need to take care of it is we are serving home page for this. All right, So what we need to do him this you about Oh, religion. Quote them here. Bage Beach. All right. And here. Yeah, but I was going to send some water. Could Yeah, we're sort everything. So when the home page is question, we're going to it to get dysfunction. We're going toe render the home page Just email with this context. And then ever my boat is our contact is a question. You come here. If they about is a question, we're going to render the same home page statement, but the different contact He had the same home patients dreamer with different context. So let's do that. So let's check whether ourselves running on rds is so come here. You see? This stays home, bitch. If you look at the source score now it says home page. This is the part where we have given the title part. So if I repressed about you use about breach. If you see here is that boat beach to see all of the court for these two are saying all right if you see, then Acker court for both of these pages are seen, But only this paragraph part is changed. That is because we have made it a dynamic way We're not setting it. Requesting it with context if I must. Contact is the same, but the contact page is different. So what happens here is the ascending each off their context in a different way. So we can either send message as well. I'm going to e commerce home page rush me first. Who's drunk? I would have called with C message, but I'm going to change the message here on one of the seas. Uh, learn about us. Um, be free to visit our contact. This is he not working. I'm going to do I do, Doug? Yeah. Here. 100 degrees. I'm going to give and I'm going to see message. Yeah, Sandy, if you want to come here fresh it, you free to visit a contractors is about Paige knows more about us and you fix albeit it says it comes home base must be first. So you just maybe we can modify our whole context with the different titles. The thing is, we can put more than one message here. So this is the way we can use context to dynamically powerful website HTML pages. This is where jangles very, very helpful. So let's get to the next lesson and learn more about them.
12. #228 HTML Forms: we're guys now that we have no never context variables and how to use them to dynamically displaced message on our website vacancy and understand the power of xango on how to pair up the websites. All right, so if you want to use this skins to the private saying and show your cool work with users you can put a stop here. But how could you? This is not the one thing that you wanted to regulate such, because there are a lot more things that you must be able to do. So unless you want to deploy it into a server bracketed, you lose us more than this to make them feel that they're working with some kind of software is troughs just displaying some information. You need to learn a lot Muslims than this. In fact, pretty much my dishes were consistent. All right, so context variable. It's very consistent with all of the Xanga website, so you need to use it. So that is the reason we have learned before. All right, so not what we're going to learn. Here is a statement forms and how comparative attempted instrument forms using example. All right, so I wanted to use this part. All right, On lead these two things. I will give it a new address. Conduct last speech. So I knew this and go back to the website and refreshing. It gives an error. Because although we have specified this contacts, a speech started here man, it says does not exist. The template does not exist. Why? Because we're uncredited. But it does give a simple hand. But checking the engines just the throws does not exist, gives a link. And we need to create this like the previous one. So what we need to do is come here inside the templates, greeting you for the name has contact. And inside this contact creating your find, the name is speech. No html. All right. I want a copy of this thing. Mvs it here. And now if you come here and Freshii, this is good to go. So now what we're going to do is we're actually going to build a hitch. Hemofarm here. So let's grant it so this will be off class danger. So right now, stay with me and you are going to do, and we're going to learn about it later in the course. But right now, just do it. I don't really get a good picture off how to write false. So right now I don't agree to do, Dad, uh, called Sendai six and colder struck and inside before on the phone. It's pretty much good to go. And all I need to do is you. More disdain inside the phone number to cure. Did you do today? The class on this group? These glasses are from Booster. All right, so here, the input type is text in this class, please warn Dash can cruel in the name Livy drooling. And we need to get a place with the way. And it could be name. All right, below this, we're going to give a button, which is the types of meat designs off press form, dash control. The name is barren and the labour off, it could be something. All right, so let's just see me and come down to the bedside and efficient ce looks pretty much good. Oh, already into this get a little gap and changed his color off the submit button. So let's just do that. Come here. Uh, I'm going to do it in your glass We didn't dash primary. It will give you a good color. And here I'm going to give it Be up to the degree Clear tradeoff. A small gap, your freshness upside and it looks cool. You're right. If you come here and this whole name and submitted, it's just forbidding why I just see a sort of verification feed. You see, the method of using here is post so posed. What it does is eat something the better through the website. So their confidence one is getting another issue. If you come down here to our commanding and I'll you see it shows get, get, get, get These are the ones that we have repression from the website to show us the phone whenever you give your first button What do you want? I would bring the history have been store apps store Broza So does it get me? I'm getting the data. So think from use a prospect. So whenever the user is feeling a farm and hitting the sub me, it is giving, the user is providing us with That pushed me a posting the dead through the service. So So the floor street most gives us some dinner. So this data has been 10 ticket, and it must move otherwise. Unless you are very confident that the user will do not submit any kind of malicious get because Because militias data is very, very harmful for overtime. So what we going to do here is we're actually going to make the SS? Yes, out of talking, available for our website. So Django provides us with discomfort. So if we miss a series of talking, it will not allow us toe make a question this coming here. Andi it continue. Let's go and secure. Closing? Yeah, I get the John and I submitted. It doesn't nothing. You see why? Because we have said this is a post request. Let's stop it and run it again. No question, it will get a get a question. But if we submit it, it was supposed all right. This is how it works. Like if you change this method to get all right. And now if you give John here, I'm sorry. I'm gonna run this again. He's a get request. Get happen, John. You see? You see some message here. So this is a CSR really talking and the full name. You see, the data that we have entered here is shown here. So the number of using a form it is really, really important which method were satisfying to use, whether it is get or post, because absurdity, if it is a log into question, All right. The user enters his name or email or user number rallies, and below is yours. He's going to give us the password. And if the password is appearing here in the you are, it is a very, very damaging thing for a little bit for the user authentication. So whenever the Ural is passwords, it is not good to go. So it is up to you to decide where you need to tended to post and get so if I changed, opposed, and a John just a commander on this game and if given name John when Chris This. Yeah, If you see, there is no message here. This house here sort of talking in the post method. All right, all right. We know where their eyes when they're making a get request, it is really really visible in the you are. But what is it that are realistically creating a postman So we are going through this matter. So the data is somewhere around here, so let's just do that. So if brilliant, they're inquest doored method equals wolf. What? I'm really spring metta Get the name is fruity. So Syria, you're she said Minute. Wait, I should know because no, I reviewed get but out here getting an attributes of our soul. A scoring chick here. Okay, There's not meant this is pushed. All right, now come here fishing and continue. Let's come here into you. You see it says John, The data that Vince admitted is appeared here. If you go ahead and give you something like leader, submit it either. Here is Peter So Ah, the important thing here is the post repressed will hide the definitely were for visibly. So let's add some things here. So the county beach has female in something else to say. So I'm going here the page and I'm adding some things here. You But this will be here. The name will be the past will be form Dash can cruel the police will be you may next exterior. The name will be, uh, next Syria. The class will be And what this water score outs. Girls place would be my message. Yeah, that's you. Yeah, I know. It looks fine. We'll get any doubt of the day here. Yeah, so let's get here and our justice. But we're going to print all the data that we're getting this year. Um, what others would be this? That's a It's a message. All right. See this thing? Come here. Proficient outside. I'm when you has, um, King. Hello, sir. Of Gina. Dark on. That would be high. This is first. And I would hate to suddenly began. And if you come here, you test the key, the real and the message. The only difference between other function disease. We can't find any errors here all night. If we see something like in Schruff name, we hit like teen at gmail dot com. And you said me there is no enter here, all right, Because we're not verifying whether it is a truly male or prove the name or whatever it is . We have not been defined. It simply say its name and user. It's email or name doesn't make any difference where so the next part where I Children leave with that problem for a nominal for now, let's just stop this part here. Let's get to the next one
13. #230 Django Forms: Okay, guys for an hour were created to form. This is completely ridden by using chemical. Okay, we have the form every time we can create this phone every time we need by writing each time a page. But we we have another veins angle Natural Danamon Philip creative form and put it into the HTML page. It doesn't in your writing hits to my core, so there is nothing but xango forms. So jangle forms allow us to create farms in an easier the an Ansel toe. Make sure that none of the Deva being entered into the elements of the farm are anything other than what we expect them to be. All right, so it's an email it must be naming. It's a character field must macaque ropy. So it checks for the are not, uh, chicks for the mistake data And make sure that the user and it's right better. So, insurance, using this kind off, uh, the we can actually create jungle forms. All right, now, let's come here. And pretty new. Fine. I'm really limitless forms by and here we are going to import xango board foams. Okay. You know what? We're able to these very good. A critic class for the farm's good contact. And inside the parents is we're going to get forms dot form and here we're actually going to give What are they Mr you need. So we're taking a name. What? Miss Meade here. We need the user underneath. So it is a character. So care field. And here in it it must me. And you mean being on the next years, actually, the message. So here it must be also caffeine. All right, this is enough for us to create a phone. All right, So what we need to do is we need to import this form into a view start, but So here's what I'm going through these prime dog forms Contact fall. Yeah. So we're using this form creative form, you know, contact. So here we can actually pass the instance of this conduct home into the context. So here, contact underscore form equal contact from and here, the actual undescended. So All right. Okay. We've got our contact form into the context message, and we're passionate to the contacts left. We started to extreme it. He right here. So what we need to do is get here. I'm going to greet the phone Similar to this right about here. Warren do created right here. Yeah, but this time, what I'm going to do is I'm gonna get into all of these things. I'm just going to see one day underscore. Yeah, that's so from here. Let's get to our website and refresh it. So just Yeah, what did you see? Um, seems like do is some stick? Yeah, my suit. Good. Here. Yeah. This is the Refresh it. Yeah, if you see you got a phone right about those phone created waged in court, but in honestly, this one doesn't really know anything like this one, So we need to make modifications. But dream thing is, we also got some labels for our HTML inputs. So let's do something that will help us. Toe could obtain this kind of feels. So what? I'm window sexually. He's Zankel free classes. So there are some building field glasses for our phones. If you see here, you can know what other field classes that are available have used. Careful here is bullion field on the try Stipe choice. Their date, the time. This will many types of various careful If you see here, we can actually modify our careful by using some distance. Just this different strategic destruction. If you see here the texting group near the building ridge it so he can use down to actually make some changes to what I want to know is actually get here. I am one of the form. Start by. I can hear his forms. Door text fiend inside It attributes equality here. What is the place that you need? Phone dash control. All right, so no, save it. Get your website and a fish. It What kind of reached being his forms? Former text book. Maybe it's gonna work. So the one thing that I forgot to reject Is it going? Go home. The next group inside this we have that. So I think this must work. Yeah, this is working so good here. Refreshing. You see, Actually, this one is as signs off the other thing. All right, so let's go ahead and go see nothing's for them too. All right, So do this in looking into other homes as well. Other includes, so sooner but a smarting gays. Yeah, You're actually using next area. All right. I think this must worker is fine. So I'm also going to give a police with you. Don't need a placeholder because we're actually giving your neighbor here. Since I'm home, she's has no 60. And so that's come here. Okay. This morning. Yeah, this work. So let's come here. And freshness, is he? Our home looks quite good as the other phone. So this is how we can create a form in a dynamically. Now, this one can be used in any place we want. Unlike the previous one that we have a damaged him in court. We can create the instance of a conduct fund by just importing it from the bonds of that pipe ill. And we can create instance off it, and we can put it in in part of the pace that we actually need to do. That's how good it is now that that's how good jangle phones are helpful for us. They're so are. Now we have this phone because let's just get rid off this form that we have written in html. So that's come here, baby started to Yemen. Mm. Before I do anything, I want a copy this and we sit here so that my farm has a button to submit, actually. Mm, yeah, committed on this part. So right now we have a firm that has these elements. All right, good to go. So So another thing that you need to do here right now is actually no. Come here. You see, we have the contact form we have graded. But unlike this part, we don't mention any questions posed because the contact US form can go the way. So let's just say the best. Not cool. Sh r None. All right. And I'm going to come and to start. All right, I'm going to see gris. It's a great start. Coolest met guard equals Who's sorry. I'm just going to say, might have done it if contact on the school funded ease on the school. Valid. All right, then we can bend corn on the phone, clean on the school data. All right, Let's just see here. I want us to see Yeah, just learning. So the first things and now I'm going to do does, uh, my mind and submitted on. Let's see what happens. Yeah, you have the name, email message, everything here. But another thing that we need to make sure is the data is prison, even after somebody in the phone. All right, we need to make sure that the data that we're getting here is curbed. And also, it gets a fresh and else hole. We need to make sure they detect any error in the data. Me too. Short message to the use user. So let's just come here. Go to the form stop. I hear what we're going to do is deaf. Clean underscore. He made here it will. You have the variable cells. So in the similar way we can actually create for each of the elements. So right now I'm here. That's finally frame it. So if all right here what the matter is e mail equal to self. Lord leans underscored. Detto no get here. Oh, demand. All right after that. If not Gmail e mail. So I know we're only writing called verifying whether the email that the user enter is D'Mello. No, we're only going to prove users that have a Jimmy whatever it is, we're gonna breeze forms, dog validation and see only do me is did through Sunday. If not, we wondered nd me. You see This is how the about and let's see what happens now. Andi, if if the data is similar like this, it will be supported. All right? Yeah. Suddenly, did you see Do these here? All right. Ever change something off it like yeah. And submitted. It is only Ji militant group. In this way, we can actually create messages that what are inform uses did actually see under a mistaken data. Let's go ahead.
14. #231 Login: Okay, guys, by now we have learned how to create a form and access to data. All right, we have seen how auto accident and create these forms that can check with any of the data is not correct. And we have also slowed how toe in the context. And also we send some rendering some html pages as well. While we have done some contact page forms, but we and we're actually doing unit in particular, But the data So we're not doing anything with data here just reading it. So let's do something that can help us to learn a lot about hope for handing data when the user submitted. So no. So let's just go ahead and create a log in page where we can actually use data submitted by the user. Alright, What I'm will do now is get here diff long in page crashed and what I'm going to do, you use and chef conduct. It would be this on here. It will be our slash log in dot html and I'll just something similar like this, but he sure flogging register on a school. Pidge, here is the register. All right. I think this works fine right now, so we haven't actually created the speeches. But now let's just see the in this way. We're going to serve our authentication. So logging is firing. Corinthians started blogging and register, please actually read the user for our website. So before we do anything, let's just create a long four come here. Class longing form and parent glass get so the user name that would be form star. Uh, password four star. All right, so this way we can actually get the information from user. And right now, if you're very actually going to serve this pages, so let's just go and create templates on the new for will be inside this. I'm going to create the file long indarti html. Yeah, we're not actually what occurred in their hedge Trim a page, but actually, we're going to copy this form part. Really? This part right? Let's just copy this and you go here and sit. All right, now, this looks fine. All right, but we stood off conduct form. We're actually going to put the longing for that. Let's come here. Here. What we're going to do is it's just really didn't put it clogging form here. A strong equal floggings for similar to the previous one request dot Post or not? Yeah. So if form not he's underscore rallied, then we're going to bring to the data. Dork tuned underscored there. Yeah, and but they actually wanted creamed. The user is authenticated or not? Yeah. Yeah. So let's just copy the same form, and basically, there were gonna be maybe change it. But right now, they're just going to use just all right. As you know, it looks fine. So what we need to do their ease. Um, So right now, what is left of any to create the You are in here, So come back beach and sooner to this, we could create another one walking beach. Yeah, this works fine. So let's just see whether Apple will not So run it. Yeah, it works. Fine. So let's just come here. Works that. Yeah, We got the farm here. Yeah, but actually yeah, way don't see our farm, actually, because here is in contact, but actually really into native format. So that's just right. Know what we can do here is, uh we need to create Sindhis phone to the conductivity analysis. Greedy context equipped room warm. I would say it's from Yeah, I think it works on We ever in descended. All right, so in the modern place is full of conduct from really to change it. Yeah, I know. It looks fine. Let's just come here. It is running, So refresh the page and now you can see this. All right. Ah, so if you Freshii all right, the forms sent me day. And if you see, we see is here falls here. So why does Where does this Air force? Because we're printing it. We are actually asking whether the user is authenticated or not. It says days. It is not indicated this way. We can actually do you mind. The user is not indicated are not all right. We have the form here. So you know what I really need to do here is we need to creating user so that we can see the logic. You see, before we do anything, we need to check this. We have something on a played my aggression. So we need to clear this thing. So card of the sever. Stop this over here and take a bite on many start by my great. Yeah, Everything is that all Migration started flight. All right, now you need to do this state by create super user. Yeah. So what I'm going to do now is I'm going to do a named it. I'm going to give e commerce email address and we believe password. Not much necessary right now. So I'm leaving it. Okay. It's request past women. Definitely. So I'm going to give something. Gets the passport? Uh, yeah. Okay. Does not, actually. I would buy. Yeah. This weapon use it is created. Now go ahead and run the server you don't see. Every city has no honor played migrations. So let's just go to the website on refreshing. You'll see there is a false message because things that is not as indicated. So what I'm going to do here is I'm going to give me confidence and the past world. I give this deceive and you submitted you get the data you get, did it? It just falls. And also the user data is coming coming here. But the North is noticeable. Thing is, we can see the passport here as Brisbane the text for But we wanted to be not if you see most of the websites. In fact, all of the website have the physically off hiding the password with black dots so that the user, you know, the password while intricate, but then another. You just get a sound in the system Might not actually catch it unless there fishing on the keyboard. So let's just do that. But that we need to learn some password field. You come here. I'm sorry. Growing big hits. You can actually see password input here. Yeah, this will hide whatever it is in tow. Password. So let's just go to the court and from Sir Pie here, we're going to give it as rigid Gualdo Farms. Password input, sir. Visting. Yeah, come here. And refreshing. I'm going to press the log in page. What is to say I'm in here, does e commas. If you see anything that I do now, it is in black dots. You see, this is how we can actually make it disappear. So Okay, guys are checking whether the user is not indicated or not. We need to actually perform some operations so that the user can actually log. So we will do this stuff right here. So let me do something. I'm going to bring this thing up here. Yeah, right after greeting the farmer stance on what I'm going to do here is, uh, context form looking for Yeah, I'm actually going to create any stand so that the user is actually actually submitted the day, right? What it will do is it will create an empty form again instead of having the better right there. So let's go ahead and check. It actually works of Mark. So if I do something here submitted dis actually not working because it has saved the data . So if I come here and so logging and if I do something like e commerce on some passport and submitted, it's gonna indeed the thing. So whether have this thing is in private, you can actually get here in your in pirate window, and you can access it. So what we're going to do now, here is we're actually going to make sure that we're performing an operation so that the user authentication is done so you can actually come here and seeing the using the Danglard indication you go to hotel love easier, and we have exact crosses so how we can actually perform in logging operation. We're not going to use this part. You can have all but they're using this because this is pretty much what we are doing here . So copies. So before that, we need to copy this thing. Come here and place it here. All right. So what we need to do here is we actually can copy this thing. Yeah, copy it on. Good. Into the long wooden. And they're actually Would you perform it here and And this part that should be here so that when it happens, these there is distributor. Who? Such a speech. So now let's get the use of new in the past. Where soon All What do you have here nurturing your That wasn't even password. So let's come here. All right, so this before authenticating it really to get the data. So what we have is a name equal of song dot underscore data dog get is a name. After that pass, rule the school bed at all. Get all password. All right. So we can use Theisinger and password here to authenticated. And after that, we can actually print that. The user is that indicated or not right to get. And now they crushed and user really sent to the logging so that we can actually log in the user after that. Okay, Toe, actually reconnect Instrumental showing the farm you can actually read Eric use. So we do. We want to reduce the user. So for now, let's really him to the logging bitch time from here. Blood? Yeah, I think this looks fine. And if there is an ever we want to see Okay, so we have finished the entire loving peach form, and I remember to remove braces after he's in the squad indicated, because that will give you an error. There's not a function that we call. This is a very below or an argument that we can call. All right, so let's test it out. So I'm giving what are what other these e commerce. After that, I'm going to give the password and hit, Submit it executed. So let's come here. It says no crew and it accepts the passports and everything. It is true. So the user is logged in. We can actually going to the Edmund actually see our user. Yeah, If you come here, you can see the user get into the users. If you see the commerce, this is the work. So you can actually create more Users from here are from the commandment of man and also create user database and store them here. All right, so that all the users were gaining access to the database not to change and make images, but actually creating accounts to create and comfort themselves in started in the Arab ace but us So the e commerce here is a super user. It's like the pigment for everything. So whenever you create will use any website, there is one maintaining the website on the back end. And that person is called a super user right now, the other people who are managing a website and a database. So we are the super user here, all right, busy by staff terrorists by super is a service by active status by staff in the sense the Berkus or the employees and organization that create or provided applications to actually function that related to the database and users based super user status. Which means the person who is the number one close to the database. All right, so no one is giving access to the databases unless super user is permitted to. So this is the kind of status it's super user has by active in this. In the people who are using the database, it can be user staffs. Opelousas, Anybody? All right. So, uh, the next video actually want to learn how to create a youth at Richmond's user registration , so let's get ahead.
15. #233 User Register: Hello, guys. So we're finished. How to make a long and use it. So right now, our music is lovely if you see, but really, to create a mechanical so that users can register as well. You see, Right now, all the content on the website, it all. Is there anything? He's visible for everyone. But sometimes you need to show only some things and fuel the information. That's probably to uses that are actually on your database. So blue there. Let's just examine what we're having now. So if you come here and she primary message and you does these things were loving use this . All right. You need to get your coma here. And, uh, this We could be invisible for users who are actually, uh, not loved it. So let's just it's that, But let's just give us with He was just going to see the whole village. The message. I'm just OK, so what? I wanted to know these. I'm gonna give Dag this through, called and here I'm going to give the message as private in the score under schooling message. You sure you can also see private message? All right. Who save it? Come here and finish it. You can actually see the message. This is real users loving. Okay, so let's just go in now. Going to use it, all right? And you can still see the message. This must be supposed to be your only by the logged in users. But we've been still seeing even the real longer. So let's just a baby. So come here. You could get into the views I actually went. Carpet is Okay. So what? I'm under news. If request not use it, you're gonna screw up indicator? No. If the user is authenticated, Didn't look, we're going to do you, uh, convicts with private message on right now. The user must be authenticated to see. But this has come here and fishing. The message is not It's a the private mission. But the message is not so if you come here so I love you. Thank you. I love these days. No, you and I got a little bit and we can see because they are not being able to view. So this is how we can actually money if you guys. But there is another way you can actually do it too. So if you come here. You can see what? Uh, well, private on the school message. And it you come here. Um, part of the loving page. Uh, let's just leveled and see what happens. Well, no, because used job dog, because the user is logged out and we can't actually put this message in the context, so there is no way we can see. And you can also make sure that use it. It's hard under 100 in this way on is, I think, gave the couple fantasies. Yeah. And now, then go ahead and refresh it. No, but loving you can see the message because he was really loved it. So this is Well, you can do it also. So what we do, what we need to do now is really to actually create and finish the use of the destruction. All right, so let's go ahead into that. Hello to the farms. About 55 So similar to this, we're actually going to create something, but you should have longing. We're going to say register. All right. Um, they're actually going to make sure that password is into two times. So that use, um, creates the person that he can actually understand. And very, very password. Christ, make sure he's driving the right, all right? And we also need to do have an email, man. Yeah, All right. And next thing years. We also need a password. Do All right, look at this. So but we're going to change the liver because we need to say different from a password to You're going to say control has worked on right Syrian. And now what we need to do is come here on or what you have created in. They're just a form I come down. I'm actually changes to related to the homepage about next year. What we're going to lose change this to we just took home and similar to hope. Teoh, go send the farm in context. We're going to do a scene here, and yeah, I think it works, but I think you need to do here is we need to actually reviewed html page. So come here. We just got hitched. I just have a copy. What's in the logging? Yeah, on the next thing is, you want to start by so restraints with Paige Compere. You sure? Long interviewed about seven. Justo, you should have destroyed his age. Yeah, along in school Beach. We're going to try to score beach. I think it looks fine now, so let's go ahead and district. Yeah, it comes here, so everything looks fine. All right. So not where we need to do is we need to make sure one of it is getting put into this. Feels looks fine. Let's go ahead and do that. All right? We have finished that. We can actually see the data, so let's go ahead and gruesome. Uh, I'm going to get as John John dinner, dark room, And the password will be something like No. 7 30 And I go here, you can see all the as Mrs Very good. It's not ivory, but you need to make sure that these two years have seen type together. So next go ahead with speech, forms it up high. And here is what we will do is you're actually going to great function. Has South Yeah. Data green. Yeah. Here. Past your equals, not screen. Understood. There. Get our password. All right. And passed through this. It seems like this exit. Yeah. Now we need to make sure that we after the great chicken. Yes. Password not in Quito Hasn't do. Then you can grease see passwords, much match. If not, look in return. The debt that we have got here. All right, so I think this looks. That's great. I'm going todo gather That is not matching so something. Admit it here. Why is Mark Let's go. Smart wants Oh, so let's come here using data you now. What's the problem here? Yes, we can, but I am cross Miss Saigon. We need to change this clean. Let's come here. I want to do something right, John John Adu Jima's brought calm. And here something on years it's his passage must match because these two about matches. But if I do something like sooner I hated it was, you know, a little, actually. So what's we're giving it? So this is how you can actually make sure that the pastor's matching and if it gets But we have already learned this part, but I make sure that you don't miss it. So let's get ahead. Alright, guys. So we have finished. How toe Take the passwords that would path within the confirm password us matching. And now we need to make sure that we create user object so that we can save them. So let's go ahead and look at the xango documentation. So if you come here and look at the Xander at the education system and we had our user object, you can see there is a way of creating users. Django tells us. All right. The most air ready create uses is to use the include a user created industries, their function. This is a helper function which is provided by the Xanga itself. All right, Right now, we're not actually going to use exactly this, but we're going to use dis command. All right, so let's go ahead and good. All right, I'm coming here. Go to the top. Off it and from the contract Art art. I'm going to write get user underscored model. All right. So I'm going to use this morning to create the user objects. When I come here in the register, I'm going to create a user object. Yeah, so I created the news about it. I'm gonna come down here, and whatever it is, I'm going to create the new user here. Yeah, he was their dog. Oh, objects dark. Create underscore user on like here. We're actually going to get details that are necessary for us. Yeah, simply like that. We're going to do it free male as well. Yeah, that looks that looks fine. So we're going to give the user name you made and the password. This looks firings. So let's just print out a new user and see what actually skating. Yeah, I think it looks fine. So check with us. I was running. Yeah, Let's go ahead and get to the richest apart. Yeah. Thing is feeling with the details already, I'm going to go here. Yeah, I'm going to give that John John Deere, jimin dot com Passively, *** learn hips of me. So if I come here, you see, the entire leaders with are shown here and the new users, John, So we can make sure that our user has been created, so let's just do it again. Ones who? So now the rating for the local host? Yeah, there is the matter. Unique constrain thing. Okay, so the user name must be unique for every user. So if it fears is going for a never So this is more often that we need to hand it because we need to check with the user, serves entering a user name that is unique, that has never been used before. So let's go ahead and do that. All right, let's go ahead and make the quite changes to make sure that it is there. The center doesn't. So let's go to the front door pie. And the very body thing is really for Xanterra. Corn cream. Dark off board yet using model. All right, So what I'm doing here is I'm going to create user object. Yeah. So when I come down here, who instead of just form here deaf, clean, underscore, user name said so here, I'm going to change the user name is equal to so door clean and the score data dog, get user name. Okay, so now we're going to do something that we have. No, we haven't done until now. It's the query set. So what is it? We're going to discuss about it in later classes right now. Just do or I'm going to do. And you would see a result happening. Sure, it is in everybody's name. What I'm saying all the top off it off. This works is the user objects of the filter by business using them. So whenever there is a usually matching inside the user objects, it will result. All right. So if result dark exists, okay, then we can graze means dog. The allegation around saying, Here's a name he's ticket. All right? If not gang written. Who's in there? All right, so let's just do something sooner for the email as well, Because we don't want them to use an email that that has been used 10 year. You want a unique email as well? All right, I think different. Fine. You just need to change this. No. Who do every meal as well. Hope? Yeah, I think it looks fine. So let's see our Yeah. How cell is running So fishing the given user and and must be Sepp to right here. I'm really creating new users. This scene I'm willing to give has burned Well, you ever created on the school giving us an emotionally set? What is that it that we're getting here using See, the elderly are finding Here is from you. Stop. I must be Oh so next right now. So I'm going to give the user name John and Amy Really jaw at the refugee. Murat. Calm the password could be anything, he says. The usually mistaken and they really is already used. Even if you try to do it for individually, like user name is separate and the email is not already taken. It will show this ever. So let's just try it out, All right, so I'm going to say John, But it will be John toe the red off Jimmy the passport. It says he was any mistaken if I tried to do joint, too. And John, we'll get anything with the password, I tell you, the email is already used now. The basic principle is we need to maintain consistent in the database so that users do not collide with each other. Okay, so by this little have learned how to grow the user and how to check whether the match with each other or not. So, in this way we can actually create an authentication system, and it's autumn eyes for the users are individuals who have unique account. All right, so by this we have learned a lot. So the main question you might have is where the hell is this. And what the hell is this? So these are pretty sets, and we're going to learn about them. Little lectures. So right now, this is what they have done, so that's good ahead.
16. #237 Serve Static Files: Okay. We have learned how to, uh, show a user registration and learn how to clearly user object and everything. So let's learn how to survive. Study finds. So study fronts as a little bit different from extremophiles like CSS JavaScript or any images, words, anything like that. So a very important thing to note series we cannot so static file seen as this template. So we need a different mechanism. All right, So, uh, jangle does not do the part for us. Really? Perry, that he is in a patty or Amazon Web services or anything like that. But we must make sure that jangle does not do this thing. It is very, very important. So you cannot use their go to serve. Your study feels like dispatched. So unity Keep that in mind. So let's go to sitting. Stop, I And if you get down to the end, you can see this study fights. It's all CSS javascript, any majors. So if you come down, here is the link. So copies get here, go to the spot and you will see here. This is a very commanding study. Five so general prizes with some information. So if you see here There's everything that is necessary for us. All right. So serving the fight So what? We will lose. We're going to copy this time on? Yes, it here. I want to move this. So what is going to say is exposed to space fighter Dichristopher? A study finds will be so my on the school I'm going to give this name as this. So I need to create a directory, This name in the best there. So where is our best there? All right, so this is our base there. So I really creating new folder. Yes. Yeah. You know, this is the Yeah, this is very degree. Yeah. I don't know anything on. No, what are you to do? Is I need to create my SD in part. So this is where um it's about my ecstatic, static Syrian, right? Exactly. Manish? Yeah, What a way to do Here is Stop. Yeah. So you're hysterical? Yeah, we're here right now. So why were these? I'm gonna get Southsea and yeah, not what I moved to Please. I'm going to copy these indicting into that saucy. - So here. I'm going to create static on this course. Cdn has he now? Yeah. Really? Doing with Stamford inside the associate as well. So if you see, I moved my own according to this part, all right. And a static Syrian is here. So what I need to do now here is create the root fire. Who static on the school route You can do, Uh, where is not had. So let's just copy the one that's about here. Yeah, studying in this school. CDO insure base near I want to share. Say path dog Good, right? I wanted to do is it's going to bring the name that is Derek right off this base. All right. I didn't You made clear here. Alright, guys, after you fi sitting of this thing is not a blender for deployment of the party use, as in the general documentation accepts is you see? Come. We come down here, but certainly decided fast is the last step. It says this is not suitable for protection. Lose The jangle condition itself states that so if I have to say it anymore, times have to say it is not suitable for the protection use. So But you still want Oh, see them standing Finds being served and the deployments. Or right now, we're going to do that. All right. What I'm gonna do is I'm gonna carpet on these two things on carpet. I'm not here. I'm going to the You're by. What I'm gonna do is on pace done here, and then a water murderer is I'm going to get this team, Carvey and and come down here. Three things don't debug. So sure are this. Yeah. No, it just fine. OK, second of all these things. So you might wonder, what is this sentence card? If you go to the settings 0.55 and get to the top of eight, you can see there is a debug available with True as its value through the security door ground with diva turned on in production. So when you actually put the project into production, you you have returned this into parts. All right, when this is false, your eurostar pie here convince for, so these won't be in the final straight off your project. So this is where we can limit our static set up inside the deployment, testing, deployment, go out getting into the production. So let's go and see another. So there's not running. So bite on grannies dark by TV. Saucy. And here we have. Yeah, and run, sir, He's running. So what I'm going to is local horse. So now this time, what we have wondered is we're going to do for the ed Me? You see your Edmund mayor exactly like mine. But the thing we're looking for here is what you see. It is looking for the static fights. No, there is the most important thing because you're doing my differ. From what? My knees. But if you actually get these things into your static city in it will be as normalize. It's a zit have done previously. It might have looked for them previously or might not. But all that medicine depleting right now. So what we do know is exit from the server and type this wall in command pipe on manager pie, collect static. And now yeah, study plans copy. So, no, let's go ahead and a pressure. You see, all the static files have been copied. So now the only thing that's doing is this So really the static lights you come down here and if you go to the static cdn, if you see. You see that, man? You see all of the things that are part of this product. Admit, admit. All right. All right. If you observe, you have signifies all on the static points about their it projects are inside the statics again. But we already something else. All right, So let's growing and deliver this part. Yeah, yeah, the part distributed. So what I'm going to do right now here is getting the studies that get to the bottom. Yeah, I'm going to do something here. I would give another part. Static underscore route. All right, because basically, they have something else necessary. What is it? It's the Medio. So all the media five instead of mystery, will you come here early? Media under school? Look, Yeah, I'm going to give media. You are for this as well. Media. You are? Yeah, that looks fine. So go to the yours, but pie and harvesting. Yeah, sure. Static. You're going to say you are starting on school group media. I think it looks fine. So that's kind. So now again, the collect static. Yeah, you're finished it. So if you come down here inside the status quo, Yes, you did So we need to also create a new folder Media on the square root. All right. We'll never be applauding in media fights, pictures or something, Girls, all of them goes in here. All right, all right. We're suitable. Static would. And the video routines of the static Syrian. There's more of, like a strategy server rather than the Syrian. So how in Apache you are a native you soon this months. This is similar to that. So to do that, let's go out and get distracted. My project. So here's the part where our project, Sarah friends are safe. So I'm going to do I'm going to create in your folder CSS and inside it will create, given your fight between me. God CSS So I would have something here. I'm gonna see if this thing see you have this year. But we don't have it here. So what I'm gonna do, you know is come down here. Thank you. From this commander game, it's easy to long, right? Yes. During you see, we have got to CSS and demean that CS is fine here. Is he Warrick? Will do is it will simply a 1,000,000 million features like Apache and Amazon. It'll be a service. What Do what those servers do. They eso the static files. The similar rate distinct. Emulates exactly how those service do. So if you're glad and get a new folder like I am G on, someone does. Yes. And I go ahead and get some unis like I want to get the nebula. Good in. Outrageous. So I was a big distinct. Yeah. Why did you save jazz? I'm going to go commerce. I saw. See, you started my budget images, and I'm seeing here. All right. I didn't say so. We go here, there is individual. All right, all right, we concede, but we don't have it here, so let's go back into our command and my static gonna study. Did you see here? We've got here in the similar. Really? You could relate the futures off his static server. All right, Although we have make sure that the static city and gets all of the started finds of a project in the evening and everything we need to make sure that it serves exactly how we needed. So why are you going to do here? Is let's go templates on Let's see how we conserve them. That's a road on the homepage. So if you come down, this is a template deck mood static. This is a conflict. Argues to load stat. All right, so what we're gonna do here? So coming back here, copy this thing and pissed you so similarly. Yeah. So what is the picture? Stati. And now did you see a slash made dot CSS? Yeah. Similarly. Let's get down to here. Oh, give image. Sassi is a quantum static. You may just slash rating. So his name is a little bit strange for us or why I want to do I mean, we're going to do this, just slash nebula G. Okay. Before we do anything that's been college static to make sure everything was all night Yes . Come down here. Yeah, maybe a g p g. Sure. Come here. And now around the world. Yeah. Go to the homepage. Yeah, I say something that next season gray color and we have seen our homepage here. Our image. So this is how it helps us all right? Connection. So if you inspect this thing you see, it's a static class in its a slash muna Cheers static slash immediate slash nebula. Deputy, if you come down here, go to the euros. Stop No bullet. The setting stuff high. Come here and change. Do it was seen and come back here and refreshing and the source of the static slash b c. There is a reason why it is very body. So this is very, very crucial in the development staff strategies. So this is very important in development park. So development distinct because it depends on what the EU essence are and how we have served. This is going to be really different from the production stat strategy because important changes the whole out of the game. All right, but right now for the development testing, it's good. So that's what are long and do this thing.
17. #238 Products Intro: American guys by now you have a very large example. So the ending, what we have learned in now and get to this next step. So now we're going to start building our projects First company, which is products company. Basically, we're going to display a number of items on the webpage, either list or individual fashion. But underlying thing is you even learn how to store data in a database and retrieve and display them on the page while you're calling. This has a competent off our project, zam, because it is not so. We've been looking to the specifics off hope actually create an app so without anybody, let's get stop.
18. #239 First App: So now we have to learn one thing. The xango. These with replications in the form off APS. All right, basically, what it means is Django device. The bigger application of a publication, Dwight's of a replication In the smaller parts collapse. When it adds up all the smaller parts called ABS, it constructs all off them into a bigger application. So if you see a shopping website or are videoconferencing website or in a social network, eat off. The individual task in innovative application can be divided into an individual, can be divided into in ah, separates Ignat, a separate company, that the term that we have used in this spot so each of them can be divided into separate competence. But in the case of Xanga, we call them acts, so all of them can be clubbed together to form a bigger application. So XanGo follows the same path, same process. So what we can do here is right now we're going to create our old app for our products. So let's go ahead and do that. So I'm coming here. I'm in Madeira free. So let me take a command. So my command these by Tom managed by stock death and right now available to create a product that so we need to name it that that is very suitable and convenient to access it. So one major thing that we need to take care office if you come to the setting, start by and come down here installed abs. All right, these are them after install by Xanga itself. If you see there are month Blatter, if you are clean up the admin his used based in previously test while we actually have a longing All right. And we have used dark in many situations. Like if you come to the view struck by while performing any user operations, like performing a Greeley user or anything like that, we have taken it from the contract Gortat all right. And the sessions and messages started because this always learning coming lectures. But right now we need to take care of. One thing is that we cannot name app with any of these. We cannot name at the A name that has been used by Xanga already. All right, so we need to name it carefully so that it doesn't collide with Disney. So I'm going to sing green emitters products and he tender Yeah, the command is executed. If you come here, you can see the parts app created. You see, use a bunch of files here. It means out by absolute by model, start by test that by view, start by it is a migrations. All right, Whenever we hit a command, Spider Man is that by start up and happening, it creates a set off finds into a folder called Products because we have landed as products . So we're going to use these files, create an app. All right. And another thing that we need toe. Another thing that we need to really keep in mind is that the way the actual structure of rap is very, very important. You don't want to go chunkin, uh, duty so that it's hard to maintain. It's an individual thing, and we don't want to chuck it big so that it's hard to manage. Ah, whole big thing. All right, What I mean by that is right now we're actually creating a parts company. So you don't want to create a products competence on every each category, All right? Or else if you want to create each each and individual category, you might as well commit into a category that is very well complex in maintaining. All right, So you raise I wanna meet then a categorical app if it is complex and managing like I don't want to include the products and the product and the building in the same thing because that can be tiresome from managing. So it should off clubbing them. I'm deriding it there. All right. The products competent is different, and the building company is different. When you come to the products confident you can, you cannot chunk it down into furthermore, because you cannot manage each and individual category like our home appliances, electrical stuff, uh, sports stuff. You can't manage each an individual thing that's even more tiresome. So they are fixing it parked in this way. If you want to Chungking done, you can. If you want to take it big, you can. That's up to you to decide. How do you want to do it? Just make sure that it can be comfortable when you do it. All right, so we thought any delay Let's get to the next part
19. #241 Understanding CRUD: Hello, guys. So now they're going to learn an important concept, so let's get it. So is the concept off Kurt crud. All right, so the basic definition of these current victory up deep and delete All right, these are the four operations that define crap. So what? So these are basically requests made from Groza to the so All right. What is it, Chris? Ah, create request is post and Rick, you is get request. So retreat in this sense, not an individual, it can be an individual item, or it can be a list. All right, are you can be a search MIT Baiyun user, all right? And I did so update is similar. Like our host can be a patches with. All right, Andi leave is basically a village or parish. All right, So post is when we're actually giving that are to the server or dead of its get is when we actually pull up there. And so it to the user oblique object request is like posting pat. It's, like, mortifying and information in the devotees and deal it is actually removing part permanently. All right, so these are the operation straight mainly involved and actually about sober. You can request with browse, which means I use it. All right, we see, let's go ahead and check it, Uh, in real life, So I'm coming here. I'm actually going toe start my server for several reasons. So I'm good night. Yeah. Yeah. So I'm going to the Edmund site. Yeah. So you need to give gather to this here. All right. I may have forgot, uh, password. So what I'm gonna do is I'm with creating this super user. Yes. Super user. Ik almas. Come one The password. Yeah. Yeah. You come here and go to use the spark you can see different off different parts. Like this is the one when we have created in previous videos where we actually could really use the registration. All right, if you come down here, you can see there's many number off. Get requests. All right, So if you see it, this post request it mean long. The Post request is actually when we have given the blogging better, Like the news element passport. So when they kick the longing, but, um, you took the information and made a post request which one sent out that occurred at that server and tallit with information in its database. And when it got tally, it sends the it makes it get a quests. So these get requests will allow is to see this information. All right, eso all of this information is handled and viewed to us because often get request. So if I come here and say equal pickle in the center, right? Hey there. To users. For us, this is a list. Although the request is get all right if you see here, we made a get request which says ico as a such king. All right, we got the result as it get. So this is a list. All right, so So come here. And Fiacconi even then it isn't Get to question you see here. So if a glad and do some data to it like John? Uh, no, no, Carpenter. I'm going to need the I was going to save. If you come down here, it says post the use that please data has been changed. All right, so making a change, like updating some information, is also a post request. Sometimes sometimes it can be put some kinds, sometimes India patch. All right, So if you come here and you can add user, so add user is actually giving an information so it can also be a creative question Friends opposed. Come here and pick on equal someone come down here We have Dele docks, which means we can actually perform a deal it operation, which is a delicate question. So in this way, so you can actually make credit question so that the data miss, including the Web server, can actually communicate with the user. So that's all for this lecture. So let's get to the next one.
20. #242 Product Model: Okay, guys. So now that we're, uh, said about products app So now what we have to do is we need toe, uh, create some markets. So moderns are nothing but similar. Toe comes that we have done in previous suggests. So if you come down to forms, you see the log in from contact form in the recession. From these are the fields of us off form for a hitch team perform these fields act as a reference. All right, whatever we make whatever we build here, like the car feel email food. Careful. These things tend to be the same exact fields that we see on the Hitch Limmer form said in a similar way, if you come down the model struck by the things that we created, the elements and the type of fields that we create here exactly what our databases are medical. All right. Simply put, this is where you create your data basis. All right, so let's get ahead and start me. That's so here. What we're going to raise we're going to continue Arabists with products, so I'm gonna give class product and similar, like forms reform. I'm willing. Mortal start, Marty. All right. The name convention has to be really important because we need to give card products because although you can give it products, but it's make sure that it's the name. Convention is good because whenever we create an item into product database, it's a language item off a specific category. So it's important toe given name that is suitable and is actually matches that with the operations. So what I'm going to do here is give a feel a title for our item, and it will be more to start car field. All right, And the next will be a description for water. Right? And we're putting it description. You could do moral start next food. All right, so let me put some cabs here. So a careful is like has a set off ranges like you can put a lot of texting. There's a limited, but in the text, really, you can put in a large a large amount of text that there is a rising. There is a reason why description. It's texturally in our case, so I'm going to space for the man. Excellent. For here is equal. Do how many good as 30. All right, for text, but we don't have to give anything. It's so know that they're great changes for a product moderns. So save this model start pie and the video thing. Every time you create an app to Louise, we need to link the AB with the project. All right, We have created a rap, but although there plater wraps, we need to link them to project so that they must be included in the final face. All right, go to the settings up. I come round here, Miss Solis. You see, these are all the abs created with xango, and they're included. If you don't do any off them, it won't be part of her project. All right, Come down, Hashtagged. Our own score, abs. So why don't we will be here is products called see? Product is around, so we have specified it. Although we have created products as our app. If we don't pass by it spits fight here. It won't be a part of our project. All right? One way it is more comfortable and convenient because you might have you might have a more number of abs in your project, but no, you're not every off one of them is in the final face. You you want to push the ab that are on the final face to the project? But you don't want everyone on police so you can exclude the ones that are not really from here. All right, so save the setting, start by file. And after you make sure that all all the field So for your model that are necessary for you have bean specified here. You need to come down here. Close this over. You see, this is an important step. Every single time you create a change in your models. Not Fifi. You need to perform this operation bite on men manage dot managed by make migrations and now bite on managed that by my great this steps, these two commands must be perform each and every time you make a change in your model, start pipe. Right. So this is very important. So after you have made changes, the next step is now we need to add prices to the modern. All right, So what are we going to do? Is Price Morin's not This is I feel all right. So this is the actually feel that is necessary for prices because prices are always dismiss drives. So another thing that we need to make sure is adjusting should have some attributes. So let's go. Uh, here mortal fear reference. And if you check for dismal field right, it says if it resumes this small number, he has to quit arguments Whenever it's just required you, we need to specified them. Absolutely. Alright. What are those two Maximus College. It's so the maximum number of digits on our in the number. So the number of digits that that can take the whole value off the price is what Maximus qualities. This will underscore places. So the number off, dismal place sister store with the number. All right, So let's go ahead and specify Max underscore. Digit on decimal underscored places. So I'm here decimal underscore places. Let's get to And Max underscored digits equal. Do let's give 90. All right, so save or more still apply. Come here and may operate make. So whenever we change or make any teen in the moral start, by really to perform these operations make migrations. You see, there is some question here. You're trying to have a non bailable field price the product doubted Defour. We can do that. The database needs something to populate existing rose on right. So it says the price cannot be added to the database unless there is some default value for the price item, because the database cannot be populated if it doesn't have a different price. If the price well is not provided, it must have some lethal value to be inserted into it violates. The database needs something to popular existing rules. We don't have any rules, created it. But why does it see that? Let's examined it. So if you come down here, Xanga does not communicate with the database straight away. All right, Jangled does not do that. What it does is it comes really sparked my gracious and it checks for these things. The initial rpai Missy. This is the initial migration that we have performed while we have created title and description at the fields for jangle comes here and takes what other fields that are being placed previously. It's his title in description, so it doesn't see price in here, so it makes an exemption that the previous rose, although they might not have been created, it doesn't have any price value. So it makes an exemption and say stores that something is necessarily populated existing rose. All right, so what do we need to do? We can Ada created default one off default now. So it says if if there are any existing roasts, it will give, uh, some value with no value to the existing rules. And we're gonna later on more to fight or the second option is quick and let me out of defaulting mortar struck by you. See, you can choose either of the operations, but right now, I think option trees better We can because we have the freedom to make a change, whatever we need to do. So what I'm coming to here is I'm going to give default value as $19. 99. So Daddy's my default value. All right, so come down here, sell adoption too, and now make migrations. Okay. I did not say save this. Come here. Make my aggressions. You see? Now there is no now I need to make migrant. Yeah, if you now see here, the final itself says product on the score price. Now the price has been added. Do the product market. So this is how it works, All right, So although we have learned much in this section, let's go ahead and lend some more to make sure that we have a good understanding about it.
21. #243 Django Admin: Alright, guys, we have learned how to create a model and make it migrate to the databases. So we have learned a lot of good stuff in the previous lecture. So it clearly good foundation to understand how Xanga beans with databases on another thing that we need to understand here is let's get a modern and use our model back to save some items, but is not going to be the kind of it is some like you, the super user. And you wanted to modify something. So are accused work on the database in a realistic way. So what? Remember to Louise go to the admin Got high and in 40 of modern I'm God. Mourners. What? Yeah, And come down here and add site. No, your district on here and say this for saving that. Come down here, buy it on. Managed by on server. Yeah. So get that here and go to the admits. You see the part of beach part Horace previously differently groups and uses, but now we have a product. There's zero partners. Go ahead and add. We're actually creating, creating something. Which was it? See, Creative Credit Operations Coast are I'm going to give it as I'm fasted. All right, Spoon, that, uh, that is a challenge are also quotes my challenging, But I'm just putting it on suit. Yeah, you could project object want. So let's go in and out of one. And if you see if I every time the 91 9 this is the big hole part you can either raising of lower or remaining. Think it's up to you. But the default is 19.9. So what? I'm really good here is I'm going. Ah, head. All right. By this. My hat. I don't know what I'm saying, but I just want I'm with you this 59.4 foot and sit saving. You see, already saying part object someone to stuff like, All right, We can actually do a lot of things here. We have created the actually posted. Chris, Julia, is the post request a post requests on light. Uh, you can also delete something if you select an object. Yeah, you can go ahead and did. Yes, I'm sure. Deleted. You see your bill left. So this is where you can do it. But I did not perform the surgery right now. but this is the way we can actually do stuff. All right? Okay. Although we have a family of your operations, that is, it most likely will be done. We need to change the way the objects are being presented here. So let's do that part. Getting to the model start high here, right? What I would do this is doubling its not a single underscore like this. I'm going to school. Austria. Bradesco's so Rita. Heidi, See Augustine come down here. Get out of the server. No matter. It says number of water, it says you need to make sure that every time you change the model start by you need to do my my nick migrations, make migrations and fight on. Managed by my great It says no changes directly. But until you get good with this, you need toe Follow this prevention measures, or right now, go ahead and run this over. All right? I'll syriza and groaning if you come here and refreshing. It's his best of all. All right, that is cool, because now we have organized the items in our database. All right, so so right now are admin. Cyclops. Pretty good. So the next step that we have to do is we need to make sure that all the items in our database I perfectly organized for that. It looks good for the users, not on the admin side. So this is the administration, but more of a technical side so we can work it out even if it is not organized in a particular way. But you need to make sure that the users are more comfortable to use our website, so let's get to that part and result of issues.
22. #244 ListView: Alright, guys. So with previous picture, we have already discussed about how to prison the objects off products to use it. So let's go ahead and do that. I'm going to the view. Start by inside me products, not the view stuck by on the project site. This is products used that by slash products. So here we're doing something. So what I'm about to do is I'm going toe import a special class from xango dot views about generic import list view. Yeah, I'm going to create two types of yours. What is that function? Best through Another is the class, Mr. You can approach it in either. But I'm going to show your boat so that you can feel comfortable whenever you're doing all right. So let's go ahead and do that. I'm going to say product list view on inside the least. You, dear, really said it's equal. Do I need in court? Yeah, from God Martyrs board product trotted dog objects. Not here. We not feel community. All in this, we have been every object that's inside the product moral and putting it in the criticism. All right, so this is the big class view has been. This is a really good simply approach. All right, Now, let's go ahead and do the function based. Brought a list view. All right, so here, what we about to do is, uh, we rika rancor here with the request. I'm sorry. Yeah, And here we're going to say some hard. It's Nash, part of list Dr Stephen Mo and here do the context. All right, so, contest, will you concede that we have thes as its value? Yeah, let's go ahead, use and register context. And it could be list preset. I think now it's good to go. All right, so this is the way we actually do. All right. So let's go ahead and create what is parts as product started? HTML Because if you observe here, the classroom is much rather more are simple than function mystery All the function based. Your approach gives us more, more freedom. Toe do a lot of things when classmates you is a simpler approach. You could do it either way. It depends on your choice because you if you have some tasks that used to be then simply and yet discreetly, you can go In the past Missed performance if you want to perform away rather close, that is very unique to you. Are you want to do a lot of things inside a single part of the view, Then you can go into our function based. So this is where these boots, uh, different. All right. And about the list for you. These are a part of the generic lose. These are provided by the jangle. So let's go ahead and see some of them jangle Zanetti views you. Come here. You see, there are a lot off genetic views for Yeah, there is a detailed view. It is a mystery. Likewise did a lot of them. Yeah, I think you can go here. You cooperate this way, we can actually use them. Do you actually simplify how whole were actually doing some task? Simply using classless Cruz. So this is how it's going to work. All right, So if you observe here, there is a list view, all right? It takes the context through dysfunction, get context data. You see, we're going to use something similar like this to send contacts data, for our view. All right, so, however, to here And what are we going to do here is first this for the template. All right, I'm going to give us a template of the school. Anamika do, uh, product stash. Uh, Lee started to emerge. I'm going to change this to study stimulus. Well, so you can either create the same thing in the project templates, or you can actually go into the project and actually create a new templates for Low Entirely created you for her with name product. And inside it, you can create a new fight as list The art HTML. All right. So what are we going to do here? Is there going to be the can't context death get context? Did, uh, it will take a cell and then ard's and then keywords. Yeah. So So right. What? Remember toe do here, and I'll explain it later. So you do something like super Oh, calma, so dot Now get context. Start coma key works. All right, So this entire thing, you being context variable and what we're going through the years returned the context. All right, so let's do something. So let's go ahead about the written light and let's bring what is the convicts? All right, so this is what's gonna happen? All right. Dysfunction moved in the context of the template from the product list. You can call the super function, and you could drink because and it will read in the context. So this is the way it's going toe every class. Miss View has a function like this. So it's important to know That's why we have reading it here. All right, so let's go and check whether someone is running. Yeah, So let's go ahead and let's shoot for wait. We haven't yet created your instruct pie. So surrounding us a pie. So here what we're going to use from charter's dark use import trotted, please. You Broad Street. All right, so I'm going to copy this. So this one will be products. This will be parts dash, function based view. So here, we're going to put a part of this few dark as on the score view, all right? And here it will be product history, all right. After the doing this, save it and get back here. And so you are nuts. Yeah, it's empty because our hedge trimmer pay did not do anything. But there is our here is our credit. It says PageNet or nothing, but it is. There's a basketball because we have got it. All right, The query cities we have had despite up. All right, so let's go ahead and check for products. Dash B V. All right, so get here and object on the school list on, like, self this thing. Come here and refresh it. You see the queries, that product, that basketball. So this is home views Can be used in the class. Missed or function Mysteries. All right. Pregnancy, No British result here. So let's go and presented in the form of list. OK, so I'm going to be here. So here. What? I'm the school and all right, so here I want to get through this thing, saying it Come here on a refreshing consider basketball. So let's go ahead and add some details. Story. So number Edmund inside the products add something like, Sure right, Justin, to see I come here fresh it, you conceive basketball and shoes. These designer basketball, brother, individual items. All right, So this where you can actually sure items in a list format that drawn from the database. All right, so the next lecture you can learn something more
23. #246 DetailView: Okay, guys. So we have seen list new under law. So we have seen a list of objects being presented in the form of list or multiple objects. So now it's time to is nothing but looking into the data often. Indeed. You later. If you see these are basketball and shoes to individual items. If you want to see the details off, you need to go into the particular items letter. So that is what we're going to do now. All right, so come down here. So what I'm gonna do is I'm being put now. Depay view all right? So similar to this. And copy it and tested here instead. Off list is going to be Do you get all right. So you sharpness. True. Did have you so a seam here. I'm with great detail Outage Yemen. Um and this will be de de detail as well on. Right? So these are the things that we're about to do here. Okay, So a very important thing to note here is we're actually going toe, get the data individually. So we needed may really a cross procedure that specified a particular item. So what are we going to do is go to the euro step by, so I'm going to create you out. It's now for the detail. You He isn't here. So during a water so water would raise, I'm going to space fairway to recognize each individual item. Severe generators, regular expression. Here, a question mark be and pick it because nothing but primary key off the data that's inside the data. Bees on right slash in dollars. All right, copy the same thing here as well. All right? Yeah, I think how it looks clear. Initial of Ragnar. Least You okay? We need to get it here. Do you? Can you You are detailed route. Yeah, I think you swine. So let's go. Two parts. Yeah, I think if you look spear, gather the details that are required for viewing the product Deed is all right. Uh, I think this is not what we need right now, and we're gonna leave it right there. But here, actually, what we're doing here is we're actually getting the PKK, which is the primary cape. But this we're going down in the front, each individual object. So that is what we're getting here, Petey. No. And we can actually get Pickett either here or actually, like start. Ours are stars. Key works. Yeah, so in the eggs are in the key works. It can be prison. So let's just print it down here so that we can see what are their Yeah, he works, que All right. And here we're going to do something else. Get PK equal to pick it. Okay, So the grace that will be here Okay, the context. So let's go ahead and create the template. So you find d dare that? It's damn it. So what I'm gonna do here is late. So, Mr For Object List, I'm going to say object itself. Got only single object. Is there object are idle. Be a bag on dar description. Yeah, and no object d'art. Price. I think the school said this thing. Come here and let's just go and check what happens if your questions if I asked for for a slash one. Is this page not form? All right. So if I asked what beach to its is if you ask for something like three. No. Four, not phone and let's shake for f b v slash one, not found slash two not far. So there's a reason we're not getting anything here. That is we're actually not getting what we call the daring to here. So let's go and do that, partner. All right? Oh, for the euro step, I Yeah, And abused by. So every time you can request, if you see here Yeah, I think you need to reshape here. Sure. Yours. Here. We can actually said this. Say it. Come back here. Go ahead. Do that. It is. It's not for so one. It's not fun. One. No, there's no in thing that it's hard. So there's something mistake that you have done here, so they need to check that. So get that you. So I head out to the view. Stuffed pie. Okay, guys, small chance that we need to do is insure offspring pad important distance from Cingular conflict. Yours, import your So this is the missing. Could have me so and then. What if it is too late in shirt off? Uh, more thing. Entire thing. What you can do is modify with your audience and put this cap symbol in front of products. This is the way regular expression can work already. After doing this come down to views, dark pie. And what we're going to do here is your sort of comment in this out. Oh, now, let's check for something that's chart a detail. You? Yeah. And then, uh, we're gonna bring the constant within the construct of detail. Alleged family. That's it. That looks good and hear what we're about to be is, so this works fine. But we need a way to actually access. So key walks off. I think it. All right, So now let's come here and check for products and one, Yeah, it's working your ceiling digital data and do no. There is no match for the Critic three. There is a shoes. It is a shoe cycle. That is because if you remember, in the previous, such as we created an item and we have all the deleted an item. So that takes us item number two. All right, although we have deliberate than item number doesn't change. So the next time, I'm sure Stick three. All right, so there is a birth and four, he's not far. All right, so let's check for F b v slash one. It says we're taking it and do no does not exist. You see, if you look for product, it shows a different kind of error rather than does not existed giving this kind of quick. So I think we can change. So come down here. And what we're going to do here is we're going to import something, get object, or for four. So this is the only able to use. So come down here, insure off saying query said, Get all of these If you see if you want to see the data inside these things come down here and go here. You see, the article is nothing but the key works. Convinced data. That person has a primary key on. Right? So that's enough for us. So we would read them. You don't leave. You don't need to print them. But something I need to do here is instance because each of the item is an instance of the parts tomorrow get object or 44 and I want to send the Morton. And then what? I'm going through this PK equal key wogs off peak it and then incense. You know, it looks fine. So let's come here. No parachute, Make sure someone is right Yeah, yeah, if you see interviewing, the whole are interesting patient farm. And if we go, three chills died. So this is how we can actually see the details off each individual instance, the product market. So this is cause these are the concept off detail view and very visiting that we need to check your is. They gotta start by reading for the euro and actually modified these two things on. Right, you statute, let's go ahead.
24. #248 Image & File Field: Hello, guys. So I think now is a good time to actually introduce five hills and image fees. So if you come here and Zang go five feet, you're ridiculous. Five feet there. So five minutes unlimited feels nothing but how we can actually store gather in terms of facts. So image is also a fight, All right? Yeah. Here is the five senses we can have actually store files. So let's go ahead and use this Fifield to actually save some data entry. So let's go here and what I'm going to be, right when we go to the mortal stop, I and I'm going to say image this to quote Mourners. Fine. Seemed Yeah, floored Do products slash. So what it will do is it will say the files that I am going to actually upload to this place. All right, so we're changed our modest by So get out of the summer and do make migrations make migrations. Are you saying default? Let's go ahead and see. Come on. No equal to go on a blank called true. True. So what does this mean? Is we can actually save the record or the item, even if it doesn't have any image. All right, off to see him do it. Come here and not make migrations. You did. And now my great. Yeah, And now we can go ahead and runs over. No, the settlers. A rapping running. So you should have products. Let's go to the ad. Me? Yeah. I go to the product smarter and inside the products. Martin, we're gonna have this bad going to need your item. You can see the images. This but you see it there. Light in color, actually. So why is this? Because we have kept blank quick accrue. If blank is equally false, it's going to be duck. So let's change something here. So go ahead and look for sure images. Why is this taking this much? I mean, yes, I think this is gonna take forever. Yeah, everything. You explain some image actually. Come down here. Let's si unit dress I received in the downloads on Maybe there's shoes. Yeah, close. Distinct. Come here. Choose by. Go to the don't lords, and actually for the shoes save. Continue editing after you, Siri, you can actually see you Sure. Here. Yeah, we're saved. So let's come down here on their ease off actual five here. So if you come down here in the static Syrian, they have the media inside. The products were for her husband. Creator on entirely is the shoes fire. Why did that happen? Because off setting start by. We have specified this park. Okay, so this is the reason why it has happened. Okay. All right. So let's do something to actually What if I hope we can actually upload? They made five. So I'm coming out here, and I'm going to write a new death up floor image, Pat. And I'm going to give that instance. Come on. Finally. All right. So here, what I'm going to do is let me import something here and for Come on, Who is this? I think it would work. So I wanted a new fighting name. Could do random girl, right? And? And it can range from Yeah. And now something like me. Well, extension as well. Here, let me do that. In a way, they can actually modify it, Streamline the process, get finally and extension. And here it will be filed. Pat. Okay. First full of the base name west or bad dog base. Mean fine. That que name comma extension. He could always thought at the next business. So here, I'm going to return the name coma extension. And here I can actually get those things easy. Re The income extension is going to get fired. Me Extension off five. So here actually find him will be appearing first. So I'm going to actually, formerly spite on format functions. You finally extension dot format Here it was a new file. You find extension because the extension now we can actually working and you products smash you filing and then fine final name format. And here you'll find an equal five And then finally five equal to find and find. I think this would work nicely. Ah, yeah, I think I would. Looks fine. See on Come down to here. So let's just run the image Seeing me again. Shoes being fresh May issues choose. Define again. Open it. And Syria Now open the shoes. You see, it says something else. Just pulling some needles and bringing something else into this. All right. This way we can actually modify the final and actually bring something. I think it did not work quite as well. We wanted to do. Okay? We didn't know Senate here, uh, image. But now it's complete. I got that. Here. Choose by said seen file again. Shoes, anything. Yeah. If you see here, the final is completely changed. So this is more rubbish because you can't actually be tricked into fighting, saving the files into sing pats team names. See, this way we can actually save the fires in a bitterly All right. Okay, I think Well done a good job here. But there is some problem here that might not be visible, but we need to be technical about it. We're uploading images if somebody tries to upload anything other than image. So So let's just jump into our foreigner And let's just try to upload this managed by and seeing continue Titi and it would actually store it as dark purified. But it's not an image, so we need to relegate it so that we are actually applauding only images here. So let's come here. You sort of find feeling imagery and see if the most of fire file come down here, get out of the solar. And now we have created the modest advice or we need to make migrations. Sorry. You see now frozen out says pillow doesn't exist. So really getting started. So the way it can be sold, Leased, type in star. You start the pillar. Ribery's here, you see, Still minority. And it is not starting to cut the packages and a successful installed. Yeah, Sinaga head and make migrations. And now Bytom managed that P Why, my great And now everything looks fine. So now you can actually run this over. People are over. Yeah. So let's go ahead here, actually. Oh, let's school here and sitting right now. Next Traded up to a door, Purify it says what it does. It says there is an error because we have actually used the pill. A robbery. It opens the finally detective checks, whether it is a an image of knock. So in this way we can actually validate it. What is an image and what is not any reach for? So let's go back here after the shoes again. San community, when you actually say a sure that image get image. All right, so this way we can actually validate what and user is updating our approach. So now that we have learned how to validate what we're actually storing inside database regarding majors. So now we need to learn about, uh how, actually, we're about to a friend of the images. So let's go ahead and do that. So natural. We come here on, actually look for products slash one. It shows these things, but this Louis Misha. So come here and go to the detailer html. We can actually see something here. Object dog image. Save this thing we have over here and refreshing. What? Just nothing. Here. I could see why they're seeing nothing here. That's Martin. Stop by of exhorting it to me. Just come down here, save this thing. And now go ahead and a fresh. Okay? We actually see something here. This is the path where we have started image. But there's not exactly because if we come down here breasted this thing it says pays our farm because this is not the pat. Then it becomes a path. He's actually be said, Doc, You are ill and refreshing. This is they are part is actually right now. If you put the doctor, you are in here and then you can see the time you're off the media. All right, if you go ahead and put this thing inside that you may judge Yeah, you on what you do use glass? I am dude ish, if you it doesn't boot step. Saved this thing and coming. Refreshing. You can actually see the men. Shit. All right, so this is how it's going to work. So, actually, let's go ahead on Had something toe basketball as well. So So what I would say is true. Fine. I mean, the down lords before come down here, I can actually find a basketball. So I'm seeing it. Yeah. You see the image? Finest scenes on bills. So So what? I wanted products. Yes. One. You can actually see the basketball here. Three potential seed issue in a single way. We can actually upload final feel less. Well, you just change the mix into fine feel, and you can actually upload finds, but one thing we need to take it off. 50. We cannot actually store large files here. This is for smaller funds. If you upload a file that is a size 100 B is going toe, get slower and students were and crashed. Maybe because decisions are not made for not your finest, smaller falls. So without any that lets get into the next step and my father in law because little ones right now, so let's get ahead.
25. #250 Understanding Lookups: Okay, guys. Fern did a lot of you learn a lot regarding the moderns views? You are seconds. Forms of templates, a lot of stuff. But what if we want to learn about this Data visto? Unlike using a web browser toe, See the results. We want to use lookups like you want to check out what data we're getting and test out our query sets before we can actually use them in the website. So let's go ahead and do that. So if you come down to your sin and were you for the screen so that you can actually see so tricked the server. So what are they going to do? Is we're going to get into the shell. Quite gunshot. So right on managed by Sure. So this will open up the shell. So funny of are we going to do is we're going to actually bring the product model. You two are Show some products, dark mortars in court. Yeah. So we have got on product soon. Similarly, what we've done in our roses stuff very said you could do product dark objects, not all. And if you see what's the greatest ship? Just basketball in shoes. These are the items that I read inside are all it's bringing all of the object to the product model into the crowd. Is it all right? If you want to see something like search for something particularly we can say product, not objects. Go of Souder. Try to underscore. Underscore contains Golden. Sure, So we don't have anything? Yeah, sure. So for shoes, it says there's only product shoes because it matches with it. So if we want to say something like, Well, what is it? Just basketball? All right, so in this way we can actually match these titles. You can check what? The country. What? Which tidy condense this keeper. All right. You can also do the same for description as well. So if you come down here on a description and let's obor, we don't have anything because entire description there is no bar. So you know each ticket, you can be viewed at basketball. All right, now we can review this basketball. So in this way we can actually check what there isn't each elements. So let's go ahead and do something in short of contains couldn't Aiken lives. So right now result might or might not change. But what I contain means is it will look for the case sensitive. All right, where is the case? Insecurity. Uh, necessarily. We can actually use. I contains. All right. So enough with the stuff. What are we going to do now? Is we're actually going toe chain boat titling descriptions so that we can below dinner. Okay? Requirements a test require with requirements having from both of the fears. So I have requirements. Um ah. From the struggle and some the description, it should off content. Amadou's I exactly genes which matched the case insecurity. And it should be exactly what I write inside this kibbutz. So I'm going to put, like, there positional argument Pawlowski without grand, so Okay, yeah, there is nothing like that. So if the, uh, it's for MM. Nothing and should off shoes, you would ball, You can see no so weight. Let's go ahead and looking out Description. Actually, - yeah , this warps that he's challenging. So we want to say okay, why? It is not burning. Maybe because of this now. So okay, because the description of what I exactly should match it. All right, so let's go out and filter objects based on the primary key. So kiss equal, go product. Dark objects, not filter. Oh, I d equal to three. Now you'll get something. Yeah, shoes. But if you get four, what does this say to Sam to? Because we don't have anything that for, so we can actually interchange idea with picket primary keep. All right. It gives the same reasons, such as i d because I d and P k are interchangeable. All right, so in this way, we can actually perform some operations. But if you want to look for more interesting things, So let's go out and do the same stuff. The insured A filter. What is going to do is use get. So if you do that you see here with filtering, getting inquiries it But we get we're actually getting a single item. That's the difference. So when there is no item reset students and empty quick, is it? But what if we actually use, uh, get for an item that doesn't have in a car? You see, it throws an ever The problem does not exist. You give some better. All right, so we can actually handle it. So let's try that. So right, the quarter that I work right here? Uh, products are objects. No, get oh, ID equals four. This is an exception. Except product. Dog does not exist. Your product here. All right. So because there is nothing here than the air is very is it says no product here, similar to that. All right, so in this way, we can actually handle errors so we can actually do this stuff A Similarly, if you go to have used our pie, if you come down the product to tell you dysfunction pretty much does the same what we have done in the shell. So let's go out and do some of this stuff here, so I'm copying stuff. I missed it here, So So let's just modify it, all right? I think Richard School. So what are we going to do here? Is there a Candace out? You don't need it now, Teoh. It's going to look for this product. And sure, we've been saying PK because these are interchangeable. Great keywords off sonority expert. So open the show on. What are we going to do? Is exited are quite an shell. And now we're running this ever. Yeah. So for products slash he turned something. But when we actually before you see, it's going to run the C mirror. Okay, this is class. Missed you. What would be or dash SBV serious, for instance, is not defined. Okay, it is getting up to here. So what are we going to doing? Militaries were going toe bring important thing from his angle. Got hits TDB you board history p 44. All right. We only use this, so come down here. Dis occurs. Raise. Yeah. Hey, Http for four. Mitt brought it. Doesn't I insist to the scene? Come here. Our service rain now refresher. Let's see product doesn't exist. The owner, Mrs that we have issued it to saying it's showing it. So this one had It's pretty much like the class mystery. That is what it's actually doing here. So instead of using, get object for a four, we can actually use this tool. But Van Zandt has already provided. Isn't these facilities we don't have? All right? Another way. What we can actually do is check for something like I know what a commonly sold. So what I would do is I wonder a lot of crude, he said. We're under objects. Start filter, idee equal do key works off. Oh, big here exist and kiss that count equals tow bar. Then we're going to actually pull up the instance. Not easy Stance understands equals. Do here. Start first as Marie's. It's too deep before four sort of dozen exist. All right now, our servicing Let's go here if you do the same, just probably doesn't exists. He looked at this. What it does here is it's a trip in, the authority said you should get it is doing filter and it's chicken Whether any queries that actually record and if only quickly said, if it's a consequent one, you can actually do this with, uh, little off, Query said. But it's much lower than the press that camp. So if we were able to chicken and then we go toe float the first object inside, the quickly sit and we're going to show it. If not you going toe raise December. So just where we're gonna treat work are things on actually make it similar to dysfunction on this, just to show that we can do it by our own all right dysfunctions Actually, we're pretty good. So that's a vivid Let's check with our app is running as we have died for previously. Okay, if you for tea. Yeah, it does. So this is how you can actually walk out. Yuki, look up. Using lookups, you can actually from much more extensive operations without actually putting it into the cold. You can actually look for clear. Sits using shell to figure out what it is we need to write. All right, let's go ahead.
26. #251 Custom Model Managers: Okay, guys. So right now let's talk about more little managers. So what are you see? We're making a lot of queries from here. Character objects are all on drugs that up just to get here and, uh, actually making a bringing data from here on all of this. You see, Discovery sits, and all of these kind of grays are performed because of mortar manages smarter managers, providers that these mothers bring out to the data from the models that we have seen previously. So while these air provided, for example, we can actually make our own mortars has. So let's just try it out. All right? Come here tomorrow. Start by. And what are we going to do here is created Martin, manager class product manager, and inside the brackets book mortars, not manager. All right, So what are you going to do? Here is def. Get by. I d. And inside These were going to give self home. I d all right here. What are you going to run? An easy We're done. Self. Get pretty. Said Okay. Dog filter here. I d called idee. All right. What does Indians is this self not Query said is nothing but products or objects similar to that. And rest of the things we can actually put it here. All right, This way, you can actually make methods that server own purpose. All right, So know that we have put created our own function. Heard out of you. Stop by and inside the product. You tell me, what are you going to do is we're gonna current this out now, and let's just call it it at that. Understand? Sequel product are well off checks, dog. Get by. I d here. Retractable descend R p k key logs off, be here, and then we're actually print this instance. Brendan stands all right, and you can actually provide, uh, you are use as well. Yeah, I think this much. The world here. So come here. Several is runny here if you it works. All right. If you do something else if you throw another as well of heart is not defined. Okay? Product through the same. Come here. Yeah, sure it is. Why? Job to get by 80. Why it is to such a class brother manager. I think everything was fine here. Okay, We need to include this inside the products more that started that are formally so here. What we're going to do is object objects. Equal group product manager. So what it does is it would, uh, linked the product model and the product manager as well. So this doesn't mean that were actual writing the default manager. It is just an extension to it. All right. So you can still use all the modern, all the methods parted by the default Xanga manager. Then we're actually including something that's off our own. All right, So let's go here then. For this, You see, imprudence quickly said shoes. All right, so this way we can actually look for objects as well. And the next thing that we actually need to do here is we need to learn something. So get to the monster pie. Instead of this, we can do something else as well. So query said, Equal, Do self God get Grilli said dot food er And now we're going to say I'd equal to i d. And when we get the credit said, Well, actually check for the Khan clears dark count equals one, then that actually under Wouldn't this thing written? Here's the conch. Sorry, first as you ever written. No. All right. I think this will look fine. And now get over. Used up by in short, off this or everyone who is, if in stance is none now. But I don't raise their raise its treated before or four saying product doesn't exist. All right, it's going down here on now if you do this. Yeah, we're OK. So if you look for days betrays product doesn't exist, so industry, we can actually work it out. So let's just include this matter to our detail, you know as well so that we can actually use it with a class. So if you come down here death get object and inside this for itself star are eggs, Comma, if you are drugs and then the request will be actually self brought Regressed. And then the picket gold itself brought Kira key works dot Get oh, you care? Now we have the values. You can actually do what we have done here as well bring this stuff here. Yeah, and if these did his Mirer, we can actually lower than the instance. All right. This way we can actually work it out, so come down here in? Sure. If you do it, you know, there's a Kierra peak here. These are actually okay. And should this. Yeah. Yeah. Now this thing work. Yeah, I'm feeling fresh. You can see it. You for something else, it will show the an arrest will. So not only to the o detail. You, if you can actually added to the list. We as well. So if you come down here, another thing is we can actually move this thing. Uh, and now let's check it. Okay? Okay. Now it looks fine. So let's go out of the list view and just coming. This square isn't here. And what are we going to do here is we're actually going to come in this thing as well, so diff. Get on the score. Greece it. And you said star art school Omanis duster keywords. And then we're actually going to request equal itself broad request and then written Charlotte got objects. Not all. Okay, in this way, we can actually bring all the objects for our list view. And next thing what else we can do here is let's just find out in things. We can do it truly. So, um Yeah. Uh, I think everything looks fine. Uh, I think we can use just as well here. So based it here. Yeah, And you're gonna isn't coming. Dissolved on and bring your killer himself. Not key works. Dog get Oh, freaking seeker now UK equals BK. I think now this is work too. So it's reeling. Yeah, it's refreshing. Que If you see, it's gonna say no product march from the care grade. So in this way, actually, we can work it out things, our own mortars. All right, by now, here it is nothing doing. But it's actually making additional matter included in our default management. It's we can actually override everything. We're actually seeing death all. And you can actually put some court here, agree, override every method in the default manage, but that we're not going to do because we don't need to do it now. All right, let's just skip that step here. So in this way, we can actually figure out things that we can define new metals that we actually want our custom queries for. In this way, you can use custom water managers, create our own minutes. All right, so let's get to the new lesson
27. #252 Featured & Custom QuerySets: Alright, guys. So let's do something different now. So, uh, I'm going to play around with some feature called Feature because all the products might not be specialists. Some products are categorized their feature mothers. So right now let's do some stuff like that so we can learn some new awesome cheer. I will put them a new field feature equals group Morten's dog bullion seeing and then default Quander foes. I say this thing now that we have changed our model, we need to make Eitan manage dark by migrations by my great. All right, Now that we have done everything report morals, we're running the server. Not only that, we need to do something different now, so that's how did abuse. So what I'm doing is I'm going to create a new missed you for product feature someone to see feature. The mystery will be the same. So I don't need this thing. I think this one so I'm big name because, uh okay, sure. Are you going to seize future? That's it. So similar in today's about actually being her feature debut. So yeah, he chaired Begin you on. This will be the same. You don't either so, uh, redoing thesis through also. Yeah, sure. This What are we going to do? Is we're Children. More of the speaker. I'm just are who? Chair? Yeah, I think that one looks pretty good right now. So let's bring these tools Cardio set by. So it's nice. Yeah, Yeah, yeah thing Yeah, yeah, yeah. She likes future. Yeah. So you should know that Dio here. Yeah. Yes, she missed. I think that looks so Copy this thing. You over here? Yeah. Is so ensured our feature whatever you're going to seize. Um, sorry. Ensure enough nish our products. We're going to see the chair, and this is seem as well here, but they want to bring to stop here. Yeah, best. It's stuff. I think it looks fine. Oh, is there anything that you need to do? We need to figure it out about that. All right, So similar. Do that. You're going to see you are three foot cap here. I think it looks pretty much good now, but we need to change this one. Are you Jewish? New? Yeah. Who should you? The Everything looks fine now. A good used by and shoot off this we're going to say Featured that. Did it? Yeah. And the list will be released. I think that would be dead. That's, uh, What else? We have left it over here. This is straight out. I'm here. I'm really save broader feature. I could view They're gonna manage it out. Because teacher, what does it say? Something like that. Perv manager off. Personal ad. A great future. Okay, why is being some off that cast? Yeah, yeah, yeah, Yeah. These were some problem. Let's just buy. Okay. Well, you stuck by, okay, Everything looks fine here. So through this one one game you must use, um they say they get crude. He said, you're destroying error. World stood by. Okay, really Create some nothing here. Sure. Hi. We will sell. And now what we're gonna do is rigor. Self dog get creased. Set. Yeah, on inside. It's on. And then what? Future equal Now, Justin things Because there are no featured objects. So that's good, man. Yeah. Logging and going to the products. We have no problem with this future, so I'm going to do something like, uh, to the school. The you're Yeah. Price says for yeah, and it's feature now Syrian on now Go to the feature. Just telescope. Yeah, that looks fine. So if I go and for okay, if you see here are typically Scott says Brunner for so what we do know is feature natural , which is what number does not like this. Because we didn't create this template yet. So head over here inside this Where did you future destiny did not HD and know what I wonder is similar to this on the copies. I want to be tested here. So that's just one on now. First this part, she is value better. There is no major tribute has no pile associated with it because we did not give an image. So I think we need to do small modification here. What are we going to see? You object? Sorry dot image. Then it's going to show this And if yeah, no, that's good and refreshing. You seem not showing. I think we need to do the scene for our little cottage. Yeah, that it's fine. All right. So what happens if we actually food products? Okay, So the sooner feature firstly, no, no, before I think it looks cool. Until now. So that's going to do there. Stop today. Okay, so let's see what's happening here. So it is in each of the product creature list, new and part of which didn't do it. Looking for the featured objects that are true. Because only the featured are just that accrued with Britain, and it will be displayed to we can actually modify. Recruited here product. What do they like? You should have called like this. We're gonna actually come in this hour and bring something like use. You can put like this, so no check for better. What is? I came here one. No. But if you check for sorry. Well, it says yes. So it can actually work in this way. Also to there's a modification we can actually perform. Toe. Bring it down. All right, this way. Get credited. Very, very useful for us in this weight class. Fastest use mostly shine because off the baby actually performed it. You see here. So let's get down to the product details functions so incinerate. You can actually do this too. But you saw that. Just need to put who on the same day you can actually do the same. For instance, as well So in this way we can actually do. But this is similar to how we have done for a teacher. Little you. But this is more robust. Okay, Shrub doing in the function based rest. This is more robust than that. Okay. So we can actually go one step further. So going to model stop by product manager, Not in the product manager you can actually create. And you clearly said this Crass brought it. Really? Say the back edge of the modern stock really docked really said Okay, So here. Why is there future? What are you going? Sensibility seeker Future crew to. So this is you can actually do something. Okay, so the next step you get into the product manager death did he said se. So here's what We're going to go, and we're going to return the product. He said Really said since dark Martin then using, requesting, sent go underscored Devi. Okay, This must work. If you see here, we have featured in cricket and also the product manager. So these kind of working projection. So even if you change s here, it's gonna work very well. We departed martyrs. If you're going to the shed that's going to the show. Fight on, man struck by show. What I'm going to do here is from drawn it duck or trouble. What I'm going to do is criticize drawing objects. Dog finger, I think. Good to the school. Okay? Sure. To the school, if you see that there is a school. All right, So what else we can do here is if we say feature 200 in the same. This is similarly watch happening here. All right, we're calling it and Children today again with the feature set. All right, so this is how it actually works. I can actually remain this. Move this if you don't want to. And I can have it as that. This works well, if I want to call products or objects that featured completely so that could Replogle objects and then refresh, then filter it. All right, so in that way, this works very well. Okay. So we can do something else with, so if if we can almost do it like OK, so right now we have feature that. So if we have something like active equals, True, which was only active objects there. So let's go ahead and do that. Well, I'm being active. You will do, Martins. Default Quito through. All right, So this one says that products are so what I'm going to do to give some soon looked at this one. Copy this thing or in the future will be active and future mode. Right now, it isn't only the things. Another thing that we need to do here is diff on. No, we're operating all the objects, right? So what are we going to return here? Self dark gear down the school? He said, don't active. All right, this every Kanai Children and stuff, objects that are only active. So sometimes your product out of here. So then what we're doing is we're going to make this an active iTunes. We'll change the group of Falls, then the parts won't return when the call. All objects. Okay, The fault of this will be more than the only active objects. Will be, uh, return the criticism in this way it actually works with. So if you need to learn a lot of stuff, you can play around with this and learn a lot. So I could have been very past meted, But you can really play on peace and a lot of stuff from the next class. We're going to let learn something new. Let's get ahead.
28. #255 SlugField: Alright, guys, I'm in love a builder. That's every cool. But if you look at the neural, it's with strange because four doesn't necessarily mean anything. When you look at the you are, you cannot understand anything regarding. All right, So we need to make you need to make sure that the user can understand what this you are links to and why he needs to use this year. I don't get Christmas tree. They're page right. Four doesn't necessarily immunity. So we need to make sure changes to something else. So enter slug for you slug. Realism use capital. It's like a sharp label for something. So what are we going to do here is we're going to deep there title and change it to a shorter form, a like slug and make it a part off the U. S. So let's go ahead and do that. All right, So come down here. And what are we going to these You slug. Morning star Slab Steel. And here we're going to give blanket Who? All right service thing going on here? Stop this ever. What we need to do is you make migrations on my grave, and now Oh, great. I think they're already few rules. So what we need to be is who to this team? Yeah. And before really see is to stop the writing guy. Yeah. So now let's go to our inside and refresh it. You can see there's a slug so we can give it a B. C as part off everything. So let's just do a B C for everything. We will change this thing. I'll load it when we can Arab and for putting these things into your own because you have to have the same thing. So one thing to make sure the slug is having the street. So I think you don't need these two things. All right, So you changed this thing. So I'm down here. My visions right now. Here's one in my great Yeah, I think I would school. So if you look down here, I think love, it gets quiet. So the next step is So, uh, if you look into our this if you look here, we can really see the title part. So let's do something that we can see the other definitions off the object, the same page So hot out here I mean, go to the admin door by here. We're going to do something. Okay. So, like, describes Prada Me. And if you admit and much of your capture on here, What? We boundaries this on the school display the first time you see this going straight out, actually slug to you in here, Morgan. Good product as you know it. It's fine. And if you cheer cause I was lying, become here fresh it. No of this over a game. No, your change Appearing here so dear, is not making any change. Oh, despite things being shown here. Okay, The meaning born trotter. Admit I'll say this team, if you come here and fresher you see, it's showing this luck. All right, so in this way, you can actually perform operations and make sure that are inside. Edmund, Baby, you can actually see some more information regarding the objects side. All right, after doing this, So let's go to our euros. Right by Hayfields are here. All of these things are designed for priority. So we need a way to actually make sure that we can get slugged Joe Ricketts accompli. This thing basic down here, so do what I'm about to do here, so ensure off peak A, It will be slug. You should've d this thing. We're going to put this and w minus Sorry. This must mean cited and reminders. And here it will be a press. All right. This 1 may be true that we get the right que and coming out this PK product meeting you and make sure that only slug disappear. All right, after this want me to do here is really to actually change this thing to product details of you Probably smoke deep there. Detailed view. All right. You gotta be doing geysers. Um, you don't hear coma communist ing, so interviews stuff by, Get near the part of you, tell you I actually, you this here. Do you think you after that Just carpet listings? Yeah, I think I was spying. Uh, so now also is rain. Get here. So if I off future? No, but you see no should products. Let's check. Are you products? Yeah. Si, si. It's just marketable object student, because there are three off the same slot, so we need to pay some kid about that. All right, so we need a greater handle. It So we're going to do something similar to this. So get this thing control, see, called means and come in these things out. So them Yeah, but insure off we gave it will be slug. And what does brought a daughter object? Dark? It's not. This one just won't work so insured off this. We're going to something different. So we're going to call it in a trademark. And here understands, is a Quintal product. Don't object. Start, get slug. Going to slug. Comma I to equal. Go through. Alright, so here we're going to Except brought a dog does want exist. If the several races we're going to see a breeze. It's too deep before the four. Uh, not so. All right. If dick the exception is different. So what is the exception we have got here? Multiple objects return. If we get that exception or we're going to do here is we're going to get your sequel. Do harder Don't objects. Snow recorders slug Comma active equals two troop. Alright, so from this, we're going to get the instance equal cares dot first, Then you'd actually want from the instance. All right, so the reason chance of getting any other exceptions. So then we're going to see these huge to do before the full unable to access something that I don't know. It looks fine to sustain. If you come down here and refresh it, I want to say, unable to access. Why? Uh, here. It's fine. Do getting something from here on now. Name is slug is no defying. Okay, Okay. Okay. So here destroyed. So now if I see this thing, what are these distance into life long by appreciate? No, I could get the death. So this way you can actually make sure that the interests are not actually meeting the bottom fast for you. Okay, So in order to handle these kind of problems, we need to make sure that the slopes for every record a unique So how do you do that? Get here, get in the morning, stuff by. And here you can add a new actor boot. Jeez, unique equals Go crew on. Same disdain. Uh, you know, of the silver? No. Right on. Managed by make migrations and then bite on. Managed by migrant. Okay, there's some Yeah. So there is a problem. What is it? Because off them, these things are hand the same slot field. So what are you going to do? It? He's We're going to change them. Yeah, We want a chance to shoes on this one in the school. I believe this one. That's bore. And now let's come here. Get out of sneak migrations. My great. Okay, that's fine. So if you go here and if I give shoes to this one, it's it's No, it can't happen because all that exists, So I wanna change. Gave, see. So in order to do this thing, we need to make sure that there is some kind of signal happening for us. Looking ever. So what are we going to do here is we're able to create a new, unique, slow definition. So this thing doesn't brokerage in one. So what are we going to do is get create a new YouTube is blocked by five, so let's go ahead. And so what I'm gonna do is create a new fire. You can start by inside a tomato paste, this court so this court will create a new, uh, slug for every time I said some major. So copy discord on this on the internet. So this'll. One was created by some just immature kind of guy. He does this young general blood is everywhere. So from him, I got the score creates to him for this one. So what we're going to do is we're going to import this thing and mortars. So you don't. Yeah, I didn't really expired. So come down here. You should have this. I didn't know it was fine. So you need to write this part accord as that I really So after doing that, declaring a server is running a not okay. It's doing some mistake, So that's figured out. So if you come down here, so yeah, and then walk revel in their bellies. Yeah, it's getting it. So at this point of time, what they want to go ask me to do is in court these two strings and right dysfunction. This will make sure the Granderson generative looks. And after that, you could do this part. And then if you see the service funny and get here now, I'm going to create a new I'm not gonna give slugging another one. And if you go ahead, it gives a new slug unique slug every time a few copies he would you see it will shut up obedience off instead. This way, you can actually figure out. You don't have to figure out anything about creating an instance that slut will creator uniquely. But there are enough soon generator. So thanks to this function on, let's go ahead with you constants.
29. #257 Product URLs: Well, there are a lot of stuff on, so let's get the home project head over to the U. S. That I So wherever the market, you start buying a big. So what I will do is shift on your second your app. You got happy on stuff, so come down here and create a new file in Iraq products and nemec your sister pie. All right, So what are we going to do now? Is copy all this stuff and going to use that like parks. All right. I don't need this one. I don't need these either. I don't need I would go. So why don't need thes? I need only little import. All right. So I don't need setting statics as well, so waters can remove. Okay, These are the stuff that I don't hear. So do just Okay, so I don't need to have add mean Okay. So one thing that we need to make sure that we understand here is all of the eu's are not necessary for our use. Okay? There are only two things that are making all this stuff, but quite good. One is a artist. You on another is a part of slum needed rest off the stuff. Do you let him go so we can remove that Getting those? So Yeah. So we can remove them from here as well. So insure our police record. It's love you. You can remove everything else. All right? These two are pretty mentioning all the necessary work in a product that this is the stuff that we're going to have. So when you come to the home garden stuff by you see, I can come in and out these things because I'm not going to use them. I can. Coming out these things on a product feature says I'm gonna leave this one. Okay, Because off one rules. What is that? So I need to actually make a vein so that any water that is being a question But users need to point to the your insta pine inside products that So what I'm doing here is I could come in this hour, but in this one, and you are here. Okay, off this, you're doing one of my new use more. This part You can go. Yeah, I used this one. Nor here hearts. No, you are as soon as we When you come down here? Okay, begins. So what we can do is modesty. This one has read. Okay. You know, Sandy's on a condom here. News? Yeah, This is okay. So no. Yeah. Just working. You could come down here going on here. Okay? There's some problem again. Okay. The waas. Okay, So what you do here is my slash Here. See? Working now, if I question which shows, so I don't do I don't need to actually worry about, uh, the app because we have modified. We have your It's about delivering the products here. No us that for the app or here off a project are here. So with single line from here, all the yours were cooking products app. I barely get to the core. It's a really See, this is a really safe and convenient way to do it. Okay. So, guys, if you're up debuting here, the Urals up nicely for murder. But if we go here, how can we actually navigate? Each of them should come into the yours. You are typing. How can we actually get to them? So for that we control Hold on just a But we're going to do with the now very Oh, Zella matter. All right. So come down here. And I did get absolute. You are Nikolic Cell. Yeah, Yeah, we were written. Prado's slug. Yeah. Slump equal some smoke. All right, So why would wonder is what he is despite, uh, of templates. Oh, Mr hear what I'm going to use inside here. Okay? Things. Whole stuff here inside the hitcher. They're going to give the user the same thing, and so is lying. How? Go ahead and fresher, You see? Okay, some public it get's naka bills. You said you the freshman how credit agency shoes in school decided. Action. Work it out Things okay thing just where can actually make sure that the waters are working quietly And so if you Good morning, sir. Fire. You can see this one is actually a great way to actually there. Uh, what? You can show that all the girls are working fine. The ride into the waters. Okay, Well, because they have shaped so and this way you can actually build your own website using Django and all the stuff that we already know. Okay? We don't need to actually know everything about xango. That's a beautiful mangrove. Django, you can know enough stop to actually get going and running. All right? You can be the wrong that side. I mean, shoe that can get all the nuts of the xango so that whenever there isn't a necessity off using them, you don't have to worry about anything else because you have already seen. OK, so, uh, needed. We'll use all of the stuff. This is for your corpus to make sure that, you know these things are available. Okay, all of the time that you're going to do is use some jungle mommy stuff this rough, making a lot of managers. Paris is anything you need to make sure that you get good grades off the template system, the views modern's on the orders and everything in it. And then you can actually nature go and keep the website up and running. All right, so that's all for products that now we have learned a lot of self. Better yet to understand bumping that they did not want to come. All right, we'll stick with the course. Let's go ahead
30. #258 Templates Intro: So now in this section of religious, we're going to learn about companies. Uh, for templates are of a off presenting information to the users. So if you look appear, there's not really a good riddance extreme and document. See, this is not the baby, actually. Right, Because this is not the Guba. Well, if you go here and for pay source the pictures, you see, it's not really, uh, a good kind off writing. But if you look for something like jangle, uh, just go somewhere anyway. So you got here, huh? And she this is much more detail, and sometimes you can think of it is like to complex. Yeah, I think that those who ingreso giving you get So if you look at this doctrine, it's much more clean and neat and very well written in hitch glamour. All right, so this way we can actually write HTML documents that can present information in a very unique and and designer in today. All right, why feel Look at our just It's happy. Good. All right. So even if we look into our our whole ph dot html, you see, there's not more redundant to the paged original as well, so disruptive there until you learn how to read, complete and make sure that we learn all the basics off it and also get represent information in the clean and neat here, so let's get ahead.
31. #259 Base Template: recognize. So now let's do something that's gonna help us to understand better about how you can desire templates. Okay, So to do that, I'm going to do introducing new concept, not a new concept. A concept that has long held in this off their word. It's the concept of right the I don't repeat yourself. So every time you write something unique, all you don't want to repeat it again and again and again. So we want to make you want to build some process that's gonna help people quoted musics of yourself rather than writing it again against all the simple concept is to use redundancy. So let's go ahead and one of the templates. And I want to create a new fire. I wanted the base not itchy and love. So what I'm gonna do is I'm gonna copy wardens. What? Everything in the home page on basic here. All right, so no order with that. Would, you know things. Part of the body. All right, so now it is nothing but a couple off. Uh, I'm with the title. A couple off slims between stay sheets and three more links for the job school. It gets so you can remove them as well. But do that. Let's go ahead into Tambling's pretty new colder with the base. Just recognizing that I close in years, so couldn't fire. See, this is Here's in here. What are you going to do? You use this book strap. It's okay. We wanna see this team. So what? I'm gonna do it days ge is the HD and like so I know what I'm going to use. Copy the jobs. Good cold when you paste it here. The body suddenly here. Yeah, I didn't know. It looks cool. It's okay. For 100 ways. Here we are, actually getting this this from the static, the senses. So come down up here, you this template that world static. All right. And we're gonna use this Just a huge stimulus there. All right, We are not particularly using any static files resources here, but we may use in the future, so I'm just getting it now. All right, So are based on each table is pretty skated, and now it doesn't have anything that's but a skeleton hedge trimmer, which on earth, So whatever you do who is go to the home resulted team. So we're going to make sure that everything that's in this for recurring A Very so that, uh, this will with a different picture everywhere. Basically a reason this will be the default court. So what are you going to do here? Is we actually going to do, uh, come up here and I don't want to do yet? Extends. You started small. We started. Yeah, I would study. OK, so now what I'm going to do is I'm gonna copy this thing. It's on. I was greeted New block here, undimmed. And look. Yeah. So this is how it's gonna do. What? All right. Yeah. So what is this block country and then go. So we need to do here no content and see adjusting up here with the home page, you see lets you the page shows here. Now you can see some stuff here. See, all of it is in order from base dot HTM then. But this part we haven't written in this strategy yet. We can see it because we have blocked form of country. So how can we be sure? The release home page Ridge to your Millar business? Which limits? And let's put some title hands on the book and actually know what it is. So here is best. All right to me. Here. What is you're taking home page template. It's all right. Some wrong go ahead here, and you can see this is the best of it. This template is being loaded, but in the place off this block, contain? We're actually actually giving this. Okay, Did his hopes work? So let's go ahead and do something for hunting slash page. So here we have some, uh, Let's go. Yeah, connect. You see, there's some formally means, and it's a burden and everything, so let's go ahead and do something with this S o Do is so X stands You started stealing. And here, No static. All right, here. You have a block look condemned and look. All right, so whatever loser here is bring this on this do gags. Yeah, So I can go ahead a step that actually more all of the states come here fresh. You see, the structure of the page has been changed with consistency. All the things that we have you to the conduct pitch. All right. The name, The name I said in seven. But this way we can actually make sure that everything in our pages we can actually using another bridge. So you're actually what doing here is interaction extending this based package together so we can actually use these things to do that as well? But no, we're not going to do that now. So And distrust me. A Walker action Adonis. We can use a best page but blocking its body content. We can actually have a lot of stuff here, like age one hitch do dance all of the stuff and still weaken Broxham media to use some of the kind of message like home page and page with average used. All right, so let's go ahead and do something else.
32. #260 Include Tags: All right, guys, we have done a lot of stuff here. They're boarding. Ah, based dotage Demon. We've done a lot of stuff that we have not gonna now. So on board anything that we can do here is we can actually look for something. Like, if you have digital artist in that, you can actually imported some based on HTML, you can see extends this guard who'd steam mode. Yeah. And you can include end out of this thing inside block. Now we can go out into block condemned, and now you can actually and block. Okay, This is where we can actually modify thing. So if you come down here and look at our contact, the age you see much off season, much of the elements are present. But they're not very. We have style. So let's include all bootstrapping tears us here. So go based on html. If you look here within groups perfectly fine. But we did not put our services, bootstrap links and JavaScript. So let's go ahead and do that. All right, So what are we going to do here is we're going to use the include back, so I'll see our bootstrap isn't ceases. Not each day, man. And JavaScript is ingested. Reached. So we're gonna import them. The center will include. So this is an group gag, and inside these, we're going to see. So our CSS in jail just noticed my inside base. So what are we going to do here? We're going to say beers slash CSS dot html. Similarly, we're gonna do here, but instead of citizens, you're going to see javascript. All right, so let's go ahead and refresh it. This is over. I was doing now my tour. It isn't changed. Why? Why? Because go to page html over the unfortunate scored deleted. So let's ah, extends busiest dockage. Do you know I'll save the scene? Come here. Refreshing. Great. What happened? So it has everything. Okay, So what are we going to do here? These we're gonna believe this entire thing. I see love. Contend and look anything inside it, you save. Go ahead here. Refreshing. You can see all of this is invisible for it as well as Ravana. So if we want to include something else, we can do it in the same way as well. So come down here. And a new file And it will be about strategy in that I'm nothing but just said now, but servicing around to be a started. Tomo What? We're going to have a gun, actually. Really? So see. Look, uh, what is it? Block Based on the school head we've got here and block. And here we've been right. Blue is slash now, by God, See adjusting. Come here and refreshing. You can see the lab, I So in this way we can actually put them so you can if you have the call for now. But you can actually it correctly appear here. All right, so in depth, you can actually do them. So what if we want to actually include injury? Goodling's off CS is okay. So unlike here we are importing toward them the same. So unlike it. So I just want to have one off them carpeted. I want a home page, Right. HTML. So what I'm going to do here is, uh, included here. I want to see Look you and look, I put it here. Said Justine, come appear if you're fishing agency off the Kardashians. But if you were to look yeah, you see, there is some change like this where you can actually work it out. And if you seek the numbers appear here as well. Wait. Now save it now. Come and efficient. Let's go ahead. And your page. Souls late. This must appear inside Are based cottage demon. Okay, we've got our block new here. You need to put it in their strategy. Come here. You need to end the block. Saved. Here. Come down here. Go ahead. Here, refresh it. You can see the change gave money. People contact. You can see it is Doesn't implored. The local seizes. Okay, This way we can actually use each an individual orders want them together and include them as a fire so we can actually include them. Aziz External see assistance where it's a two hour tries. However, we want to do it. Okay, So disturb his class. We have learned a lot about including CSS and days on court, actually looting corn from different fights. All right,
33. #261 Pass Arguments with Include Tags: So guys in this lecture, we're actually going to see how to pass arguments with the include that. All right. So until number just included some basic extremely pages, but right now we're gonna pass tags to it. All right? So, for example, take this now, but has its limits. So we have Avijit Dexia. We're gonna sit passage and make it appear here. So go to the base strategy team. We have were included now, but artist him here. So what are we going to say with, uh, dogs equal room? Hear? What I'm going to say is, I want to say now, bad argument. Our activity ongoing used this art in place off now, Bernard html. All right, save it. Come down here and fresh It, uh, says yeah, if you see the nabet argument, you can see it here. So how does it happen? You could take this argument article in here about argument and pass it, do this html page. And when you get here, we're actually showing it here. All right, so in this way, you can actually work it out, so we can actually not just a sign it based on as a string dear. But we can also do it in case off context. Rabel. So So let's do that. Inform off Contact page. Right. So you have a Teoh. What are you going to do? Is, uh, get to the view stopped by and let's go to the contact. Yeah, we have it to you. What? I'm gonna babies. I want to see it as, um, now, But on the school bugs. So So what? I'm wondering these argument from context. Yeah, save it then. Inside this here, what are we going to do? Is we're gonna included So come appear. I'm going to see floor, base slash barn door, the are equal. He counts equal toe. What is our dogs here? Now, back in the squad bugs. So you display So let's go here. And if we feel it here, you can see admin from conduct. Our this was visible only here because we have especially placed it inside this contact page. But if we go toe home page, we're gonna listen bar argument because we did not have it. The context available from here. All right. You can go ahead and move it when I use it here, but this thing is very important because it involves a lot of applications. So it's good if you can go ahead and experiment with it and try try to do some good style so that you could gain a little experience. All right, so we're gonna do it lot more. And living in Christian public about include eggs and arguments, and the next course is that so let's continue.
34. #262 Reusable ListView Snippets: Hello. Gary's so introspective. We're actually going to use some, uh, completes, like each day, and medical actually structure items and knew it. So if you look up here, so we're getting each individual object and displaying them. So this is not much doing because they're just rendered as some context. So we want to use a bootstrap to actually design them. So if you could bootstrap, go to the documentation Hello, the companies, and go to court. And if you come down here, you see, this is a very simple one and then elegant so we can use this one to actually design of his titles. All right, so But we can have this kind of necessary for, ah, lot off a lot of things. Like we have detailed featured that's needed at least that external, so anything can have ah, use of discards it. All right. So anything future might also cause this usage. So we don't want to just bring it up here and rent, uh, reuse it again and again. So that will call cause off the problem off redundancy. So what are we going to do here is we're going to create inside the product a new folder called Snippet. Yeah, and entirely. I'm going to create a new five, the card dot html. So here, what I'm going to do is I would actually copy this thing, copied it, come down here and taste. See, now it looks cool. All right, Here before I do anything, what I'm going to do is I'm going toe, uh, extend. It would base because that's where everything is going to start this, doctor. All right? And this will be inside block content, a condom here and block. All right, so this would be inundation. So now, if you look for product page, you can see the Texas just lying around. There is not much designing. So what we're going to do here is we're going toe good here and include Page, the cardio, richly animal that we have brought here. It will be in power slash snippets slash card dotage. Demon. Okay, so interesting. Come back here and refreshed of it. You can see the card agents appear here were not much. We have not much added the information because all the information is in between the cards shoes. Yeah, but we're gonna have the information in little time here, huh? So let's go ahead. So now we're taking a new step. We're gonna actually make sure that this gets the information off the items so head over to this part. So what we're going to do is renewing the last lecture. We have learned about passing arguments to include that. So here, for instance, equal, What is the, uh, Algren going to be will be jit Because that's the one actually having the data. So go to the card attached to regulate the instance here. So what we're going to do here is actually put their conditions here because you're not having image that even every data. So if stands, you may just okay, then we can have And if all right, so here it would be in the stands. But images? No, you are. All right. So one thing we need to check here is the I feel discomfort or not to hear its images. Okay, It's good tonight. So now what we need to do here is the card idea. It's it's going to be I was going to be stance, not tidy. All right. And here you can put the instance description U stands. Guard description. All right, So here, what we're going to do it is going to put the absolute You are okay. Way. Have you tried? Okay, here it is. Good. Absolute. You are. We're gonna use it here stands. No, you are. So did view. Yeah, I didn't know. It looks cool. Come here. Great one. Understand that you forgot to do. Maybe. Okay, I move this. You don't need it now. Believe it back here. Well, Freshii, you see? Now this looks cool. Okay. You see, the images are not being distorted because we have put a condition whether an item actually convinced image or not. So if there's no image, it excludes image body and gets a good look for the idea. So one thing you need to do here is winter, actually. Good style containers tax. Who? Come here do plastic container. Yeah. So I'm going to take off this year. Yeah, So it's gonna have class could grow. Yeah, And this will be inside, coz I think this must go. So this team come back here efficient, You see? Now it looks much more clear rather rather than what we have seen. Okay. This way we can actually design everything. So, guys, now we can actually good with stuff as well. If you recorded, you can actually see the stuff. All right, so if you come back here, you can actually see the stuff on We have you found it makes you okay, So let's go here. You can actually get to the carnage. You can actually make sure that you marvel this thing. So that pickle imagine laws need to think with your life. Indeed. It's OK. So head stuff will be u stands not good. Absolute. You are. And this would be okay. So why go to the detail that this must be here? I think it must go right now, so Oh, here. Refreshing. You know, if you put it here, you can get here so you can look for distant. Okay? It doesn't show much. Oh, okay. For used by. Yeah, I think it is fine. So let's get ahead. So this way we can actually work on the stuff that involves so I can use this carnage. Come anywhere I need to use a cart so I don't have to copy it again and again and again. I just need to use include that. And you should on women the condensed, the information that the cops would display. So this is how bulimic den vincey and actually streamline everything that you need to do. All right, let's get ahead.
35. #263 Reverse URLS: Hello, guys. This is a special lecture because we're not dealing with any templates in this part, But we're actually going to deal with your parents, so I don't know. We have designed stupid on these and we're for murder them in such a way that you can actually use the easy on. We also create a new realist buying our products app so that you can actually distinguish between what at the product you're in and what what we need to the particulates. All right, so let's go ahead and go ahead to the project. Your stuff by if you can see here, See, we have the tears products. If we change it product and you're going to run into some navigation at us. All right, So And make sure that we do according to these errors and any changes that have been need to the world's here should complain that the reruns everywhere else. So what I mean by that is a change here should not make any errors. So let's go do something that's gonna make us. I get very so Syria as the default products one. So what I'm gonna do is I'm gonna do your high. So I have this. You are so one ways. And when adding additional argument, so name equals two did that. That's what I'm going to see this thing. So if we use this name D D. You're gonna run here as well? All right. Not only in Europe's not only temperatures, we confuse them in views as well. Okay, so if you call detail, it's gonna actually come here. So let's go ahead and do that and test out whether it's resulting in what we need on what more, actually are not. So what I'm going to do is I'm gonna make a copy of this just so instead of having to same this one, so I'm not gonna give it as instance you are. So what I'm going to do is when you say you are details and one thing you need to know, here is our euros. It has a slim keyword. So if you don't mention this lucky what? It's going for another. All right, So what I'm very is slug equal to what? Is this lucky? But that we're using for yours? Stands Got slugged. Let's see if this thing come back here. Products No, parts, which is could not pass. Amended details. Control stand. Start slow. Okay, there is some merit. The show there for me, but these are not bungs direction Tax. Okay, now, if you go ahead on understand, You see, you can actually see different, uh, different colors. But, Tim Tax. So I'm changing. So I'm gonna say you are sure this thing come here on a freshness thing is, if you have a view, you actually go to the same thing as well as you are a shortcut. This All right? So what are we going to do? Here is I'm gonna change you are that we have mentioned for project wearers. I'm gonna go in college. This product now you can see the difference. Okay. Have you refresh it? No. There's no products because list really changing conditions. Good product. Yeah. Chose view, which is linked with, uh, products as your runs. So see, his understands that Get absolute. You are. If you see the girl absolute, your relatives products. This is a bit hard, Cooley, right. So dismal into products that if you which chose another because it says there is no you are no page form, but if you had a shock, but it's gonna go to the page because when I will be changing rattle in the main part because I have given a shortcut a name to it. You can always point back to the right. You are. So you display, we can actually use them. So now let's do some additional t. So we need a very to actually make sure that distinct returns to see functions the same as a You're a short cut. So let's go ahead and do something like that. So if you come down here and Django rules, you come here. Yeah, yeah. If you come to utility functions, you can see this rivers on, right? So if you go down here, stays in the inside the Xanga, not Europe. So what we're gonna do is we're gonna copy, distinct. So come down here. What a tall I have a business thing here and come down toe. Get out, dude, you are So we're gonna do roughly the same thing, but in a different man. So we're done. You waas what it is deep did here. Key robes slug. You could do self god slack on, right. So in this manner, you can actually work. Okay, Only small. Mr. Keyes, this is a color. All right, so this way we can actually get out now. I'm gonna comment distinct Syria on. Come back here. It's running. I would like to hear and come here. So I want to go to the list view. Yeah. So if I hit you, it works. Now you're both of them. Book. All right, so now let's go ahead and change this thing to what it was previously so back here. Fishing, of course, the least for my world, because its products if you works, if you really good. So this is a very powerful tape because we can tell us and never get in here. All right, So what we're actually going to do here is if you head out to this Europe struck by you can have details, and you can actually give a name to this one as well. We're gonna give it as list. Okay? So one small problem will occur when we do stuff like this is No, we're not products. So we can have This is a part off the project, so there might be more apt. Like this, and each app might have. The same name is detail in list. Then there will be in another big mistake. So how do we actually resolve it? So if you carry over to here. So this is where our app your also being directed So we can given name space as we have done a name to it. Some name space people do products. All right, so we can use this to actually get there. So when you get Morton stuck pie, you see only detail. You can actually give name, space and name or agnosia of this thing. Come back here now. Feel fresh it. Okay? She's got an unexpected t war argument. Name space. All right, it's doing this more letter. Okay, This is the problem. So the name space must be included inside the blue part. All right, so get over the urine. Stop by a copy. Distinct and based it here now it must be resolved. What's this ringing albums not just look bad school name is, too. So what is to say? I understood me in care. Sweet singing at school inimical. Well, okay, I can do something like this. So come on head over here AP on the school name equals, she had this thing I had to hear from the server. Okay. It says Oh, yes. 00 Now that's outta here. Uh, serious thing now. It must run. It's going much more selection. Okay, now we have figured out how to do it. So here we need to instead, apnea, including the product. Start. You are those on right now. This is gonna work. All right, So here, like you running this, ever. You see? Now it's working. So let's go here, Come here. And if you have a refresher warrants and saying it says you are indeed, for instance, so we can actually change you. Come on. Here. Card British. So what are we going to see? Here is products. Yeah, How this say it is fresher. You see, I chase. Okay, View. It's gonna show everything. If you have a good it's gonna show you this way, we can actually figure it out. All right? This is a very, very powerful process, As you can actually maintain the navigation off entire project business. The shock cuts and reverse You are all right. This is a name space for an app or component and inside it, we're gonna use the name to Actually, Rivers, you are this kind of shot. Birds are gonna be very, very helpful for in the future. So stick around and learn a lot of new concepts along with this, so let's go ahead.
36. #264 Navbar: Okay, guys, in this lecture, we're going to focus on Creating and Navigation Bar. Never. So we have already created on a board or his statement. So if you go into templates based, we have no bad or HTML, we're gonna change this completely. So get to the bootstrap. And what a movoto had here is never. Okay. When you find this, you can school down, and here is you can find this link. All right, So what I would do is hop in this score. Yeah, and go back to your you know, and paste it here. All right. I think it looks fine. So one thing we need to observe who is We have this now, whereas a high do so so you can come here. Freshness team. You can see there is something Girls here. Okay, You have now buyers here. We want to change it as so if, uh, ends. You're gonna see e commerce on this one. And if Okay, I think that schools so we can get rid off this thing. Okay, So come down here. You can have home. You can choose this school like or something. Oh, that's you. Let me change this now. Bargain. So it's coming from where? Yeah. Yeah. See your lips. Okay, Now let's go and brush it. You can call much. Okay? Can we can use these things? I'm gonna get rid off the drop down thing. So here it is. I think is wrong. The drop down thing. Yeah. Okay. I'll come here. Pressure? Yeah. Okay, I got adopted. So what, I'm going to change it is some home. This one would be contact. It's on this one. I'm not disabled. I want to see it be products. All right. Okay, Now, this looks fine. So one being a change series, I can actually point into yours, right? Sophie? Goingto Europe. Is that why we have a ministry idiot and names list? And if you come here, we have actually put some things here. So let's go ahead and do something. I come to naba. So I'm going to specify here something like you're in for its what will be a list. All right. So interesting. Come here. Refreshing its products. I hate here. It's going to product. They hit home, OK, it's not going home. Conduct room yuk Almost No. So let's go ahead and change that stuff. Do you copy this que Here is that we need to change what's inside of this. So I'm gonna change it to home. I'm gonna change on tech. All right, so now we need to go here and you than their dresses. So here, common name equals home from I mean, equal vote name equals two on deck. Yeah. I wanted to give these officers the names again. Common name. Yeah, I think no. Did fine. Giving good contact? Yeah. Home. Yeah. Part. I think about these. All of work. Fine. So I think we need to add this longing and read just two pages. Well, because these are gonna be shocked. Cuts for us, really? To add them as well. So whatever it is, I'm gonna go ahead and put the log in here. So come down here. Yeah. So I think I need these things as well. That's so I'm not copy this one. You hear what I'm one of these Le Guin. Yeah, I think now it looks fine. Come down here. Fresh shoes that had long in and will love you and our products and contact whom? Yeah, we can change this. You Calmus, come down here. Carpet this thing. And yes, you did. It's strange for the e commerce. All right. Two products you call must home beloved. Long is not extending the page, but it's OK, but pregnant. That sound off. If you see here, if you close the room is more active than all of the others. The golden polity and then the home is a gifts. So we're gonna change it now. So, water mirabilis, I'm gonna big, distinct, and I won't go. Talked age. Dish it. You the score. You are. So I'm going to use the desk. Just a little modification is that it will be inside. Okay, So warm memories we can use home and the schoolyard as like this. You sure? Off the entire thing. All right. So come here. Move it, woman. Yeah, I think that looks fine. Okay, So Warren's been book so unsure off putting this actor, We can remove this and say, if the West had equals, um, home underscore you are. Then we can say active oils. No. So here and all right, so I'm gonna lose same thing for them. So now this is not active, but several detected for good products. This become united. It's understanding for everything that all right, so contact the product for logging. I see contact in the school school. You are as logging underscores. Yeah. So, first use conduct. So great, we can just use this one and change follows. So from here. Okay. Okay. Okay. So, conduct, you are what we're gonna see here. Conduct product. Come back here. Fresh burn ups. You see this 100. So if your conduct converts whom disturb, you can actually perform some operations. All right, you see? No, our work has Finally bean resulted in Brady. So if you see here, we have a lot of stuff, so, uh, you can actually get rid of this. We don't need the comet out. We can just delete it. We don't need that that in itself. So if you see, we have given a lot of classes to it. We get given longing as well. So I hope you understand. All of this is much more efficient ways. So you can let me know if there is anything else that is more efficient in this. Okay, So what are we gonna do? No, heat is We haven't actually create some a little process that will help us to do something So I don't want to see long. Always because of my users are already longing that side muscle lager shouldn't show log in the game. So we're gonna do something like that. So if request what user used indicator, then we're gonna show Lago, right? Yes. You use it is not din. Then we're gonna show him. District's all right here. We can actually, and this cloth and so I say no. So right now we have actually created a lot about So let's so let's just say no go. What does me don't? All right, so in this way, we can actually figure out. Okay, so what I'm gonna do here is on this one has logging already. So what I want to do is I want to change it to register. I hope you have already done that. Art computer. You have a registered here. Come back to what it is. You hear something? Yeah. I just want to see So just we're gonna use this is just there You are. So for this entire thing and iTunes the studio, your kids just so that you can. Yeah. Do you can actually change all of this to the single things as well, but not necessarily. So if you come come here pretty logging. And Mr you can also log if I goto logging and actually logging my user. You see, it's so all right, No music is not loved out. So you have got really making it. So until now, this old scare. So if you haven't going under, sort of go back and watch it again. If they're in questions, you can post it. And anybody thinking that you need to understand this concept, the boot step classes are not really comfortable ground. We're gonna learn about it in the next course section completely about the bootstrap elements and everything about it. But for right now, you need to understand that Jan, who has a colorful command over how to run that sites and how designed them and have a complete handler on how to work around red sex. All right, so that is the main important concept. So if you can grab that thing your well, good to go and lend a lot off it, so let's go ahead
37. #265 Template Filters: other guys. So Trillium Wonderland sending you, we're going to learn about the temperature theaters that are provided by Zankel. So if you see here, we've got the truncated words. So what is it? Changes drunk. Interesting. After a certain number of words betweens, you can have text defending the seven member forward so you can have a large amount of picks out of it. A sharp reminder, particularly buddy, have long amount of text. You quite a problem of how the stakes is being viewed because it is large, the view might be disturbed and it can be very but troublesome toe make us good design for the user. So when you actually use this filter at the Temple Age, where it will do is it will truncate all the wars after these number words and all the rest of the words will be truncated. See, we can actually space for how many words we want to see Ono temperate. Okay, so let's go ahead and do that. So I'm going to Laura Ipsum, religion greats and Lawrence and text. So I've got everything someone copies every tired text. All right, I'm copying it. I'm going to create a new product based on it. Laura, if some, um What? I want peace. Distinct. Yeah, I want to see. Yeah, next has been seen. So now if I come here and refreshment products, you see, I consume a lot of its impact market will see, this is why distort er has a large amount of text, like so why would you do know? Because I'm going to use this and bread feeder from cape words. All right, so go write him for really receive credits, Mr. So inside these, uh What? It's less put such carnage. So they're going to a conference to move? Yeah, here it is. So inside our car, we're actually seeing years description. So what? I'm going to see this firm kid words. Colon harmony 14. Yeah, exactly. Now come here for fishing. You see the text, citizens reduced to 14 words, you see? Well, this three dots indicate there is still a large amount of text remaining initially there. So she come here and weird assume we are required to hunger problem. But this is a very closed when you can see here. Just kind of for me doing paragraph. But here everything is clubbed together. So let's go ahead and great. Great. Huh? What was in the day? Uh, description. I was lying. Three suit. Come here on the issue. I care must be lying. Baker on what I wonder is on the chills the kind of this you Yeah, line breaks. Okay, Yeah. No serious. Come back to your money browser. Yeah. You see, Not its home right into Paris. But I will do this entire thing. Do this. All right, So what am I gonna do? Give that must be Dina inside age. They respond to you, Rose. And inside it must be called. All right, so all of these come here right now. Syria deficient. You can see all of this for Maryland reunites where the title is in Hitch. What? So this is where you can actually make sure that all of your large text is actually no matter here and small, But when you go to here is that we're quite need. Well, this is where you can iterative create templates. Theaters on use them, uh, 200 Grandage on how you want to upsetting. Look. All right, so we can actually use these templates shakers to create something that can help us, uh, to make sure that our design looks well. So let's use this one right now. So what does it mean? Change the text. What Other days, Captain First later. Rested in the small. So let's do that. All right. I was something here on that's just sure. Great. Now come here. Uh, products. Good. It just shows the textural ease. But if you come here and you Seeker, come back here Freshii, we see the s and the hitch, actually, Comet. All right, this is you can actually make ship making improvements. All right, let's square. Didn't do something like let's put some sanctions. Uh, yeah, yeah. Next. Let's do the states. All right, that's where So you used trying to make sure this place here, you need to have a time stamp, Azat Mari Element. So let's go. Tomorrow survives. You don't have your attention. I understand. Do you? Morning, star date time? Uh, I don't understand. This equals group group. Sure this thing to make changes to our once that pie you do. Actually, a lot of we went home with his commands. Make migrations on and you need to get cold soon not know this will give It isn't time for all the existing. Of course, that don't have the time stream president. See? Yes. He has done no fight on my own age. Stuck by my great Now, all right. Now we do have this meeting, so let's come to the human. Um, what I'm going to do here is actually do do the time. No, I'm we'll see. Object? No. Eyes down. All right. Can you see computer fresher? You see the time. All right. So what I'm wondering is I'm going to time food. Seems you see, I'm here after some time. It's gonna say I want to do that. In this way, we can actually use leaders. That could be difficult. A lot often sores way we can actually show. This is it. Go by going. I'm not here said ago and we actually don't move this things more to come here. Now, if you go back here and wish you just three minutes, eagle. But this really gonna actually grants home things much more. We could actually go ahead and accept it with a lot of things here that already have examples. I'll leave that to you. as a task and you can perform operations as you want. All right, So this is a very Gordon concept. As because you might have you if you want to build something like a new set upside. Anything like an information that a website that has a lot of information to display. You need to know how to play on text, right? So I leave you with some time to young text and then get along with the next lectures. Cried now, Thank you.
38. #266 forloop Counter and Cycle: Okay, guys, this lecture verbally learn about the follow up cycle and count. So, 2nd 7 anybody creates, um, additional extremely lines that circle around the front. Fine. All right. So let's wearing do something. That's not what I said. So I am in my list, all right. In the follow up here, inside this, full of what I'm gonna do is I'm going to create a new psych. So let's go ahead and do that. So I love it. So what I want is I want to create, Come back, I would cycle. And inside here, I'm going to do extremely cool here. What? I want to see pitch one. And here. Hello there. All right. After the 16 that I wanted you on empty spaces. All right, so let's go ahead and see how it will are. I got you. See this? Hello there. After two products like this, where we can actually, So if I want off it, it's gonna show after every single law here Pressure, you see, after every single one. Sure. Showing her in this one didn't actually make sure that cycles appear after they wanted to r e number. So in this way, we can actually use seconds. So if you wouldn't know about for loads, they're much easier. So if you come here for a dog counter and you can actually see the result on right, we see each off. The item has a counter. 12345 This way we can Actually no, What is the number of items? So we don't have to have an extra or additional court. It is a default one, so we can use a kind of a All right, So what I'm gonna do is I'm gonna should write them cohere, using the fund so right, born of water right here. You for new dog conquer visible by, uh, Why Rick I want and and if so, close this here or here. But here often, after proving this, I'm gonna close the rule as well. I'm gonna create another room here as well. So what I'm gonna call me says room classic servicing come up here now. Depression. The 1st 2 are in a role in the next one. Another. This was a connection coating. So I, uh, the line here come down here can see you're lying here. Elaine, After this all right. Why do you have your cell, Kalak? Yeah, you glowed. I think we can actually take this all pressure to see these now. But you can actually use for you to actually. Do you mind what? Rebelling like this. So what I'm gonna do is I'm gonna do this in addition Stuff here. Okay, so here we have got a child. But not like this. I'm gonna do something like inside. Did I want to give another new dad? So here, what I see is and I think it must work by now. Here are not here but here. So this scene I'm up here and I refresh you didn t get right back here. I didn't sport were Yeah. Now it isn't perfect. All right, This way we can actually figure out. How could you stop? All right. Learning experiment with All right, Let's change it to three. And now let's see how it would be up to us. I didn't know. It's much more creative if in temperature, each of them, that's good. But what did they have products ever like? 100 1 on this time in loading them in scoring a cost at that beach we want to go something that's more benefiting than for all over the counter. So that, yes, we're going to use another concept called pagination. You see, what Peyton Nation does is presentation. Divide the number of items a cop across multiple pages and issues an X number of items to each page so that each base does not have to big the amount of fluid that's being burdened upon. All right, In that way, we can actually use page Asian.
39. #268 Bootstrap Intro: guys. This section is particularly dedicated to Bush. The design framework that we have using now to design out of the pages, so to design their pages with my partney, good strap are anything else. But we can simply use HTML CSS, and I don't basically ability but to actually make sure it looks good. We need some mechanism to actually streamliner all the entire process. So if you look at a roadside looks pretty cool, all right. It's arranging a particular fashion, and all of the design is given a nice touch. But if you see if you compress it, the website looks even better, all right, because mobile is main. Aim off. Bush Bush Trap is mobile based approach So it focused more on that case, but when you actually enlarge it, it kind of looks good. But not as good as we have seen many when the compressed it. All right. So it is very, very important that people in this part of the course they actually want to develop it using Butch, because Bush have worked without almost all kind off, back and in front insistence, you name it. It works with flags xango angular, Rubio grades in almost all off them. All right, so when you have the kind of resource you really want to learn about it, All right. So the main and important thing, our good step is that we need to learn how the bootstrap playas fundamentally work. How this chair and how did the work with a ball layers in this way, we can actually get into the cracks off Bootstrap. So this method will help us toe really understand woodshop and you how to use it in our pro programs. All right, So if you want to use point on, is it as an individual part of the project, you can go ahead and develop the best, but it would be as fast as we do it with Xanga. All right, so way really want a spirit for building process so that our customers are uses. I actually handed with our website. So let's get ahead and learn about which about how we actually get into this. If you are. If you have followed along the course marries will already know that we have been pretty much well, all of it in using. So now we're going to learn about more extensively about right, So let's go ahead
40. #269 Container vs Container Fluid: solar guys. So let's go ahead and add Bootstrapped our project. So they have done this already before, But now we're going to see any different way, and we're going to do it in different approaches. Well, so right now, go ahead to the boots, several get which got come and get started when you get here. If you scroll down the starter templates. So we're gonna use this template to display in our garbage. All right, before we do this, go ahead. Door Raj A And in my e commerce project. So what? I'm really I'm gonna go to the templates and create a new folder I'm gonna call it is would scrap. And inside woodshop I'm with great new five on example or stand. All right. So here, 100 days I want a copy that Copy this and question here. So right now we're not gonna make any changes, Street, you're just gonna displayed what spoiled this. So what I'm gonna do is I'm gonna go to projects, you ulcer pie. And here I'm going to court from jangle door views. So, generic template, you all right? So I'm going to use this one, so come down here use. So do you know anything? Copy this. Not here, Kristie. So what is scrap? So no name and nothing. So what are these template you, But as a disco view inside here. Template on the school name You couldn't go. Bootstrap smashed Sam Door HTM soliciting. All right. You see, Elsa is money, so I'm gonna go here. I see. I would stress she's seen We will be here. Yeah, right. All right. You go ahead and you're the pain source. You see, all the court is being displayed. So our website is displaying the stock timber that we have a little project we got. So now let's learn about how to actually recorded Bush. That so not that we have. Ah, bootstrap. Using would tribute extreme of bigs. Now let's learn something hopeful, actually with data hit. So we actually have two types off how to methods and how to actually carry great there. Se convenient. Last and another is schooler, but continued dash flute. Okay, So what I'm gonna do is in with him. Dig this out. Go ahead and chicken. Sure. Yeah. So what I'm gonna do? Ease. I want a bootstrap documentation. The competence And if you see, there are some minutes a warm memories. I'm gonna take this 1st 1 copy? Of course. Come back here. Is she done here? So I'm gonna go back to here. And when I grabbed the 2nd 1 Yeah, What? I'm gonna days it should hit. So what does this meat? So these two alerts are gonna be formatted separately and different. So if we go back here at the world and you see they're different dimensions for each other and depending on the size off the browser, the 1st 1 adapts to the sites with the 2nd 1 stays full, full size. No matter what's the size of the rosaries you see by this, we can understand. The container doesn't talk about all of the size of the grows it. But when the Broza SAGES compressed or expanded, it adapts size according to the browses with But in case of Kadena through it it stays the same size. But the same side doesn't mean in the car. When the rose it is compressed, the container fluid item will be the same size. It will depend on the growth of size, but seem means it's going to be the food victor off the frozen. All right, if you if you simply complicit container through the container fluid is going to remind the same readers that the doctor brought it. But the container is gonna adapt its size according to the picked up the brush. Our guys in this way, we can already understand that their advantages and disadvantages off both of them. It depends on your needs. Reach of them will be useful for you. All right, that knowledge, let's go ahead and learn something else about bootstraps.
41. #270 Rows and Columns: Alright, guys. So now we have learned about container and container fluid. So now we're gonna learn about rules and call. You see rows and columns, and much more similar to like, a spreadsheet I appreciate is designed based on the concept off rows and columns so that we can actually arranged data in some fashion that it can make some sense. The suitably bootstrap also has rules and columns as classes, so we can actually make rows and columns on a rep it So let's go ahead and do that. I'm gonna started by doing in the container class. So what I'm gonna do is I'm gonna give a glass roof list inside the rule. I'm gonna do Class column. So now I have a role in a color. So what I'm gonna do is I'm gonna actually copy this alert and paste it here. You see, my color is inside the soul inside the column, which is inside the rule with gentleness inside the country. So if we go ahead and refresh it, it isn't gonna change even a little bit. All right, there is. Yeah. So if you grade and view for the pain source is gonna see container, so call him, But it's pretty much the same. So what I'm gonna do is I'm gonna copy this a game on what I'm gonna do. These, uh, what I'm gonna do is I'm gonna actually copy column, and I'm gonna pace just below it. But this time, what I'm gonna say is among secondary so that the color doesn't confuse us. So I come here and fresh it it see their two waiters cyber side by because these boots are columns inside a room. So this is a role which has two columns. All right, So if I go here, what I'm gonna do is I'm gonna make pull off, right? So I'm copying this. So these are two. All right, What I have to do is no fool. Six, eight, then end. Quote our servicing. Come back here. Refreshing. Now you can already see these a pretty much very neatly align. But the Norden seem seem by because bootstrap organisers dead up in a particular fresh it devised of upsetting to some parts. And those are these all right? Hardly have actually. 123456789 10 11. And that's quick All right. So bushed abuses some kind of fashion to actually divide the website so that the data intern actually represents and presents of very good fashion. Are you guys? So if you play around with this, this is going to show something to us. Okay, So what I'm gonna do is, if you see, when you actually compressing expanded outside, you see, the the way the boxes in the alert items inside each column is being for rendered differently until, despite all right now, there are four columns in three to us, depending on the side of the brother. You trained us in a different way. Now, if you see now, how many there are 55? No, they're seven and five. And here they're nine and three, and that's the fine. So but actually, there is a small creek here. The browser is divided with bought bootstrap, 12 equal parts. So if you want to see the let's come here, what are we going to do? Here is so this column actual evidence inside. So we're gonna give it the size off one so that each of the column. So let's give the size to each column. I'm gonna copy Ph did here. Yeah, yeah, yeah. Here again. And what are we left it here again? On here again? Yeah. Testified. So save it. Come back here and refresh it. If you see, all of the items are arranged in one room. So if you actually are going to compress this thing, which I'm going to do it now, so you see, all of them are completely rendered in one broke. That's because all of the mind equal size and all of them are inside one room. All right, so how this will be rendered if it isn't containing fluid. So let's go ahead and check that. So what I'm going to do here is I'm going to actually copy this entire thing. Yeah, copied. Come back here and basted inside here, but I'd save it. Go to the browser and refreshing. Now, if you see their quality in container while in container fluid, so both of them are going to be rendered in a similar fashion. But you already know the difference between that. The container fluid has more space than container. And if you see both of them a divided into political party in this way, the arrangement off the items is very, very neat, and Bush, it can actually make some suggestions based on it. But when you add an extra, them is gonna push it to the next door so that the items do not collab with each other or acts. So hopefully understood, I think hopefully you understood it. If you're not, you can put some questions, and one important thing about it is we can actually make some other some other changes to it and understand about this. Rows and columns stuff very neatly, but not now in a moment. So if you want to play around, you can go ahead and do that, too. We can actually give it, give the difference. I just want to 34 and many things like that. So you could go to the bootstrap absurd and learn about it. So in a moment we're going to see this, too. But right now let's go to the next section and then something else
42. #271 Column Sizing: welcome, guys. So in this structure, we're actually going to learn about the column sizing and everything. So if you see all the on this webpage, we can actually see the container and container fluid having cool columns on each of them. So if you shrink it, there's still freedom in dating the same. All right, so how do? OK, hold whom. These columns actually command their sizes while they have been blow off them. So let's go ahead and do that in a professional way. All right? I'm gonna get out of mine. Ah, So, guys, we're in her, Adam. So what I'm gonna do is I'm about the continued cast. I'm going to create a new one. Right. So I come here. Uh, what I'm wearing is yeah. So that's with them. Yeah. Okay. I think this works, so I'm gonna get a class container. We can actually container fluid as very. But now I'm going with the class. All right, So do glass for this room, and then inside, we can actually do it. This column, right? He shot one. What I'm gonna do is I'm gonna do leave it as it is. Come here, fresher. You can say you can actually see. Then die one being filled up by the full columns. So the group's tried device of a page on the grounds of Beijing took one columns off equal . So the one that we have given now takes the entire part of it. So if I go ahead and I want to do is right, this must retired back. So what? I wanted it. I'm gonna copy this thing. I wanna pace it better. You hear what I'm really? I'm gonna get Call him. Dash eight. What we're seeing here, that's one. Gives it one part of it. That shade gives it heat Bucks. What? What will with size off this car. So let's go ahead and check it out. I'm here fresh, You see? Takes aid. And what what does the 1st 1 do you like the rest of the four? It's exactly how many Column says it had. All right, so in this way we can actually check how the book sub works regarding the size of the columns. So while we don't have a mention, anything here. But it's very good to actually mentioned because it better minds and establishes the size doesn't have to go upon anything else. All right, so if you come here refreshing, the culture doesn't change. But if you go here, Yeah, I could see called at four late. So that makes sure that all the charges running. Very good. All right, so, No, What I'm gonna do now is I'm going to give a little style to this so that I don't know that we have learned about it. So let's go ahead and put some style to hit. Okay, So elementary is give style to it. Style will do whatever is gonna get a height. Height will be 800 pizzas. So San Justine. All right. I want concrete and fresh. You see, it's taking 800 pictures here. Okay, so I want to reduce it to that. You can see everything in a single part. Um, when your son Hendrik save it, come down here. And if you fresh it? Yeah. Taking 700 pixels here while this whoa is maintained as like this. So if I go ahead on and I wanna work, change it, only one part off it on the entire thing. Coming here placing. Let's say come back here. If you come here. You see, only one part of it is stated. But this one is that truly like stand alone. All right, you can still see it's taken eight columns and this one out. This worker, there's no difference in that. So let me go ahead here and do something. That's what I'm gonna do is I'm gonna actually copy this role. Uh, making, um I want a copy. A rule. All right. And pestis sting on will remove the spot. All right. So what I wanted to know is this will be off calling. I'm tired, and this is in now should have their. So this will have a secondary. Just so that being the car difference as well have come back here and fresh it. You see, that is a now, but this one off breast, more room. So I'm gonna change your toe. 607 back here fresh. You can see this every now if you look at this one side in a particular way and shut off. Just seeing them as columns, alerts. It has a navigation a minute. I paid, um text Syria and a foot this much off of the outside. How we can actually represented. All right, this is like, similarly or one kind of vegeta. It's like article being it. All right, All right. Now you can actually see it. So let's go out and reduce the size off it so that you can actually minute I made him. So I'm coming here. What? I'm gonna it is, uh, reduced to on this one time. Save it. And if you come back here, the fresh it, you can see it much more like a mini, right? I think this one is the text area. It's not an article. All right, so if you want to have something like a sidebar here, you can actually get to. So what I'm gonna do is I'm gonna visit to aid, so I copy this team called being and pissed it here. I want to say call them there to see Come back here fresh it. You can see it's have inside by now. So this we're gonna actually will be doubting. So now I'm going to say he does copy this Same Matt, you say All right, so here it will be working. Quite. Let all right. This way, we can actually regular If you want them to be matching the size off the article, you can actually do that too. So how we're going to give them size as well. So here. It could be on here. All right, say visting. Come back here for fresh it Easy. Thes have taken the size after entire article like that in this is the natural. Worried at all. Right. You see, sometimes on my great mint may be displayed on the side of a website you can use. This is a part of it. Not exactly that I called this meeting similar way. All right, if you have understood, you could get all right toe. If you want to remove the these patterns of patching things, we can actually go ahead. And what I'm going to see is, um no dyes, gutters. Save it. Come here. Refreshing to see the padding of the gap between these items have been reduced a completely shoot down. So they're all of them are combined. Are you guys play around with? Go ahead and play around with distinct. You learn a lot of interesting things. You can come up with new ideas which can be already fantastic. All right. So I really leave this with you, and you can actually go ahead and play it. I'm gonna remove this part. I don't need this one. So go ahead and play around with it. This was very fun. And as you can also learn a lot about these things, All right, So go ahead and play. I'm gonna, uh, make you in the next six, all right?
43. #272 Offsetting and Ordering: Hello, guys. In this lecture, we're gonna discuss about offsetting and ordering. All right, if you look about offsetting, there's his nothing much bird, uh, giving a specific location, toe the columns. All right, so if you come down here and if you see, all of your items are satisfied at some position, all right? I want to come here. And if you see, all of our items are positioned at some point, So let me do something here. I'm gonna come in this lasting about. Yeah, I did. Comedy doubt. So if you come back and refresh it, you see, now they have Dwyer, and this is much more space acquired. Empty. All right, So what I'm gonna do is I'm gonna come down here and I'm gonna give it new class. This will make it go. Something I want to say. I am a lash out, which means margin left dash, Otto. And if I come here and refresh it, you see, it is getting some appendix like this. It has given it some distance. That means it's given. Imagine, on the left side. And it's pushed to the right side. This where you can actually create some kind of area. All right, if you come down here and actually notice come up here and you m r Ashado and save it. Come back here fresh it. Nothing changes because this one is pushed on to the right side. All right, regardless of whatever you do, what are the sign of your brother? Is disease going to maintain the difference and offset? All right, this we're gonna ensure that all of these items out of the particular positions regarding to the bitch. All right, so if I go ahead and do something like, uh, what I want so I'm gonna give you anything, like copping it Bishop here. Poem. What I'm gonna say is, I'm going to, uh yeah, I do know it will work. Maybe Trish is alright. What I'm gonna do is I'm gonna do six. And now Syria, if you come back here, appreciate. You see, you can still see the displace maintaining this offset. This way, we can actually perform some operations that we work. So you should off to I mean one and Nancy. And if you see the entire these two things were pushed into the right left side and the offset is on the right side. All right. In this way, we can actually made in the positions are I'm gonna go back and did these things. So what I'm gonna do is I'm gonna actually come back to the original position where we have bean so that I can do something much more practical than this. So we're going to see a much more practical example right now. All right, So this thing come back here and look at the world travel experience. Yeah, it looks like the previous one. So right now we're gonna make a practical example. It can demonstrate about these concepts. So, guys, what I'm gonna do now is I'm gonna get some texts up up here, so I'm gonna get here and creating you. Go here. So do roll with glass called slash one. This will be home. Yeah. And here this will be called us to lash on. This will be actions. All right, now, let's go here. And fresh air using what we have. We have takes appear with this offset in between them. All right, So why not? I just do something. I'm not changed these things here. All right, so I want to put it. But something here you will see. So whatever I want them to be like and other items give this thing like ISS do Dag. Okay. I'm not giving the style options. Okay? Okay. After this, I'm gonna close the Duke tag. All right? Why? Um it's mystical. Right? Okay, this one close to column. I want us destroyed. Yeah, I think that looks fine. So we can do the same with the cells. What copies? Come down here. You do okay. Yeah, I think No, it looks fine. So let's come down here. Come into fresh it. These to have the red bottoms. So what I'm gonna do know is ensure off this. So let's give it a text input so that it will reduce like a search bar. So import I because taxed name It doesn't matter for the street clown. So what are we going to do? These placeholder equals search. All right, suit listing. I want to get rid up to senior right now. Since you have two, let's give it a size four. So this thing come here fresh, you can see now it has a search, but like, hasn't wanted the writer. So I think we're giving more size three. Yeah, so not if I go here and fresh. You see? Now it looks perfect. You have the such photo, right? Talk in a way that you want indifferently can actually creating nice, good elements, that design of a page in a particular fashion that is a nice user re incurred so that you can understand what you want to do. Know what's with the country or ribs? I don't have to think about or I have to find the surgery. All wear these? No, it's perfectly aligned on a user based approach. All right. All right, guys. So let's go ahead and remove this, Uh, what was the other type? So that a search bar is free from off these things? All right, so come down here. Yeah. So what? I'm gonna do this. Yeah, I think that it must look cool. Only the search bar. Nothing else. Earning it. Yeah, I think it looks searches visible right now. So now the next part of it is ordinary. So let's get started with orders. All right. During the what it means is to actually place elements reviving their order. So Right now we have these elements who, based on the court that we have written in history, Emma. Okay. So whether the Emma Le Chateau, anything else are based on it or anything. We have our elements. Order based on the baby has specified here. But still, we can change its order by giving it a number. Like I come down here and what I'm gonna raise, I'm gonna give it order. Yes, then And here it would be order dash to. All right. So if I come up here and fresh it, you can see the elements of rivers, but this one is up. Out, off between them. All right, this Come on, this has come out from inside between those two elements, so because we haven't specified in order any order to it, so I'm gonna give it. Let order there. Six. I say this thing, Come back here in our fresh it. You can see both. These two items have been reversed because this one has a better armed than this one. So the last night, So let's changed this text so that we can actually get a good perspective rather than simply saying the color I want to see first. I don't middle item, and this one will be last night. All right, so now let's come here Another few. Refresh it. You can see the first item is specified is here The mill enemies were supposed to be, but the last Adam is in the order off between space fighting. All right, In this way, we can actually work out things, But there is still some problem that is left. You see, when the browser is using size, it's not actually performing in a nice way. We need to make sure that this one was does performing a nice, but so we'll check that out in the next coming lectures. For right now, this is about offsetting and ordering Good luck with that. You can go ahead Iraq and experimented, order you by giving bunch of elements and giving them some members. They are there. They will be visible on your right side. Let's go ahead
44. #273 Breakpoint: other guys. Now, this is the time living, uh, learn about the hold to develop that sides with providing the broader size to understand it . Uh, adjustment, depending on the side of the brother. So this is where we actually introduced break points. Break points are like the points with refer toa the size of the browser. And at that point, we can change the size often individual element, depending on the side of the brother. So bootstrap is mainly for because the more bill All right, mobile first approach is what bootstrap follows if you actually see here, and you should compress it down. All right, this is we're actually wait. I think this is how it will move. This is the last, Please were you can actually see it. All right, if you have adjusted browser and the automated or two side by side. So this is how you can actually change it? Alright. What I'm gonna do know is I'm gonna go. I'm gonna make this search bar, uh, occupy all the length of the browser. So if this is mobile view, my searchable should be size off the mobile screen. All right? So, through the victor of them about school. So I'm going to go to the text. Uh, yeah. This is the search bar. So what I'm gonna do is I'm gonna give it length off it. I'm gonna take it like 12. Now, Sadie's come back here and refreshing. Okay? It's not taking and I screen. Why? Because there's place five distinct. Here. I'll see it fresh, you know? See? Now. No. What are we going to do now? Here is what we have here in called Just give this search bar classic Wittle form. Dash, conclude. All right, no. Sail this thing. Come back here and refresh it. You see, the searchable occupies the entire width. This is how we, uh the mobile upside will be. This will. But if you see if you extend loves this website now it's up playing entire Vic, we don't want this to be like this. The the record is being viewed on the outside. We want to such God to be a small. Is it possible or smaller as we wanted to be? But when it said the size off off mobile device, it must be ah, occupying the entire grid. So what are we going to do is we're going to specify using a break point. So how are we going to do it? Is are you gonna expense fight here? You call him Dash Essam Between small dash 12 The smallest is actually the mobile. So we're specifying column dress suggest Well, maybe more behind us. She could be sick, but it won't make any change when the website is being extended. So what? Are you going to do it? This is the next one. So call dash, medium dash. What are we going to get? We're gonna give it 61 Right? So, uh, when eventually is being on the website is being in large should use each to lock advice and diverted now stew No student. All right, Wait. I don't think I said this quality. Say this thing fresher. Yeah. Now, if you go ahead and cheesy here is entirely field. But when you enlarge it to certain extreme now six scholars. But when we enlarge it it's still locked Classics, but it's and the browser sizes more Its size is increasing, so we want to talk very much less evident that so what we're going to do here is we're gonna give another break flight when the column. When the website is about large size, which is where the Web desktop. We needed to give four. But I cannot see this thing if you come down here fresh it. All right. What are you going to do now? You're going to extend this website? It's a occupying. And scientists like the size of a small tablet or large mobile. Right now, we don't place six. If you're large, it more. Now, if you see a dark place four in this way, you can actually use break point to make sure that website looks decent while operating on multiple devices. All right, so for using this concept, we're gonna move forward. All right? While we're already used this fine. Small as a mobile device. Rock school columns. We don't need this thing, but fragment wouldn't We're not going to remove this. It's gonna take some time. We're gonna learn this concept central. Then let's continue with this concept. All right? So let's go ahead. Alright, guys. Well, pretty much make sure that this search bar works fine. So let's get to the next part. So whatever you do here is we're gonna play around with these items last relighting on the first. Tried. So particularly these items are disorder because off the order that we have specified here . All right, so now we're gonna play around with it. So what? I'm gonna do these, I'm gonna change these things. This will be my border item. What items? Yeah, Andi, this will be my Oh, don't wait it, citizen. Come here. Refresh it. You see? You know why did I said bottom and top? Because I'm gonna change a little bit here, So I'm going to see a column. Whoa! And to if you refresh it, you see the water madam has come down here. So it's cheating. It's eso will move this team. Not for the middle one, with the top in the bottom right now. Refresh it. You can see the bottom item here. Why didn't come down here? Because we have government column offs. I scroll while these to take up about $8 to 10. There are not enough columns available in that room. So what decision pushed down toe, push it down to the next level? Not necessarily. Didn't meeting a roll. It is not making a new class role. It is just using the one road that we have created here. It does not mean that it's creating a neuro, but it's just pushing it down so that everything is particularly alive. All right, so in this way, we can actually see that this is a bottom, right. What I'm gonna do is I'm gonna make sure that it stays on exercise according to the grocer . So if I enlarge it, you see, it still didn't and time roses. I mean, that container thing. All right, so what? I'm gonna lose home? No. Uh, when it increases its size to, like, medium, I'm gonna save take up six. So if I am large, it great save this thing back here. Freshii, you see, is he now doesn't do that. Cool, All right, because I think six of them, but according do when we actually get here, it's not really that need. Like what I'm gonna do is I'm gonna change this thing. Do large. Yeah. And now, if I go ahead are on. Do it now. Looks like a little bit more align. All right. So are introduced. Six years to give. Just play around with Alright, I get it. I stew must come up here. All right, So now, Seaweed, no fresher. Now, if you see here, you see there it comes up here. But you still have a lot of space here. Why does it have to go? Maybe everything said having a lot of space. Enough supposed to activated. Good. So it doesn't look quite good when it comes appear. So what? I'm gonna re that change it. Not so this thing after a flush it. And now, if you observe this thing, see, now, when it comes to the sides of large now it will become item that comes up there. All right, So what are we going to do now? Is we're gonna do a similar thing that talk about them as well. So I'm gonna copy this thing. Come down here is the same fresh it, uh, you seem to stop. Wait a minute. Bottom eight. So the middle item is not particularly like in the middle right now. So what are they going to do? Here is we're gonna give it seeing this thing come back here and refresh it. It's on the right. Markets are if you've come here. Freshii is enough clearly in the middle on the bottom and top animal media lines. So if you actually going to do this thing you see, now you see the top and bottom coming to the sides off it here at the top, Right in this way, we can actually make sure the alignment and the break points are working quite good. Okay, so after doing days, we can actually modify a little bit off how this view items contribute. All right, So what I'm gonna do is, uh, let me do something. Uh huh. Make sure, Uh, okay. Now, these things will be modified in such a way that, um I can actually place them here, so if I refresh it, Okay, you should on a, uh but I want to get to eat, save this thing. Come back your fresh and you can see you know this octopus as much as this one. All right, so although we have it, uh, margin left and margin, right? They don't actually do the justice with it. So now I'm changing it. 11. Now, if you see there quite well shaped. All right, So but will you improve increasing the sites is not being, uh, any option now. So what I'm gonna do is I'm, uh, change this too. Okay. Large would be to What I'm gonna do is to here called Last Large Dash. And so I didn't know district work on a fresh shirt. Now, if I extend this thing, stop playing. Yeah, okay. This is mr because bottom must be coming up here. So another reason we changed this to eight service. Refresh it. And now if you extended, you can see both of guidance being available on the sides off it. All right, so in this way, we can actually work it out things. And we can actually make sure that these items match adept themselves according to the size off the Prozac. Although we cannot. You were only working on items of texture in an urgent but we don't actually put multiple things inside of this and make sure they aren't off all of the right process. It's not just playing with these items, but we can actually perform some operations moved on. What the items here are. So you sort of just here texture. You can actually put something like this. So what? We're doing is, I went on bringing these into the middle part of the item, and I closed this week. Okay? I think everything is fine. Now I'm gonna say this thing and fresh it here. You can see this takes okay. What a murder is. I'm gonna change this to call a model, and I'm gonna chooses to call them for saving on fresh air. You see, Carla motto is taking most based in calling for even when you actually enlarged. Sorry. Even when you're actually on Lord Distinct, you see? Actually, this one is taking more space than this one. Give you a specified it only four. Let's get something like six right now. If you come here, refresh it. You can see both of them are looking equal, but not necessarily because column Water war Carla motto did reminded size, but has done what? Its contents. All right, Why this one? We have specified explicitly. Go ahead and change this tool this and save it and come back and refresh it. You see, it got shrink to the size of the text inside. So in this way, we can actually make sure that our text is long in after, after the occupy the space that we're all right to perceive it and come back fresh, you can see taking much space. So called modern. It reminds the size off its element. My best one when its contention. But here, where we can actually explicitly specified. So what if we have something like, uh, um, similar to this one? Well, here. So what? I'm gonna do any use copies and tired, then 12 days. I want to give it. Then you think it, uh, discord? Yeah, if you come here and refresh it. Okay. This one got shamed up down here. Yeah, inside this thing. What if I see here fresh? Now you can actually see these things taking place because Utah fits. Take one called. Not based on these things. All right. Each of them taking one color in this way, we can actually make sure they're in matters this well in Lublin, One off the convent. So when we actually shrink this thing, it's going to perform the same where you see. Yeah, do that. These are actually shrinking to the site, depending on the browser. All right, Although this one takes the size of the text. These are based on the columns, as that respects, right? What are they? They all take column one. All right. So this is how we can actually remind how these things are gonna work up. If you want to learn much about, um, how these things can be worked out, you can go ahead and learn about bootstrap. Good system. So you should come here. This could struck this grid system, condense a lot of information you can actually learn and play around with it. It's gonna be much more perspective about hoping is the brake point to actually design the tests that are gonna be more responsive depending upon the size of the Broza. All right, so you can learn much off from here, and you can actually see here. So if you're coming from bad gonna for bootstrap that you have always already learned in the past wanting unity cut off, there is no more access. There's no extra small excess. The column by the fall, it's X trust more. And that s, um, medium, large and extra large. This where you can actually make sure that we are using right turns here. And as I said, before the pain. In the beginning of this nature number of columns that quote All right, this way we can actually look it up and learn how to use this back lines. And pretty much is what we're gonna look for this picture and let's get ahead with next lecture.
45. #278 Margin & Padding: other guys. So Indus elected. We're gonna learn a new concept in Bootstrap. So what is that? If you have observed from the big government side were actually minded by wanting authorities who have, If you haven't seen it until now, you can see it now. You see, I'm talking about this, not the search bar, not the alert items between below them, But the space that is between there is actually most place. We are reverting to this area. All right, Why is this? Because we haven't told anything to it. But if you observe here, there is some gap between the navigation bar. The search better. Because that's because off the alert class that we have used if you inspected, uh, what I want to be, uh, I'm coming here. Yeah, if you see here alert. It has some margin. Dash bottom one drink. You see, when I put my cursor on margin does bottom, you can actually see this orange color lines the space between the items. So this is what maintains the space between alert items. All right, so this will create some good gap, but we don't have anything between like this or like so what I want to do. We need to create something that could help us to do this. And that concept is nothing but Pacey. So spacing that always to create some gaps so it could be a margin are Patty. So these things will allow us to create some gap. All right, So, uh, one thing I want to make sure that you understand it, that we're gonna a bribe writing as much as custom court as that is unnecessary because we don't want o tires of by running custom code that is not necessary for ourselves. All right, we do have a lot of stuff takes already built into this bootstrap that we can use it for their own advantage. So it's very important that, you know, concepts like day so that you don't based much of time writing code that is already written and saved in the Internet, like this kind of sex. All right, so what I'm gonna do now is I'm coming here, so I m it sets margin and peace. It's patting. All right. So in this way, you can actually use these classes for margin ing and patting. All right? So very size is one off the C D represents stop. And when it's used em, it's magic carpet shoes. Could be It's my padding in the same baby Hell are X and y see, even you see X and whites extra but left and right and by from the top and bottom. Okay. When you use nothing, it's gonna take for all four sides off the element. All right, this is the site, and this is a size or 012345 And Otto, when? While we have already seen about, but I dicks the size that's inside, that's what related to the conduct. Let's go ahead and do his example right now. So I'm coming here. What I'm gonna do is I'm gonna for this Nah, bar. So let's come appear. I'm here now. So what I'm gonna do is I'm gonna give this role. So what I'm gonna do is P Why dash to say interesting? Come here fresh. You can see I have this padding between up and down. All right, So if I come back here and have been greeted to five back a refreshing, you can see the padding between here. All right. While another way to actually make sure we can see the right result is putting a class on the alert stage now. You for refreshing. You can see now It's clearly a unit. We have a size or the padding. This is a fight. What is actually five. It is a two space air into three. Now, if you come here and if you could inspect you. See? Now if you, uh, taking this class alert now, we can actually see. Here is the clasp. Your last fight we're treating here. In this way, we can actually make sure that our crashes, all the elements that users have the right parents. So I'm gonna go ahead and remove this, because right now, we don't need this to be a part of All right, All right. So now that we have seen the padding for navigation, we don't want it actually to be here. What we're gonna do is we're gonna created padding from the vote. All right, so let's come down here. So what? I'm gonna doing all these. I'm pretty here to the role B. Y does, uh, fight Syria back and refreshing. Now you can see what I'm gonna do. is I'm gonna give you the background color DJ Dash light Syria on our Refresh it if you can see the bag. A small gap off light or in between. So she come down here? Uh, if you see here, condensed this gap. So this way we can ensure that it does have some gap. All right, so nothing. But we don't need actually right now, this one. Actually, we don't need this one to be here. All right, so I'm gonna change it with three. So that it looks sensible now. Yeah. If you see, there is a gap here, and there is a gap between this to now. You can go ahead and give some collected the, uh, search bar as well. If you want to come now, here you can see the color. But you don't need it either. All right. So one thing we can also do right now is actually to contain the spacing way have used Emel and Amara. Go. All right, this case we can actually use something. What? Ma Jing X axis for both left and right Dash Otto. But if you come down here in the fresh air, you can see there is no change. And even if we string kit, it works exactly the same that were expected to do previously. So what? We can actually we can replace these things straight after get redundantly. All right, so in this way, we can actually do stuff. All right, So are already obscenity X on dollars. And Centralia next. I thought, Oh, that's what we have done now. So this is quite imputed. All right? The way they have designed this structure for the using is quite include. Oh, and very easy to learn and use. So I suggest you to go out how good heads and experiment with. All right. Play around with it for a while so that you can get a good grip off. All right, So do that because you get to the next left. Thank you.
46. #279 Navbar: Hello, guys. Know that we're finished with spacing and margin in batting now that we can actually focus on navigation. All right, so right now I'm gonna go to the competence and that is this nine have bar. All right, now, if you come down here, you see, the bed is this is designed. All right, So the garden have about brand class now bar and everything that's inside it. Okay, they got this text for That's creating this now, but content So in this way, we have their created this court. All right, discord. Can we can use it to create, actually, this kind of now, but But I'm not just gonna cop distinct. So if you can come down here, is he dead greater? Something way in. Fresh in here. So we have an actual copy this team come down here, So I'm gonna do something that's gonna get an impression of this one. All right. So I can actually put this here, but what I'm gonna do is I'm gonna get a new sexual. Siri, come back. Er refreshing. If you can see, we have butcher. But we don't have that brand icon. So what do we need to do here is hedge to DP uh, get hooch trap dot Whom? I think now it must work. All right, So correct. Yes, Well, right now, if you see me not futile fishing. Watched the problem wrong. I think it's much more by now. Okay, get strapped. Okay, this is G. Yeah. Now, now I think it was Yeah. Now it's work, all of you, about the brand icon and everything. But actually, what happens if we actually turned this into a container? All right, so my copy this you should hear. All right. Now, what you gonna do here is actually close distance, Dag. All right, service thing and come back here. You can see now this 10 days mean we just the size of the Indiana. All right, but if you still see here, we've got this light shade here. So first of all, what I'm realism will change this color. All right, So if I come down here, I'm going to my utilities colors so I can choose a range. Of course here. If you see, they got different kind of colossi every connection use what matters is I'm gonna sell this Bijie in four I think this one is particularly cool. So it should be relied on until region. For now. If I come here and efficient, you can see this change. So in the previous two years, this bootstrap doesn't have this kind of things really changed the color most this convenient. It used to be much, much harder than this. All right, so what I would want to do nowadays, I can actually want toe extend this color to the end of the pages. But I don't want this text to be taken out here. So what I'm gonna do now is I just need to simply remove this thing more. This container. Now, if I officiate, I see the text being taken Victor color to the end. But I wanted to fix to me here. I'm just gonna go a little further here when it is, give a container here because it's not here. All right, so, no, I think not at school. I don't have any idea what So do I'm just experimenting with it like that. You have might have done the previous searches. See, now it works really cool. All right. This way we can actually work it up. So what I'm gonna do is I'm gonna do something that I have done and allow that is, um, giving it the class rope and call him on bringing existing inside here. All right. Uh, I'm just experimenting. It Yeah. Already of school because we know that, actually, call him tastic. The exactly Call him 12 columns. All right, We don't have to worry about that. All right? So, no, what we need to do is we need to actually give some items that you actually make sure that our the navigation bar looks makes some sense. So what are we going to do here is we're, aren't you? I list. And this list will actually have. First of all, this list must have a class now barred as, uh, what the class must be now inside this the ally items, which means the list items will have the I don't off now, dash item. All right. And inside this, we can actually create some links. And first, now it belongs. Toe has tagged the relation, but later we can actually change it. The class will be nabbed as link, and I'm gonna give you that hope. All right, we can create multiple items from this. All right, One and two. All right. I didn't know. It looks cool. Uh, let's go ahead and fresher. Okay. Guns home. You can actually change about. And this can be products. So this come back here fresher. All right? This doesn't look exactly what we wanted by one thing we can not down here is you actually get into the mobile web site now. It looks something like similar toe a new design, but it doesn't actually make sense when it's viewed on a particular discover, so we need to change that part of it. So what I'm gonna do right now is I'm gonna give it a new duke. Dag. Now, this belongs to the class collapse. And now bird ash, um, collapse. It has I d now bar collapse links. And let's just put all of it in here. Okay. Lets stabbed it out. Okay. I think now it looks cool. All right, so one thing that we have done on now is putting everything in place. Okay? How they disappeared. What we needed, Button. Actually, make sure these items appear when you actually click on it. All right, Now, Let's go. Hit the button. All right. And, uh, we get a class off now. Buy Dash Taubira. All right? And then, Dad, a dash talkin equals two. No, this must continue Claressa collapse. All right, here. What? We're gonna leave Guetta. Nash car Get equal to the target Will be her stag. And this idea. We will use it here to make sure that target is that collects. And I really dark, uh, expanded equals toe falls. These are some default items that you need to specify. And here, a re a dish level equal to Targu navigation. Right now we can actually save this thing serviced in Come back, hair officiate. Okay, you do have it. But that thing doesn't look exactly what we have. You've heard, so Okay, you can actually give you something else. Spare It will be class No Bar dash talking dash icon Ragno Suit listing Come back in and a fresh it. Now we have icon. If you click on it, you can have these things. They're disappear. All right. In this way, we can actually make sure that these things who called that? All right, All right, But we don't actually have competed here because when you actually shrink this to the mobile part, it looks quite good now. But when we were actually large desktop side, we don't want to have this year because we have bunch of space left arm here, so let's go ahead and change that. So how do we change to come back here to the nab our? If you're good at an Amber, you can actually see something that's gonna help with something like this. Yeah. Now, barred is expanding Dash lot. I do. This is exactly what we need it. So copy that. Come back here on. I'm gonna give it here first. It said listing. I'm back it and refreshing, You see? No, Do we have He just thinks that you should have large. I'm gonna give it media. All right, now come back here. Refreshing. We do have it like that, but when we actually shrink it, you see distant break point where medium has changed Too small alike. When trickier working good. You re actually expanding it. None of it has this ice. All right, so this way we can actually look it up, but this is not really have completed stuff but we need a farm to actually like this. Some form to actually submit some data. So let's go ahead and do that. But I guess no, let's go ahead and add since for made him like this. So if you come down here now, they don't There must be some films. Uh, yeah. Here's here's the farm that actually making a search. All right. All I need to copy is distinct here. All right, Who lets copy this one? A copy. Uh, what I'm gonna do is I'm gonna place it here. All right? So say this thing, Combat here and officiate. You can see it here, OK? We don't want it. Actually. Have you want it on the right side? Up it. So what I'm gonna do is I'm gonna copy this on, and since I had a patient here Now, if I fresh Yeah, I can actually see it here. All right. But I don't want it to be in the middle of it. I wanted to be on the right, So whatever it is, I'm gonna do the class. Uh huh. I'm a lash. All right, Fisher? Yeah. Now it looks cool. All right. It's all right. I know. Everything is fine. Let's see what it happens when it's Yeah, who do have the search. Wagner's. But so this way we can actually use this. All right, so this is not actually want what we want right now because the bad grown doesn't make any sense, So let's change it. All right? I'm going to go colors. All right. Let's just not use colors, but actually go to the neighbor and see what type of clothes doesn't happen. Someone call asking. You see, there are different kinds. Of course. I think this one works. Fine. I'm gonna use distinct Copy that one command here. Uh, she's distinct. Yeah, Siri. Fresh it. Now, this is very, very nice. All right, We can use this oneness, but all right, so I can actually go ahead and do something like, uh, I got a handsome drop downs here. So what I'm hearing is, uh, agnostic. You can actually use this drop down, drop down things. So what time it is, I'm gonna copy this thing. Come back here. Uh, well, I'm gonna go. This is Oh, here. Maybe, uh, Andi stabbing everything. Save it. Come back here. Its fishing now we can actually have this thing. All right, so in this way, we can actually use things that are you can actually create. We can actually create things that we want using items from here right in this were recognized shape of phone steps that can actually help us to create a website with good design. And you can actually use drop as well, but not much. It makes sense, because usually it will be a drop down. We can, but this is obscene if you want to use. All right, so you can actually play around. Used many off the stains that you want. You can actually change the color off it on. You can do a lot of stuff that we have things drop ride and anything that you want. It depends on your necessary and you need. All right, I'm gonna leave some time with you, and you can actually go ahead and play around with it on, come back so that we can actually work on another stuff. All right, so let's get it
47. #281 Prepare for Integration: Okay, so this is the end of this would step. Of course. Just so I don't think that we have learned very little devil. A lot of stuff. You see, I Either way, you can actually go to the documentation and learn a lot of stuff from what we have taught you. All right, there is nothing wrong with documentation system being resource that we have to understand about bootstrap. Right? So we're not gonna end all of the learning of bootstrap right here. All right, We're gonna learn a lot about this in the communities as well as you go through the project . We're gonna be seeing a lot of stuff related to this. Bootstrap. And how do you Damon out, actually improve our design off the track? All right, so we have actually used a lot off it. So what I'm gonna do is in the next to die to them when they integrate this bootstrap navigation bar. Actually, this weapon stew might be indoor jangle project so that we can actually use them. All right, So if you are comfortable for this point, you can actually go ahead and do on loan a lot. If you want to from right now from the bookshop. Upside or else you can wait until we get to the coins. Were actually you were actually using parts of this website. All right, so this we're gonna conclude our bush of learning off separate right here, and we're gonna take off from here. Let's go.
48. #282 Integrate to Django: okay, that's known. Or what we're going to read. We're going to integrate this, nab our into our jangle projects. So let's go ahead and do that. All right, so right now we're here. Um, so let's open up our base, not HTM. Do we have the right CSS? Yes, we do have it. So here is it. So we're getting the number off. You're getting big slash now. Bar, cottage. Well, so hair isn't. And here is the example, rock html. So, like me to wanting, I would oppose all of these things that I do have now bar and based origin mill itself. All right, So what we need is example not html as well. It's here. So we do have the Naber class here and number. We already have built the network, but we do hasn't different, so we need to eliminate them so that we can actually get it. So first thing is, we can actually change its color. So that's what I'm gonna do right now. Uh, I'm gonna cut based this. Yeah, the next thing what I'm gonna do is I'm gonna have to get this image. So I want this image. I don't have to, but I want to show it so that my website actually school thing is, I think just right here saving. So let's get back here. Uh, What? I'm gonna do these. Yeah, I think it looks fine. I think there's a little you listed seem to be made here. Yeah, burnt. That's necessary for now, offers. So let's focus on the next thing. So next thing is, we do not have this drop, so let's get distinct. That's where Copy it. Come to the have bar. Really gonna please? Just right? Unlearn. Just think. Okay, I see it. Come back here on your fresh distance. Okay? I think it's pushed on like there. So get that here. Oh, what am I gonna do? So what? Amenities on my dash. Let's check it out. What happens? No. No. So this one for us, we need to get it down right there. So what are you gonna do? It is Copy this team on and I didn't really put it right after this year. Save this team, Camenker fresh. Yeah. Now it looks good. All right. So we have changed this things, So let's go back ahead here. It looks fine. So we wanted to be inside containers. So let's go ahead and do that part now. So what do we do? Deal. Class. Container? Yeah, a copy of this team. Um, what's this gonna tab it? And this seventies Come back here. Fresh it, I think. No, it looks cool. All right. No, that's just compress this thing. Yeah, You see, it looks cool. All right. To the point of benefits and mobile website. See, thesis what responsive it needs. So you guys know that you have done everything we've got indistinct. So let's But let's get back ahead to the point where we are doing these things. So I think they're left over something like this, Right? So So let's bring this sound that, uh, check everything so that everything is aligned. So go to contact that there's something here products clogging just to Well, this does not function right now. You can actually use for hated. I'm gonna come back here, So not everything is exactly aligned. Very wanted. They wanted to be. So let's get back ahead and do that stuff. So I see this. We're extending his base started stimulate a lot of things. All right. So let's go up, back ahead and and cracked like the We're actually not doing anything right here. All right, So what are we going to do? Here is we're gonna kid container. And he was just block here. Are you receiving this? So that every time we currently But we don't have to create this continent so that our country are medically falls into this class. So go here dissing this extensive listings. So here we don't have anything in container class when we don't have to worry about this, Piers, this is different from that. All right, So if I goto my product and rates, All right, Uh, this card Nottage anymore? No, this is fine. Detailed outage way. Don't need this. Yeah, servicing at a future guarded team. I know, Mr Ridge. Dermal. We don't need this one. All right. No sooner this team after this, we can actually go ahead to the, uh, long lugging. So what are we going to do here is create? Uh no, the container. All right. I almost forgot. What we need to do here is extends Bierce Dotage. Tomo Right here. What about these? Lock Contend and look right we wanted to see for this as well. So I'm gonna say extends, start 16 here, lock and and look right? I think it looks fine. They were in contact. Everything is fine from the best K, everything is fine. So let's get back here. Pressured. It looks fine. If I go to contact its inside it carts, anxiety loving. You can see it here. All right. It's not exactly what we're according to be, but we can actually change it. Just Oh, it's fine. All right. We can actually change the size of the submit button as well. Just so okay, this fall big. So let's go ahead and change it. So what I'm gonna do is I'm gonna remove this form, dash control. I want to change this to befall. No, I think no secondary that squared and take a look at how website is get. Looks fine. So I'm gonna do the same for this more. This secondary? Yeah. To come here and with the logging. Yeah, I think so. We haven't done everything that's regarding your website because we're gonna do that on the on the run, but that were actually committing a project. But one small. Last thing is that we don't have any gap between if you go ahead. Here, Here is what here is. But here is what? So we need a little padding here, so let's come back here. Uh, that's straight to put up. Let's try to put it for nab our. So I'm gonna come here. I want to say margin. Bottom three. All right, so that's quite a chicken. Yeah, I think it would. Now we have a pattern. All right? Everything has. So this is the end of books trap. All right, so we have a lot of and we're gonna learn a larger in the course off a project. So buckle up and let's get to the next section, I think.
49. #287 Display Query to the User: Okay, guys know that we have developed the search through so that whatever the user Christopher the surgeon dispute feeling or her if he the search is empty if we're gonna show the feature items. So what are you going to do now? Is we're gonna go created, uh, coun each time a page for such company time. One of these surgeon should have product. And this would be view. All right, so I'm going to see this. Whatever. Lose that. When I come here, I'm gonna create a new folder, But templates? Yeah, inside them. Bitch, I'm gonna quite a new folder game. It's gonna call Search and inside search. I'm gonna create the new five. What is it? View dot html. So this is an exact replica off whole list original works. So what I'm gonna do is I'm gonna copy carpeting and best it here. Yeah, so we don't need this for looker contra, actually, so I'm gonna say the same. So what I'm gonna do here is I would actually credit new class. Do plus containable. So you're not container cold? Last one. And here. What I'm gonna show you is results for what is it regressed, Dog. Get a dog too. All right. So I think this one will work. So come down here on time for sure. No, it's not being displayed. Okay, Okay. This is not available that we're sending you Come play syntax expected and block gave you come across a mirror, right? I think this must be the same. I don't get this in wars and change, right? Civic? Come back here, Fisher. All right? Yeah. Fresh fruit. So I chase nothing. Shoe? Yeah, This is a shoe. Okay, We did not. I had developed this part of it. So that's the reason I'm getting there so big during the results. All right, So what memories? I'm gonna come here, actually, for my dissent mission. Here. Uh, get back here. I think it's your school. Yeah. So I'm gonna need some padding here. What? 100. Not margin. Margin. Bottom. Dash three. Save this. Come back here, fishy. Yeah, I think I would use fly. All right, So what else is left? Our unending, then anything. Els by. I'm gonna do something here. All right? So if the user does not request for anything, what I mean, but that the surgery was empty. We need to take care of stem. So if requests get the que All right now, I live all right now suggesting Come back here. If you're a fresher, it's OK, but if there is no search where Yeah, Didn't show anything. I know it looks fine. All right. We need to handle this thing when it collapsed us. There is no such. All right, the user doesn't make. It s such a question. We need to make sure that he does me That you're gonna present are such for All right, So what's for this thing? Must be stayed outside this one. Go. All right. So let me put some Indian. Great. All right. And I'm gonna put in direct this thing inside a rule. All right, here we go. And what is being God? All right, So what are we going to do here is, um if there is no such being that what are you going to do? Is we like reading your class. We call Dash on eight, and it would be called Dash D Dash six. Now, what are we going to use? An expression, Otto, We're gonna do this size. What are you going to put here is we're gonna put us such Megan Classic will go formed. Ashkan Cool placeholder search. Right. I think this one will work. So let's go hear Rushing. You've got the search, but But these things are overlapping. We need to give distinct on day three. Saving a Mac. You're fishing? Yeah. So what if I shrink to my website? All right. So let's going ahead. Yeah, it looks Yeah. Cool. The search is unloved in this where you can actually handle it. Don't know. What we're gonna add appear is we're gonna put padding to this thing because it must be separate from what we're doing. I'm gonna give it well, and this one p y dash fight. No, I'm gonna give it three, all right? And I'm gonna put a small lang break here. So if I come down here and fresh air to see, I didn't know it looks good. It has some separate. Like, I think you can actually improve it about what I'm gonna do. Here it is, given you do plastics will be, of course, a rash, and it will have a chart right there. All right, so it's now come here fresh it. I think now it looks pretty much cooler than before. It's It's a little better because all of the future items will be over here and the search is here. All right. This way, we can actually improve the design. All right, Venera, we're actually doing search. It can be a very able to get this thing here. Okay, This is very powerful, as we can actually access request from the company itself. Although we can perform it from the the users from the view as well. So we can actually go ahead here, dear. Get context data. All right. All right. Dist! Get called. Extend a Senate comma, Mr Arcs. Coma key. Wogs on. Right. So here, what we want is context equals super off. Uh, search product. You call myself dot get context here. Dogs, coma key. Works like, inside of context. We're gonna bring Create this query equals do self dark your quest star get no get or cute . All right. And here they heard in the context all night. You said this You can actually contribute our teach to your mother. You should have requested Get that Q. It can actually call this Great. All right. I'm here till right. So interesting. Come back here. Your fresh it. I can still see this. You call this ball and see this ball or in this way, we can actually perform things. All right. Bye. But how can we actually access request? Get that, que? Because templates have the ability to access it from the very doesn't get the ability. If you go to selling struck by you come down here into the templates you see here, Jangled tempered or context process, Dr Quest. So by default are complex. Have the military extra request variables that we're getting. So it's not a new thing that we have to do it again. All right? So we can actually perform things like this. Also, you can actually create something like vit request dog, get dog cule as query. You can actually use this as a variable as well, but this is one of its business logic, and what we're doing actually got movies. So this is much more business logic than what we need actually get done. All right, already, if we can actually perform this thing here, we can actually go ahead and use it here as well. Very cool. Do. Okay, you can get this here. Actually, I query, But if you want to do some operation from here, you can actually get distinctly if you have some mortal there and it's a queries and you can actually create it based on the data, you're getting this way. All right, Obviously we don't have the martyr, but so we can actually come in distinct. But if you want to do any operations before actually written in the request to the user where they have access asked for, we can actually perform some operations here. This way we can actually get it done. So this is much more convenient and more flexible, way off, operating rather than accessing data from the temple itself. Although if you do not want to do any other operations except but presenting the data, you can actually go ahead and use it from the beautiful Jimmy Page maxes and request. Don't get that way. You can actually do it. It's up to your choice on you. However you want to do right? If you're believing this, let's get to the next part
50. #288 Creating Search Form: OK, guys, now lets you make sure that these two actually work out things. All right, so let's lengthy stooping. So whenever user makes a search for a maid off these things, these tools, they operate in the same way. So we need to make sure that these two are linked. So what I'm gonna do know is come back here, go to the nab our on listening there is now completely beers now, better each day you come down here. Here is miss such. So I'm gonna copy this thing. All right. So I'm going to my templates inside the surge here, I'm going to create a new folder Snippets Inside this new page, I'm gonna create a new file it such dash form dot html And here I want to face this thing. Simeon, Uh, if you combat good here, here, what we going to do is what you do it. Blue search slash templates smashed Snoop. It smashed such dosh form dog HTM men. I said this team come back here, appreciate gauges does not existed. Search. What is it? This'll sure. Okay. Okay. You want me to do what I'm gonna raise? I'm gonna move the slip it into the search bar so that my search countries of the snippets which don't consists of these things. So here completes what I want to say is search. So I sleep. It says surgery home bridge came out fishing you got here. So what I'm gonna is I must do the same here. You don't hit him, uh, insured up this. Yeah, I see it. Come back. Fresh air. You see, both of them are the same. All right, Both of their coaches. That's saying you all right? All right, We have changed these boards, certain fields, but one thing on it is I wanna make this boat button into such text. You all right? So I don't want to have this gap between that. I want them to be a single so we can use this number group. All right. You see how these two things are grouped together in this way? We're gonna use it. All right, So what I'm gonna do right now is come back here to my search. That's from reached email. What I need to do first is I'm gonna remove this one, All right? How silly it. Now, if you come back here. Now that these two things are flushed up, there is no capital. But we need to do a little more. Right. So I'm gonna do right now is I'm gonna quit the span. Class one, right glass input. True. All right. Distinct will be inside the span one, right. Uh, what is I need to do here is I'm gonna create a new dip. Yes, between the off people dash group. All right, and now this indicting beautiful on her here. All right, so and last thing is, we're a little this long Russian line. I'll be Siri it from back here and efficient. Yeah, no, I think it changed a little bit, but there is something else that we need to do here. All right, maybe if I change this cool Ben and come here and fish it. Yeah, Now this thing is looking quite good. All right, In this way, we can actually modify, So let's go ahead and check whether this one actually works when the website is stripped down. More baby. All right, All right. This thing actually came down the same with this one. Do So I think this has to this part So I'm gonna go ahead and move this Su, come back here on your fresh. Yeah. Now this looks cool. This one too. So if we actually grease Yeah, this one actually worked. All right. Now, the next step is actually make sure that this form functions the user question. All right, so let's get ahead and make sure this one work. So the method years get in the action would be, uh you are. And what is that you are here. All right, So it is listed. Let's change it to credit, because that's what actually we have. So here, what is the name? Space Such? All right. So I could be You are a law search and credit civet, and I think that's it. So let's come here. Fresh fruit, and I wanna look for sure. Okay. Doesn't go anything. So because off you need to give this name. Name is cute. Syria, Come back here if you shut. Okay? We need to sell this thing perfecting. Come back here. This thing? Yeah. Now, if I grant here, Sure. Yeah, it actually brings something. If I go shoe, bring syriza ups. All right, so this is very persistent all right. If I have nothing injected, it's gonna be here. I got shoe. It's gonna bring. So want to be willing to do here is we need to show that this one has actually saving the request on a value request dot Get doc. You know, save it committed here. Now, if I hate shoe, it's gonna have it. All right. If I go ahead and more is gonna show the result, it's gonna have this thing. Let's check for this one. If I go. Yeah, he has a So, in this way, we can actually work out things much better. If you have any questions, you can I should post him and let's go ahead.
51. #289 Better Lookups with Q: Okay, so let's have a quick review of what we have done previously. So we have added the formative get are also given an action so that when user performs, actually get aggressive in action being performed. So get is nothing. But we're getting the data from the use of Brazil, and they are actually making some requests to it. All right, unlike the what we call the logging and you see here logging and register we don't need in this year's out of Took it because this is a post. So this is actually making some changes to the several data, But I guess we're not making any changes here. All right, We're actually getting that. Uh, we're actually displacing you. That's it. So we don't need to actually performing the operations here, so if you see, we don't need to do anything like that. But one thing we need toe make sure is that, uh, dead up here. What? We're actually sending it to it must be, actually, um, contain all the data that refers to what these there is looking for about I mean by that is here. We're not actually getting all the data because we're only looking for a title. All right. You don't have what, uh, a clear method off looking for the particular keyword at all places. So what are we going to do? Is we're gonna make some lookups is done, too. Don't mistake you for this. Such Cheever. All right, we're gonna use the jangle provided Cube. All right, here, we're going. Put it from xango dot db dot Mourners Report que. All right. So what are we going to do here? Is lookups equals Q off. I can actually get this tea. All right, Uh, this one, a copy. A massive. So if I want to add something to eat something interesting to this one, I can actually see. I'm going to remove title here and to a description. This comes crack under suggesting Now you should have seen on this. I look ups. And here I'm gonna say Distinct. Why? Because sometimes the title, in the description of Ghana's contain the same people. So even it looks for two specific places. It's going to return to results. I don't want the same objective military twice, so I'm gonna suggesting so the redemptive items will be deleted on all the distinct items will be provided for us. So when actually come here and for shoe, I'm gonna get it. So I'm gonna type leather. You see, I get this one. So in this way, we can actually look for a key word at multiple places so that we can actually get dead up . That is relevant to what user is looking for. So let's actually go ahead and add some items toe database. So add mean, I'm gonna go to the products on Let's say I have till a school and I'm gonna add another. All right. Now, if I serried ever come here and search for I'm getting bored off. So in this way, we can actually search for multiple items. All right, so you can actually have a question off modern suiting slip for all right, if I go to the moral start by inside the products you see, we have multiple data here. We can actually look for anything that can research. We can actually surprise description, title and featured an active are much more complex because their bullion field, but actually prize description data. You can look for these things as long as you are having this kind of feels rights so you can actually have a question off Why we don't have this, uh, look, ups inside off mortar manager like feature. All right, We can actually answer the thing by actually adding it to their so we can actually have the feature because we have other feature chairs inside our model manager. Similarly, we can do for lookups to, so we can actually go ahead and do that. All right, so let's get mortared on by and create a new product manager. So what I'm gonna do here is create a search city of Goma Gray on here. You can have, uh, Lookups. You could go. What do we have? Yeah, exactly This one. River. Copy it. Yeah. Obvious. Yeah. And now we're gonna Britain. Sure. Arctic. Sorry. Not burning set of dark. Get great. He said not finger. Oh, lookups dog. Distinct. All right, we might as well go on. You might as well want to act at active. All right, now, cities so we ever know for active products for the lookups. All right, so what did we want? Oh, search under for featured or anything else. So let's do that Partner okay for that case, we need to create a new crazy for us. Search a self. Great. Here. You can actually copy this thing exactly. Yeah. And now what we're going to do is return said Doc Seeker. And here what we're going to do is look at No, this dude. Sorry. All right, so that is what we're gonna do there and here. What we're going to do, is it must being God created, So here it will be search also pretty. All right, Now we can use this method anyway. We want. All right, so let's get used by. So you're going to get rid of the sting and trump all of that all we're going to do a search off. We're seeing this thing come back here that you refresh it. It looks like All right. And here is not defined. Sorry. You forgot in four. Distinct On. Right here. I say this. Come back here to fresh it. Yeah, for sure there is football. There is funding for school. Another. This is part description we have seen. This way we can ensure that we are working very nice and elegant. All right, here is what we want to do so they can look for a multiple things, but we're gonna add something to the Caesar. So what are we going to do here is we're gonna add, uh, price to this thing. All right. So similar to this Que prize underscoring the square. I contains equals two. Wait. Yeah. Yeah. You could do quitting. I think. Now this looks fine. So let's square and do something like 19. Yeah, you got multiple products because it has a price of 1999 because our search 19 it's gonna show up. And this one contains 2 1999 All right, this one condensed in 1990. In this way, we can organize their that so that we can actually be pickup results is in multiple keepers . All right, so But one problem is, if I actually look for anything that is, that's gonna have tags. It's gonna call them some problems. Like if I have some, uh, if the name or the title off the product has some, uh, especially characters in it. And if we don't use them in our search keywords, it's gonna cost some enters for us, so we can actually go ahead and use tags to actually spliff I how we're actually crossing the data to threat to the user. But we're not going to do it right away because I don't want this such functions to actually make processes processing intensely because that's my that might be troublesome are it can actually slow down the process. So I'm gonna reduce the intensity of processing that's happening here. So let's look there, uh, in the next lesson. So if you have any questions, you can actually post them. Uh, if you if you want to actually learn about this again, you can watch the video game. So one thing we need to make sure is as search function can look up multiple things. All right, that's what we're doing here. And we got the results and we'll actually get indistinct. Grizz. It's all right, so let's go ahead
52. #290 Tag Component: You know what? After things to make easy and make sure that this look up, it would be easier. Then we had actually performing something. Operations Mr. In Search, which doesn't involve the keywords relating to title description or anything like that. So we have to make an extensive searches based on what we have in hand. All right, so what are we going to do right now? Is actually create a Morgan with that? All right, so what? I'm gonna do it all these big toe, the server and right arm Mani start. Probably start up tax. Yeah. So now I have the Apotex. So come tomorrow. Testify here were concrete. The bag. Mortar. Okay, so let's create the tag model here, so I'm gonna call it as last check Morton stock. Martin, it's gonna have a field day. Do is it could do modern start field and Max. And the score length equals 1 20 All right, now we're gonna have a slug equals do modern start slug field. All right. And then we're gonna have pain, Stan. All right. So is equal to Martin's. Got more martyrs dead time. Seen our go on this underscore. No, on this court equals two who? All right, and then we're gonna have active, equals moderns. God bullion is hell. And here default. It would be true. All right, so this we can have the product, uh, tag mortal competed. But we're gonna have something that's here. What are you gonna do? Is we're gonna actually have, uh, the said slug Greater for. So we need to grab this thing. Yeah, come here, City. And we need to actually import some things because we have got Dustin's. So, what has been me series? This one? These two lights. Okay, now is fine. Yeah, after saving is what else we need to have is, uh, are needing anything else is necessary. But you need to say fraud. It's not students on right and lasting years. We're gonna give it str function. All right. Soon written self door title. All right, so now what mean important thing that we have left over here is this mortal product and the tag does not hit any connection that we need to check that one. All right. Okay. So what we need to do this is we're gonna go for the tag model, and we need to make some changes here. So this one will be bag. Yeah. Dis instant big bag. Yeah. This one was tagged as well. So after saving this once we need to do here is actually once we have left here. So now the final thing that they're left is we need to create a connection between product and deck. Either we can place this see later on the products there on the tax side. So that's up out trust. So we're gonna do it here. We're gonna see products equals Do models start many to many feel. So we're gonna look into detail about this later. But right now, just use distinct, so we're gonna say, OK, we need to import the modern here from products. No, Martins import product. All right. Here. What are you going to see, Product. Come on, Blank. We could do true only after seven days. What we're gonna do is we're gonna go to the settings, start by and here. We're gonna see tags since this thing and also go to the admin. Got by. Yeah, imports from Doc Martyrs in port. A lot of the stack on. Right. So here had mean Lord side got register, you know, servicing coming to this part. So we need to make migrations, and it starts by make migrations paying Bite on, manage start by my great Yeah, And now we convert and once ever. So yeah, everything's working. Come back here. So if we go ahead and for home, see if he had the tax here. All right, so let's go and head and create sometimes. So what are we going to do here is we're gonna create a shoe. Sure. And it can also be, uh yeah, sure. And now we're going to do is yeah. Uh, now ball and this one. Yeah. And no Waters. We're gonna have this basketball. Whoa. This one and ones we've used. Okay, Really? School. Do the school see a good? And what we're going to say is blue and we're gonna do all off it. Okay? You? Yeah. And what we're gonna do? You read. Read? Yeah, on. She could home their creator. Enough text. All right, So how do we actually perform checking with regarding toe the stags and hold the foul on TV works? We're going to see that in a minute. But right now, let's end this with you here. And let's go to the next one so we can actually discuss it in detail, all right?
53. #291 Shell Commands for Foreign Keys: And now let's go ahead and check how the stag and a product of related. So if you come here and check the's are actually related in some way. So if I called blue, have basketball and shoes were to do it from here, since this baby had created relation between product and tax. All right, so let's go ahead and check that. So what? I'm gonna days and will go into my shin managed by shell, all right? What? I mean, what is and will report. Oh, tags. Not Martin in court. What step? All right, So here, what I'm gonna grab is, uh, bag nor objects. No. Oh, all right, we have distance. So here for a minute, is tagged or objects. Not all was a tag you could do. No, lest, All right, so you should have blue. We're going for red. All right, so here, I'm gonna sit tag test right when it's a bag door. Tiki, you chose threat. If I say bag not slug you just red slug, All right? If I go into active, it's going to say and finally a good bag or products. It's gonna give me something like this, which is create forward many too many. Manager. This is the same like manager that we have seen earlier for product manager. But instead of that, it's just gonna create relation between multiple Mars. All right, if I go ahead and to standard products that all it's gonna give me a product quote. He said, with all the part of two all right. For the tagged our products? No. Oh, first it gives basketball all right, In this way, we can actually work things out. All right, So I have gone from the, uh, back to the product that has linked it. All right, So what I'm wondering is someone exit out of it? I'm gonna go fight a managed by shell again. So this time, what I'm gonna do is I'm gonna reverse engineered what we have done right now. So guys know what I'm gonna do is I'm gonna get back from products back. So from products, not martyrs import, we're on it. All right. So what I'm gonna do it is Greece it you couldn't do product objects got off. All right? I had this have multiple things. All right, so no one will care. Start first. So find that ball had this. So if I say bald or I do I have more slug? I do have more Lord description. I have the two, but if I said ball dot um tag. No, thanks. No. Because of you have a bag field in a product martyr. But how do we actually link it and tag as a relation toe product? It is world or tag on the school sick. Alright. Study. Yeah. Now we got the minute too many manager. Similar to what we have done using tech. If I see not all, I got all of that. All right, This way, we can actually figure out things that we need. Not first. Yeah, If I say it all, um dog Seder title underscoring the score, I exact you could do read it shows it. All right. In this way, we can actually figure out things that need to get from the models. And how do you shall command to actually figure out things that are actually working that really expect them to do for So this knowledge we can go ahead and do stuff, but right now we're gonna perform some operations regarding foreign keys within corn. Much detail the little course on, right. So you can actually use this queries to make quick make operations that can result in, as in, actually getting the relations between the stag and product more. So stay cool and sit back and learn what we're gonna do in this series, and we're gonna get the reasons that we need. All right, so with that in mind, So let's get to the next video.
54. #292 Search by related Model: So now that we have known how to actually check for what are the products that related to certain tags, we can actually go ahead and make sure that we do something to return queries. All right, so whatever it is, I'm gonna could this entire thing in tow. Yeah. So here. All right. And yeah. Overheard. So on here again. So what? I'm gonna do these bag underscoring the school piety on this card. I contains it. Will do, Critic. I hope this works. So after saving it, check whether it's who is running on. Yeah, a non. Come here. Could there someone screwed for red? Oh, yeah. I get the red for blue. I get it for school. Yeah. Ah, what else that I can look for? All right. So, bags, right. Looking for wall? Yeah. If you go for red, I get this. All right. So now we can actually look up things based on the tags on, Right? So this is a major advantage because not all the parents will research based on doing the title or something in the description. But based on what they understand about the product, they just simply type in the cable are in this way, we can actually broke out things. All right, This is a major Grandage purpose because we're actually using So what this distinct is actually not there. So this is gonna raise multiple products for us? No, you see, multiple days. So this is a major disadvantage because we're getting four products for views off a single product. That's what it is. So we don't want this trap it. So in this case, we're gonna have to Suplee put the distinct so that each result actually gives the product without any redundancy. All right, so this way we can make sure things work up. Alright? Alright, guys. So let's go ahead and see something right now. So if you come here and see it's too commercial too Actually had tag for every product that you create here. So it's much easier if you go ahead and create some feel like here inside here. So whenever you have a product, you can actually play some backs right here, in short of going ahead and trying to attacks. Were every part of that you make all right, that's too cumbersome. All right, so maybe that we really do in the future, but not not right now. And another thing that we I need to tell you is that what if we change the baby? Actually look up things here, so I'm gonna do something. So I added pipe. So whatever I do know is there used Dagon, the school set by looking in shell commit. So let's find out what happens if you do that. Here, come here. And football the use and feel There s a staggering discourse. It is not Cannot resolve this table. It says I can look only for these. And we do have a tag here. So they're going to school. Said is not gonna vote here. So what, They simply sit back in short of all of this? All right, So let's see what happens now. All right? If I look for it, says Rachel Field got involved, Look up. I can. So it doesn't work either, because whenever we have this thing, it looks based on double underscore to actually look for we do lead to have something like this are slug or whatever field that we do have. They don't actually need to have this. I contains. It's not necessary But we do need to have this keyboard or feel whichever we have given it for the tag more. All right, so let's get without this. And let's see how model working right now. So, yeah, it's working. So in this way, you can work out things that can help us to actually streamline how we streamline in the sense, actually, don't have to work it on a single model. We can actually place tags and we can work from there. All right, so this is how we're gonna do stuff, so let's go ahead.
55. #293 Cart Component Intro: Hello, guys. So in this section, we're gonna learn about how the big card component. So if you have been the shopping mall, you would really understand how card functions. All right, it's usedto collect off products that you want to take home, and you use the card as a as a bag or ours a knapsack so that because all the items, all right, it would collect all islands. Then you would go to the check out company. All right, In the similar way with what we're gonna do is somewhere along this website, we're gonna have a car competent. It is gonna collect all the products that you choose from here. All right. And we're going to discuss a few Xanga concepts here that are unique to xango. Might as well look into them. And it will be a really helpful part of the school so that we're gonna learn some unique parts of dangle. So So let's go ahead and how big the car company and never that we go for checkup. All right, so right now, in the kind of really process moving, collecting the com parents and check up, we're gonna put everything in a specific place where you can have to take it and go to check out. All right, so without any late, that's go ahead.
56. #294 Cart App: All right. So let's no go ahead and create the card. Come back. So I want to create a new card company here. So, like the product surgeon tags, I'm gonna create a new one. All right, So I'm in my project. Um, Pat. So what? I wonder, Despite on man age, don't buy start God's all right. Getting the cards have been created here. Yeah, I do have more struck by you. Start by everything. So what I would do is I'm gonna created a super view so that I could get this Keep running , So I'm gonna call it if card underscore home and its unity, the request. It's when I render, um police hard and regressed. Car slash home dot HTM. And the context. All right. And what it's after doing this. What's going on? Um, okay, what we need to do is, uh, even actually, good setting stood pie in. Here you are. So cards on coma. All right. Next to go to the US set by and here, everybody is poor from card start views. God underscore home. All right, so we're gonna quit a europe of this one, So being a copy, this issue here. I was going through this. We're home. So, Carter, let's go home. Yeah. Calves, cars, heart. Yeah. Now, Sue, this thing said that you have left. Although we could create Yeah, one thing left for it. We need agreed. HTM engage with this one. So you hear all that? I could create templates right here. I wanna have a individual to the competent. All right. So I'm gonna create you 10 leaves and inside that in Blurts I'm going to order cars inside cars. I'm gonna have this home Dotage. TML. All right, here. What we got? Um, extends these large, do you know? And no content. Yeah, And look all right here. What would you say is cart, etc? No, that's cool. Here we have already have a sort of running up here. So what? We're gonna days. Look at the cart ivory. Now, you must probably sees one. My phone court. What did happen I got on the school? We do have it. Yeah, I know about. So in this way, we can actually come from here and go ahead. So before we do anything like that product to the products, bring them to the card, we need to learn something else. So let's get ahead and learned that part
57. #295 Django Sessions: hard guys. So we're gonna use card, uh, as it a za process toe corrupt the products that which the user wants purchase. So whenever we say user, he can be a lot being user Oren's. He can be a guest user as well. So whenever you log into a website like an e commerce website to buy products or to create a card, you don't have to being loving user or you don't need to have any account. You could be a guest user, and you can still add products to the car. We want the snow kind of function to our website as well. So how do we hand in such kind of websites? So ah, one of the things that very important is that the card which guest user L. A. Cates products do isn't always permanent because like, it depends on what the site of the company policies all rights. They Kaneda ah, hold the contents of the card for guest user for a week for two weeks for months, for year, based on it's company policy. All right. For us, it can be a week or anything. So how we actually handle all this time so? So let's see how the Xanga does it. If you go to setting, start by and you can see there is the sessions on right. This sessions will allow us to maintain that I about a user or a guess chooser regarding his operations on our word side. Depending on from there, he's actually using it. All right, You can actually get way Can actually stored the data using this sessions. All right, these sessions normally used to database to actually start it up. But you can also do it user using cookies. But if the data increases among a certain size All right, if there is a giant cookie data your website is gonna render very slowly, it's the processing speed will be slowed down. So we don't want the cookie data to slow our website. So one of the main reasons is that we're gonna use the database Gallovits. Calluses to have handled that are very effectively also load website were quickly. All right, so our decisions are stored in the database. One of the very important things to understand. All right, so thesis thing will give us a very more flexible way of handling card and one thing. If we want to learn about how you can actually use stations, you can go ahead and learn from jangled documentation. How do you sessions and actually handled them and create users so that they can actually bring products to the car Did actually creating an account. All right, so let's go ahead and learn about how to actually implement that part and actually get ahead. So this part will actually be dedicated from this angle sessions. So now that we have done so let's get ahead in tow core. And what are we going to do now? Is living a learn about sessions. All right, so I'm going to show you something right now. So right, What I'm about to do Quest, God, session and Siri. And if you come back here and refresh it, yeah. Yeah. And now, if you see it, you see, we got something. Session store object. We have something regarding session. So what I'm gonna do is I'm gonna go ahead and put friendly I d. Now. If I refresh it, let's see what happens. It says system startup, because not a good I need, because it doesn't have something like that. So it has something called a key. All right, when you have something you difficult with that you can come head here and learn about what ? The attributes does it hat. All right. Like this. All right, so we're gonna take some. Ah, nice. Approach it. What we're going to lose. Bring There are three Quest, not session. All right, so interesting. Come back here. Refresh it on this. Refresh this one. If you come here, you can see a lot off data here. These are the attributes that we could access using the question opposition. But right this way, we can actually get things done. Well, one thing we need to take care of is that we can actually see a bunch off items here. One of Mercury's. I'm gonna actually grab something from here. All right, so So what we have here, you can actually, uh, you see this session on the score Ski? Ah, let's see. Session on the school's Kiefer around. All right. So what I'm gonna do is I'm gonna come down here and or I'm gonna come in these things out . So now, friend, regressed dot session dot session on the score. Syria listing back, You Freshii fish it. You can see there is no key right now. All right? That's because we haven't loving it. So So what? I'm gonna days. I'm going to the admin, Okay? I was just taking so long. Yeah. So I come here, I'm gonna go and log in here. Yes. Okay. Now, if I refresh it and come back here, you can see there's the key attached to my account. Okay? They actually have a session key Here are in this way we can access data. All right, so what if I add something to it? All right. So what I'm gonna do know is that when I come ingesting out so regressed love session not, um Oh, first underscore, name equals. Do what I'm gonna say. I'm gonna see jaw. Yeah, that's it. So my water water days. I'm gonna go to the view, start by offic almost project, and I'm gonna bring something here, friend. Request Dark Citian get off first on the school name. I can actually go ahead in the form of dictionary, but if it doesn't have any data, according to it, if it doesn't go today for service code name, it's gonna turn out. So that is the reason why I go to get function, son. Now, I came here. I'm gonna fresh it. Yeah, Going fresh it? Yes, if I go home and see it. You see, I can actually get the job. Okay. In this way, we can actually get data from sessions using them. All right, This is a very, very important concept and is in this week and actually sail card data in tow, the session part without actually having a user account in our database. All right. Okay, guys, this is a very good thing that we have stored the session. First name. So what I'm gonna do know is I'm gonna come here, and I can assure something to you if I do not have a user our session created. So I want to give a default, which says something like unknown. Alright, if the user is not having a first name of session for him or her, it's gonna throw this one. All right. So what I'm gonna do now is I'm gonna come here and I'm gonna love. So what this does is it's gonna correctly it all the session. My foot of fresh air exist? None. Because we have love, nor if it all right. All right. It is unknown. Okay, the service playing with me right now. So I'm gonna run it again. Now, I'm gonna refresh it if I see here. It says unknown because we don't have the user logged in. So this is the same human if you do it in up on different browsers on the same device because each brother has a different sessions and they can catch up with each of them. All right, In this way, we can actually maintain session case privately for each grocer. Okay, so that's the important thing right now here. So even if I do not have something like this, a first name like session, even if the user is not having the session key, I'm not gonna go ahead and say, Go to the log in page. All right, If you're thinking about the the user is having a session or not, you can actually go like Disick restored Session Dart Session in the score is none. Return law again. Actually, you can't do this thing because if I were you, I would do something like this Question art. Use a dot He's underscore. Authenticated. Uh, here. Not on. Right. So something like this I would do because there's some difference between session and use out indication. All right, You want to maintain the thing as's consistent as you can be or what I have said more or less attributes right here. All right, so this is something important right now Here we have used the first name as John because this guy makes sense to me about this. Something glance off. Somebody else is doing it. This wouldn't make any sense. So whatever is on when I use something like this to actually make sense, put some I d. And I'm gonna give some number two it in this way, it will actually make sense. All right, so we can actually know something. That is really the cart is being performed in the same session. All that I am a little hair and removes Commend this out. So because I don't need this anymore, So this is something like we could do. All right, this is the set apart. And, uh, this is the get, but all right, this is how sessions would work. All right, So we can actually go ahead and do that, either. All right, so this is some part off it. And you Can I Actually, you might think like doing something like this. Question. Dark session. Uh, user, you could go request our user. You might think of doing something like this, but you're gonna run into some problems here if you're freshen. Okay. We need to go to the cart, actually, go to the card you're gonna see anonymous is it is not Jason. See realizable. You cannot actually use this way. You can't actually center object. But although you can use like this buying, noticing that we're able, I feel it. We're gonna see something like it. All right, This way, you can actually perform operations. All right, this is very, very important regarding sessions, because this concept will be used for us throughout the series. All right, to come in this out to this and let's get ahead by now, you must have learned a lot about sessions and actually used them. So if you haven't told you can actually go to the documentation and none much stuff or body . All right, that's gonna
58. #296 Cart Model: All right, guys. Now, let's go ahead and create a mortar for our card. All right? I'm coming to modern served by. So what I'm gonna do is I'm gonna create, uh, glass card Martin start, Martin. And here. So my 1st 1 will be products equals Do Martin start, uh, many too many field, and the next one will be talking. All right, so right now I'm looking for doing this to, because in future, it may be much, much more advanced aggression, like how the discount will be applied and out of variations of the products will be there. And this way we can actually do it. But right now, I'm gonna have these 21 I would also add in the user who is actually doing this. All right. Um, he's a request, so use it will be models. Dog foreign key. All right. And targeted Mourners are dismal field. All right, so now we need to actually bring in some models that we have to use here from Xanga com in court settings. All right, so this is where we're gonna get the user martyr for all right. So user equals settings. Lord, uh, underscored user underscore, Martin. All right, so we're gonna use the user. Here is a common None equals cruel comma blank, equal crew. All right, so one thing we need to understand here is we can actually do not have. We do not need to have a user to community card. All right, so here, we're going to use the product. Then blank will be true. And this man feel default is 0.0. And what? It's the max on the school digits is equal to 100. Okay. And what its decimal places we called to all right. And what it's I need to have some time. Stamp here is equal. It'll mortal start, date time feel. And here it will be, Otto. Now add equal. True. All right, so I think that works. Okay, I'll Tony to have Then last. This one is updated. Updated equal toe Martins dog. I think it will look good. Team copy, Especially. Except you know this thing? Yeah, I don't know. It looks fine. This one works fine. So one thing left out here is I'm gonna give the str function. All right. Send redeye str off self doubt. I d I think now, this pretty much works. We can go ahead with this card model that we have created for for ourselves. So let's go ahead and do that. But right now that were created this morning, you can actually go ahead and run the command for migration. So before that, let's three. Whether we have added it in here. Yeah, you did add a cart up here. So now that we have left abilities, actually, come down here and run these comments Right on, man. Age Dark by Make migrations. Yeah. Yeah, it is missing one argument on underscore delete on the scene. Um, yeah, it is giving some reference. So let's go ahead and check what? What you need to do. Zankel Recommendation? Uh, yeah, the mortar layer. Yeah. So let's hear xango foreign, do you on underscored deal it. All right, so let's saturate. Okay, so now that we have these things Oh, yeah. Foreign key. You see orange scalability called models. That cascade griller customer relationship that has a many one relationship with itself. So what will happen is when a item from here is the leader all lighting surrounding that the TV multimedia ticket. So let's go ahead and do that. All right, let's come here. It tastes Comma on and scored. Illit equaled mortals. Dog gasket. All right. Is that what we're using? Yes. So surveys come back here. Now. Go ahead and make migrations. Name product is not defined. What? Okay, Before God being pulled this product from products, not models in pork product, I'll say this. Okay? We forgot a bunch of things here. I hope you immigrations. No, the books bite on my an aged by my great. Okay, The migrations have been applied. So now they're good to go. Nancy, come here mean that by what we're going to do is from not martyrs import card. All right, again. Not outside. Dog register. Got. All right. So now they're good to go, So no, let's handled view part. All right, So one thing what we need to do here is we can actually get carted from here, but we need to make sure that there is already a cart. I did not set under it because you don't want to create too many carded for the one user on . Right? So what are we going to do here? Is we're gonna check beforehand. Like before We actually assign a cart idea. You need to check whether there is one existing or not. All right, so let's get ahead and do the cart on the school. I d call toe. Request the session, not get Kark Underscore. I d coma None. All right, Now here. If card on the score really is none. I'm sorry, Number. Actually, you can actually did this spark. Okay, before actually do that, I'm gonna print out, like, create new guard, and then I want to make this thing. And when it ends, sprint God, I really exists on ready. All right. I think this one would work. Fine. So what I'm gonna do is I'm gonna come back here. We're here. So I've been loved, dog. So what I'm gonna do is I'm gonna log in a game. Yeah, now I'm here ornament Louise. I'm gonna actually refresh it. Come down. Here it is. Cardiology exists because we have logging. So if I go ahead and log out and then come back here if fresh it is this great new card because we have been logged out this way, we can actually work things out. You should help us toe create card based on whether bigger actually have a user of not. All right, this is much more useful. Actually, I can actually also do distinct, like and easing stands, uh, Carter in the school, Ready command and something like that. Okay, because I want to make sure that whatever I'm getting from here actually implies with whatever that I'm looking for, like India class or something. And much more things I can actually check from here. So I'm gonna actually come in this thing are hear from for now. I'm just gonna go with this. All right? So this is gonna be for future use. Not right now, so this we can actually go ahead.
59. #297 Create Cart in the View: OK, now it's time to actually create a cart based on actual differences. So what we're gonna do here is bring out mortal being created for card from door Martos four caught on. Right. So what are we going to do Here? Is, uh, here got on. The score of B J is equal to cart that objects no create user equal to man for now. All right, and below here, or to be going to these cock in the score or the Jadot idee. All right. Uh, you don't need to have this right now, okay? One of us, Okay, when we come down here, we're going to do is we're gonna actually print. Oh, got on the square, I d. And actually, what? I would do this cart on the school be cheer equals do car dark objects, not get ID equals do card in the score. A d. I think this one works now, but before I go ahead and do anything, I would say I would deal it. Request Citian Oh, God. The vertical days. It will make sure that I delete their cart 80 that I have presently and I've created one every time I do, actually. All right, so I'm gonna put something here. Lipsky's, um, Guard Creator, actually new card creator. All right, this one actually be great. I actually put it down here, not eclipse fines. Or what if I come down here? If I refresh it? Great. Gardez only kiss. Yeah, You got creative. Not very refreshing. You got quitter. It's gonna do this every single time because I've got this one. It's gonna deal it every time it's being refreshed because this is one to flesh past details that we have given to it. All right, I'm gonna room this. I'm gonna say this. All right, So this is really much better looking rather than what we have done it earlier, but we're gonna take ahead step, all right? Okay. I didn't know we can actually go here and look something, like, all right, if I actually log in again, uh, what I'm gonna do using picking here. All right. Now, if you see they have cards here, if you go ahead and see, we have multiple tags carts here. But if I Now, I come here and refresh it. You see, now you actually have one into, but if a lot about and I want to refresh it now it's gonna make something. When I come here. I, uh do something like log in here now. If I go to my car, it has 123 now there it has three cards. Now, if I go ahead and fresh it, you see there is no new card because we have blogged in a game and saved the cart for ourselves. So this is very, very useful because a lot of runs wanna shop and you save items on when you love a Lord and come back in that answer completely lost that. It's very, very ridiculous because it creates a very, very bad experience to the user or to the customer. So in this way, we can actually improve the way the user actually wants to handle. It's all right. Another thing is, if you come here and see right now, we're we're we have only one thing as the cartel is an interest, we're not actually eating whether what it is getting right. So if he actually wanted to be something else, it's gonna throw another. So if I see like this and we'll come here through it like I'm gonna give it like ABC. I'm gonna see me come back here for the fishing. You see? Yeah. You see, it's gonna say something else expected, Remember, but got NBC. It's a value. Why? Because it's expecting an indigent here. All right, so if you actually change it to quell, and I'm gonna actually get this thing working, all right, Now we're gonna make this work, so I know come here and refresh it. It says does not exist, actually working, but not quite existing know, quite not working because it's actually making something else. All right, so we can put this as all right. I think it would work. Yeah. Official. Yeah, it works. All right, So it does make some sense that country, it's making it work. But not exactly to have quote, we don't actually have to do anything like putting this thing inside typecasting or something like that. We don't have to do anything off their operation, all right? I think frightened makes that easy for us right now. So now we need to create some of them. That's what the creating car card much me done in a new way. All right, So let's do that. So, what are we going to say? It's card create. Use a record on. All right, so here what? We're going to these card from this car B J equal to car dot tex dot Create using toe. No. Forward here. Written garden to score a budget. All right, So what are we going to get here? Is, uh I think it looks fine here. You're gonna dig too severe for right now. Yeah, and here it should have, uh, everything we want to say is God underscore. Create. Yeah, On this one is fine. So here what? We believe we were making a quickie card. Dog objects, not filter. I need equal toe card on the school. Ready. All right. Here for the kids that come equals one, Then you're gonna say, Ah, card on that score or B j equals do u s dark first. All right. Um, country exist. Yeah, we're gonna actually see that here. Yeah, So Okay, this one comes for Els. All right, here we can actually, you can either Do we need this one as Carter, a scorer. BJ equal Do Carter in the school create. All right, so this one. Must me. You connected with this here? Yeah, I didn't know. It looks fine. Is there anything else that we need to change? Okay, I'm gonna remove this from here this year. All right? No suit this thing. Uh, okay, I think No, it's fine has No, But we have didn't. OK, the baby have created this card item is actually somewhat better than what we have done earlier. But there's some problems that are doing it redundant stuff. Yes, because let's want what we're doing here. We're getting the request session. And Children, Whether it's actually have you don't hard we're getting it. Yeah, we do get it. And then we're checking its on on our than we're creating it. And here, actually in the same operation again. So what we can actually do here is we can actually come in this thing out, okay? And we can actually bring this entire thing here right now. It would be good to go, but this not still the best way to create a card, actually, so But for now, we're gonna actually sit with this on in the next time we're actually going to create this thing in a better way at some other place. All right. And learn the stay there and continue with the course. Thank you.
60. #298 Cart Model Manager: okay to speak about it briefly. Freedom on our car. Great method to be here. We wanted to be someplace where we can actually use it with modern. So let's create a model manager. So what I'm gonna do is someone with modest goodbye. So here, great class carte manager. A lot of stuff. Manager society. We're gonna do you matter? Yes. Create score car. And he said, Common user, do no. All right. Here. What is rhythm? Self got modern art objects create. Use it. Now, I think it is pretty much enough. Although I do want to have some products and that's gonna cover something but right. Not right now. I think this one really caught up for right now for my use. I'm gonna do that if it's necessary later. Right now, I think this is pretty much enough. Okay, So what I'm gonna do is I'm gonna change this matter name so that it would be easy to access someone over here. And what I'm gonna do is I'm going to change. Uh, what? And actually, what is card God objects, but new? I think this is pretty much good rather than actually saying this. It's once in your love. You just send this. I think that's pretty much enough. Okay, this would be changed to request user that if user is no, then check if using thing to do, then using of Jews J here, give you. Yeah. Here. What we don't lose, actually. Make it. Now, I think this one will pretty much worth one meaning body thing that your father is Me, this manager Mark. No, it's completely so now that we have done everything. So let's get back here and check what girling So fresh it logic is not colorable. Okay. See through this. Come back here. Fresh it? Yeah, it's actually seeing something. Okay, It's not Come back here. So the use is not being actually allocated, so we want that to happen. So we start the server, the works. Prescient. What now? Fresh. You see no use. It is not actually being initiated. Maybe it's because of some air in here. Okay, so let's actually do something. Use that here. You see back here? What I'm gonna do is I'm gonna delete all of these things. Yeah, sure did. All of them. Welcome back here if you shoot. So look at it. Good. I'm getting these use. It is up to you printed? Yeah, the user is actually printed, but it's not actually initiating it. So let's go and see there. So what's their here? Okay, it's actually this you need to actually locate that. Use it. Just doing that. So what I'm gonna do here is this thing. Yeah. Yes. So what? I'm going to go and refresh it. Yeah. Not going to hear. See, the users actually like it. I think this one is school, and now it works. Okay, So even if he every existing doesn't have any user, we can actually you see that too. Greste using and, uh, Carton, scores of digital user, uh, is run part of this using chris user and card in this court. Sick. Okay, this one will pretty much work. Okay. Okay. This much is enough. This clipper now, So let's go and do some test runs here, so I'm coming here. What cards? From now, what I'm gonna do is I'm gonna lead all of these things. Yeah, so I'm here. What a minute is actually novo, uh, have a vote. And here I actually wanted card. Yeah. Now Let's go running again. Come on. Yeah. So if I go to cards, I do actually have. This is one is not actually initiated or anything because we haven't clocked in. But now I'm actually longing. You see, I'm loving. Now what? I'm with this car. So if I come here and refreshing No, it's actually not a sign because of this. So they removed that Syria. I'm back here. Little car thistles. Greater hookups. Do you need them? Okay. Come here. Oh, now what I need to do. So I'll go. Go ahead and get to the car. Okay? How long in the game? What do I have? No, I have Discard Which is not looking out, actually. Impregnating. So now it's a whole and actually know again. So now if I actually go to car, if you see. Yeah. Now this is actually into the user. This where you can actually ensure that whenever the user is logged in the items that he has attitude isn't he or her? Uh, that it did occurred, can actually be transferred to his account. I mean, he or she actually over her. It's quite a big mistake. All right, so in this way we can ensure what happens, you know. OK, so the user is logged in. If I go ahead and we actually make more refreshes, it doesn't. It shouldn't actually create any cards because all of them must be stored in here. So this works very well, so we can actually get her off this comment. So this is I can get rid of dysfunction as well. So this is very good for us. Okay, so right. And now they are very good to go. So if you have any questions, please post in so I can respond to them. And if you have understood, let's get ahead. Okay, guys. So now that we have done everything related to our CART operations, so we have created a lot of manage emitted, and we have criteria and looking very efficient me. So the result of that, we got this one. All right, so this is a very goodly very to actually create cards. And another important thing is to actually see Is this the final stage? We can actually make it better that someone changes. All right, So the answer to that is yes. So is disturbed placement. We're gonna actually use CART idea and cart object. Is there any place else we're going to use it. So are we gonna use any evidence? So the answer to that is no. All right. We need to actually take care that some way we can actually get access to these objects. So go to the model. Start by. Alright. What I'm gonna do is integrated. Human, direct active. You this tease If, uh, new or get and crest like a Deere, what are you going to do? Is get actually copy this in, bashed up. Copy this. Come back here. All right. This thing Waas Quite well. So you should have carded at it. You can actually see itself, Lord get were He said that single. All right, You do have a request because of this. So we do have all the request related stuff here. All right, so we have the question to stuff. And this one? Yeah. We can actually say self about nine. Like your abuse trust all of this. So described for two here, So we didn't have your get in the middle right here, but you sure I'm gonna keep it like this? All right, So The important thing here is we will actually return this one. So to actually understand whether even actually send in room who? All right, seeing one here. It's going to be waas. All right. I think you can see this now. All right, so here, what we're going to do is even a cock on the school object on this score car. All right? You actually said no. Whether we're getting our not so this is similar to a matter that we already have get, uh, it. All right, so in this way, you can actually get it. All right, so, um, this one actually returned something similar, like this is written on object, and the his creator are already unimpeded object. All right, so it's similar to that. And you have already knew this from made up. So once we need to do is you get a card and you can come in to solve cardigans. You Good God, just stop. We'll get you can actually pass the request. All right. All right. If you see here, we are actually modified. How we actually getting the object so we have created in the modern man is and I think that's gonna be the card that were creator or the card that I was already created, and it's will help us to do this stuff. All right. You don't actually all of this. So it's a server running. Let's go ahead and just what you're actually getting. All right, So I'm going with the I mean Okay, Yeah. I wonder if I have the car 10. Um, Now, let's go ahead and loving again. Okay? Have you see the car has been created but does not associate anything, So not a refresher. Yeah. Continued set. Grady, this where we can actually look our things. And the modern management. It can also be used. The evidence with one over. We have done a bunch of stuff here. They have actually shifted the baby reaction, creating the cart object of getting the cart object to the morning, managing the dead. It's my first would used it within Lindsay. It is a logical music. Okay? Never. And they never need a card. I d this where you can actually go over
61. #300 M2M Cart Total Price: Okay, guys. So now that we have modified everything regarding our card, we can actually go ahead and select products that you want to add in our what cart. So if I had soon community, you can see that we do not have the price here. Although each individual product has price either by default or by what we have specified, we do not have the porter count here, so we need to actually go ahead and change. All right, So if I come down here, So, uh, we're getting actually two reasons here. Oh, Okay. So what I'm gonna do is I'm gonna actually get the products equals Koch got objects. Great car in the small. Begin our products. All right. Serious? Is it exactly products? Yes. So from here, you can actually get the reasons First meeting in a total zero. It's going to maintain the total price had been taught a calculated value off the card for here, for I don't in Tron. It's, uh, Total Who I didn't, right. All right. After that, you can actually bring the project. Mitt, You do the product smart like that actually has the value s price or anything. Us Yeah, it's price, so you can go ahead. All right. So what I'm going to do here is I'm going to get here on with refresh distance. So it should bring something. Yeah, it is printing something. All right, so we're getting the product value. All right? Does this actually mean anything current? Because we're going very high value. All right, this is 1990. Yeah. Okay. This one is far more pricey, right? Shoes, basketball. I think we're good to go. So you come here. Okay? We have added all this paradise. So what I'm going to do know is, uh, Now, let's check once again, what happens? Come here. So just once again, it. But that's more like the product price. All right, so now got on the score, B j dog total equal to starting. And then what would you say? That you don't see? All right, so now let's get here. Now. Refresh it. Yeah, let's come here in the freshness T. Now, you can see the price completely appearing here. All right. This way, we can actually make sure that the products are being calibrated literally, calculatedly added into the cart. Total price. All right, for guys way have done a lot here, but this is not ideal. Ready to actually do because it's not efficient. Everything they are, product the card. So what we're gonna do is we don't actually go something that we have that already. We're gonna do something that we have done already regarding the product. Smarter, used to as a signal alike, so that every time we save a brother get good a slug the similar way because I use something here as well signal so that we can actually calculate the price of the car. All right, so what I'm gonna days and then come down here? All right, so here, destination, bring in the school. The school car. Just see where all right, And here will the sender. Oh, my instance. Odds. He waas all right here. All right, so what we're gonna do, and here is from this we're gonna bring all of these things, all right? And you haven't added here. All right, so instead off Ah, harden scrubbed. It's going to be you stands And what it's instead of this, it's going to be standing. You think here one morning thing. Gays. This must be the outside the car, The last thing Get this thing that strip congregating again. Three. And the schools. See dark connect. You see? Card receiver and the sender ISS got all right, now that we have added a signal here. So now that we're changed how the products on the part of being added to the card, the price must be changed. So let's go ahead and test. So if I said them all right in your scores, Fine. What is it? Okay. We did not important. All right, here, they're getting it. Yeah, you did get it. Just reloading que housing fresher. Continue sort of market heart president not change and save it again. Then it's been changed. If I change it. No fished again. Now it's been chancel the items in the Carter being under the, uh differently than what we expected. It must be a problem right here, because parts of being changed, But the but the card is not being abated or the same matter is not actually being handled culture. So there is a different way to action hand you. So if we could have signals the reason that the Colombian change All right, so this could help is actually ah, send a signal event regarding a minute of benefit. Many to many feel it's changed. We can actually make sure that it gets signal. I don't think that. Martyrs. All right, so we're gonna actually gather from you. Yes. That would not was any error right now. So before we do anything, let's go and take the documentation so that we can understand. You have a sender. You do have an instance. Just like pianist will save. And you do have an action here. This one of the attributes this is gonna indicate the type of appellate division on the relation we want to see. What lease? All right, so let's had action here. All right? What are you really leaving? Actually see what it's going to do. All right, Syria. There are some things that you can actually use it for right now, but I'm not gonna do it because this is much more comprehensive. All right. I wanted to do it in a very easier. So here it is. Here is the example. If you see the sender is actually indicating which part of the model has been changed. Honor. He spits to find it, all right? Using this condom change. So what are we going to do here? Is we're gonna actually we're not going to change anything, But we're gonna change this. Brianna school safety and German. This was changed. All right, Uh, but you're not been actual space for anything here. I could. Then let's test. Okay, so we're not actually gonna space for anything but leave this light. All right, So let's go to this party on. I wanna change actually food things. And if I see him continuing now, it doesn't change. But if I did it again, no change. Why? Because we haven't done this part. So let's go to the documentation again and see what's happening in. So here, what is sending a center? Pisa is nothing but the modern, which is a center toppings is actually it's see. All right, so it's seeing something like that. All right, so we need to do the same thing. So here are center MasterCard, Dark Hornets. Thought through right now. Save this thing. Uh, if you see us there is going to come back here. Fisher. Okay. Uh, change these three things. No one considered a game No. But if you see here, the actions are being performed. Posten, who he had and posted when the party is not being actually Gene. But it's being calculated. So, uh, so let's actually do something so that you get actually vacation. So what I'm gonna do is and when I actually became the talk, you understand? Here, stand stock starting instead. Terrence Products. All right, Now, let's go ahead here and what I'm gonna These shoes describes certain three objects and I want go first. You see freedom? Yeah, a satellite throughout its freedom Move before removing. We have three objects and the total is $139.97 dollars. After removing it, we have a telescope, and this one's gave really do thing. This one, Actually, we are trending this started. All right, So here, after adding it's 99 99 pushed out 99 this one is a fine. All right, So what does it mean? Is it actually performing calculation for every operation that's been performed than have you add an object? I mean, I product into the card, actually removing the product from the cup, so we don't actually need every action step. Okay, So the important thing that we need to do here, is it to actually limit what we're actually seeing here and actually make sure the changes are being added at the right time. All right, so let's have the population to see, actually, what methods we need. So there are bunch of models here. This one is particularly given where, after adding the products and also after reviewing the products after clear after the relations create. So these are the things that we need A course in school. Add questions, scoring a host on this. Going clear. All right, so let's do that. All right. So what I'm gonna do here is if election these, huh? Worst in this group had or first on the school. Oh, who's on the school? Clear. All right. If any of the thing happens, kit, these things can perform. Actually, we don't need any action right now. Uh, kids isn't under commented out here. Let's go ahead and check what happens. Okay? That's not exactly what you do. So copies care. Yeah, I think that makes clear it's interesting. And after here. Really, Director, See the incense sick. Okay, salaries running. Yeah. So it was You can come back here in school. Yeah. The product is changing. If I did every way changes are actually having very well. In this way, you can actually figure out things that are actually necessary. Oh, actually, that they're concluding action. What actions? That report form in this same instance, the state of the cart or that I, the post, had pushed him or post here. All right, if we select nothing, uh, all right, that might not be husband for right now. We can add it later. All right. We have been in major part here. So all of the stuff regarding the card being added being a booking, he's done adding products covered in prize whenever the changing products, how the product price are the calculated court car price being affected is also being taken care of, but it's not still small. Major step is required to understand. What if there's a different way to do this thing? While this is not actually important, Uh, so it's important, but it's not necessary. But I'm gonna show you how to do it is supporting. Yeah. So what I'm gonna do is, uh here instead of talking. I want to see Yeah, the instance don't see. So now that I have changed it, I need to run. My son ran age, Doc, by make migrations. Okay, say what we're going to despite I greet. Yeah, all the migrations have been applied. We've been over this over, right? Yeah, on this fresh? Yeah. Change. You can see the subtitle here. The only group in the school. You see, you can see the price that the prices changed greatly. So for changes like adding strew shoes, Yeah, is to you can see the prices exactly changing regarding our the parts of the added. All right, So know what brother do is we're gonna actually make sure that when are the items will be at it? See the change? Here it Mr Flipped in the 22. So what moving really is you can actually use this prion discourse. It all right, But now trusting you need to do is your protection. Yeah, it's here. Now let's do something the way. Yes. Three in the sport card. See? Stance? Que ours Here, people. That's it. Here and now. What you see is used This all right, So now let's get here right. It changes. Yes. I'm not going to change anything, but just a freshness Appear. Why? Okay, if you go ahead and set up all the products inside here, you see, both of them are changing. If you just took them now, even if they're changing So in this way we can ensure that the total in the subdued in actually matching the products being changed. Frequent right? So, no. Do you have some problem dirty? What's the difference? Because some probably the value. Of course, the body is the amount of cause that you're actually very to send the party to the U victory for Let's just, for example, Let's put some tea. So what I want to say is I should be trying to start like $15 Sandestin back in a fishy so sitting continue. You see, their mantra is change Was the knighting $15 for action shipping. So the sitting surprise me change. I got into the product that you're shipping to the location that you're sleeping and to the , uh regarding how may like if did conference Continent are different country on the same country, but a different place It depends on a lot of status, and that depends on your business, right? But right here on only focusing on this part. So now that they have done everything about this, so now we can actually go ahead and add parts to the car. Let's do that.
62. #302 Cart Update View: other guys. So no, uh, we have finished everything. We got a card price honored. What is the total value of the products in the cart? So we did all that bike from going from the Edmund. The added the products into the card using the Edmund part. All right, Zang grade me. But that's not how we're going to do it every time. So what are you going to do now? These great of you that's on helpers ad products, right? From this angle. That said, You sure getting into the Jang grade? Me? So what I'm gonna do here? I'm gonna create car underscore update. Go. It's gonna take a request. And here what I'm gonna do is I'm gonna get, uh, part of from, like, object equal products. Great. I need to in court it from the part of state. More from Carter Martin's in book. We're on it. All right. Part of the objects. God, get off. I equals one. I know this product exists the product entirely One. So that's when getting a making a request on getting ID equals one. So here you can actually get car so that we're gonna did the car What's that? Agents incited. And here what we're going to do. Uh, we're going to put this object in tow the cart. All right, so what's the tingling? So here, do this car can disco BG dot products dot Uh Oh. Well, we did it this way. We can actually add the product into the cut. All right, so we don't have to perform it really save operation. Although we can actually make sure there this is actually product. Right. So let's do the park or from squarely acquittal one. And this is my I d. Yeah. This must be part of the object. Yeah, I think No, it was actually, we don't have to make any say operation because the more start by, we have to make sure that i m to him. I know there's a change in them dream which was made into many relationship. It's gonna make a safe or that that's a very interesting part of it. All right, So what else do we need to do? Oh, let's see. Um, okay. One other operation is you can, actually, if you want to know something from that coordinates. Um, Doc Rim war you, Jay, All right. We can actually perform them, but they're not doing it right now. So what else we could do here with? You can actually read. Eric, I want to read it. All right, Who do this coming of Britain? Read a tick product, B J Good. Absolute. You are. All right. Okay. We need to make sure the dysfunction votes all right, now, from now and were tested in this way. I mean, changing the, uh, fuel it. But before March check, Howard functions our country up until here. All right, So this is all some basic stuff that we have done and will also, we need to create the oral so that we can actually what, this new in our red side. So what are we going to do here? You need to go from euros from project, and we do have this part here. So what are we going to do here? We are going to change that thing like here, like, so I'm gonna create something like, um, I'm gonna change products to cart. Um, one, someone, This kid, this one right here is the card stuff. Yours. Your cards. You card says that. See this. Ah, I don't actually, no. This tea trading, we can get rid of all these things. You don't need that. All right, This one, too. Yeah. You can get off this because you're not making any in the car, and then you come toe cards you don't have in your stock price. So I'm going to create a new pile. The ones No. By all right. So come here to the part of Children's copy. This thing basted in our car. Shorter's can. So we need to put something else here. Insurance products. Um, you come card cone in card rooms hurt on this. Go home. You on that score? Big. This one? Yeah. Okay. You don't this one and definitely need hope. All right, This one to change this to a dead? Yeah. My car got on the score sheet. I think we have done much stuff here getting his spine. So what? I'm gonna, you know, go here. I'm on a lot of dough, all right? Coward and poor mean on part of use. Why? So okay, you don't have blunder. A mistake here. Okay. Chooses Waters Mr. Here. Yeah, that's it. Make sure you don't do the mistake that had All right? Yeah. How this I was running. Come here. I know. All right. And freshness of the Yeah. Commerce. Blogging again. Password. All right. Yes. Come here. Have a car. Okay. I want to car snows. Dude. See, this is the one that we have here. Alright. Checking the basketball here because we have said, Why does this take basketball? Because in our views, we have said we're gonna take the cortical tidy one, and it takes the product with anyone. It is basketball, and we have rededicated to the particular. So in this way, we can actually work it out. This in this one is working, visible, so we need to modify some things, you know, cart update method. Okay, so let's do Let's change this. So cards home. All right. Now he said is open car. Yeah. All right. Now this one bird. So the main thing that you need to do is we need a cigarette of it, um, trotted student car so that I never really a product. We should get a burden, like at the card or something like that, so that we can actually add carts from the user site. That's going to make it more competitive. All right, so now what we need to do is you do, uh, hard its views. You are here, caught in a mortar card. Start Mourners. All right, so you get to the garden details love you. I hope that's the one you're using. Yeah. Did you? Yeah. You can actually create another saying, get context data good on the data. So start and he waas All right. So what are we going to send here here? Context Or, uh, do you tell you so? Yeah. On its together. He waas master that. Whatever going to see your toe? We had this one. You're gonna get the card that's right now being used by the user. Made a national then card in the school or BG context card calling from this floor over here. And Britain context this one, actually. What did this? It's gonna take the card. It's goingto get the card that's been used with the customer. And it's going toe Ah, edge to the context and written to the it in the context to the hurt. Okay, now we do have the cart data, so let's go to the kitchen villages where we actually use this one. Okay, so on the six over you something here? You class under six here. What? I'm going to seize once the card. Yeah, I got number will be displayed. Great. Yeah. Then whatever that is to be here. Yes. Object. Got door, or that's look on. You got all right because yeah. All right. They to maybe Yeah. So let's go and check what happens. You cool? What products? You This Christie is not defined. Come down here. Use. Okay. This one you're not using. Actually, Method based media is in class based breast. See this? Come back here. And Freshii concede this man is ordered attitude card. All right, I viewed this. One says we need to add this to car. Okay, this one? No. This way, we can actually figure out what else is happening in our car. You see, you can also see the card number. All right? The card number. You can see it. All right. This one uses a lot more information. About what product? They're inside the card. And what? It's a really what color. It's neat that now we can go a step ahead and make this actually button Schruff. So I want to the you don't hit him. So, um, take off these things. All right, here, said button, but Okay, so, class B, all that here. Okay, There was something sooner here. All right, but, you know, huge for you're gonna this and sure removal. Oh, let's see what happens. See the card. You want more? Okay. If you go here, it's gonna see had card looking to change. I don't think we need this one now. Care fishy. Is Africa. You this? Got you Want. All right. Can see all of this year. All right? No. What does we've got left? Okay, we can actually go from here. And make sure that this move button and all these add to cart button can work. But I want to do something a little more detail before that. Coming here. If what? I miss it. If under school B J a card in this dark works, then what are you going to do? This thing? All right. Okay. I think now this will work. Okay. Is there anything that you want a chance off? Check, Piston man. Then let's go ahead. So I'm gonna go God's marriage. You okay? Okay. Yeah. Okay. I think this one must be call like this. Yeah. Room. Yeah. If I do this, I think now the product must be arrest. Yeah, we still are having this $15 because the shipping charges. So let's go ahead and change that. You come here. You have this one, actually, at 15 dots, so I use stands. No sub Greg zero understands. Go according to Algeria soon. This thing? Um yeah, loading our contrition. Yeah. Jews. You alright? So that's chicken. He a did. Yeah. Now this one is added and these two are different. Okay, Did okay how you see here? Yeah, both of them zero and the basketball new from here. We kind of went very fast to this lecture, but still, there's a lot to learn, and you can actually figure out things like this by yourself. But the court in part, is much more introduced by now. Like, you know, it was just me and, you know, relationship about signals and a lot of it. All right, so let's get ahead and make sure that we can actually add the ad carded star card using the buttons that you have created. All right,
63. #304 Add to Cart Form: Okay, guys, your card, a lot of subject. So this part is very, very important as it deals with the user side because we want to add products to the card, but not in the way which you have done and did not. They're not gonna use the angle it me again and again to add products to the car. We need a way to actually make sure that user must be able to add products to the card from the website itself. Whenever he visits, a product must be able to carry cut. So the need to actually create ah, a home, an event that they can actually make sure that all the details off the part of being added . So we do have something like that. What is that? You have a search? Yeah. All right. Yeah. This is a search from that we have used. All right, so we can actually use this to, uh, for the exact specific e usage that we want. Like using it to that Products from apartments into the car are the products that say All right, but where we are actually going to put this thing, we're gonna put it in the cards are for it. I think it makes much more sense out of getting parts because that's maybe actually wanted to. And it's going to actually help us to add products more specifically. All right, so I'm in my snippets the product tap were created. You fire saying up did car Lord Studio. All right? What I wonder is, I want a copy distinct and paste it here. All right. Uh, okay. Now just respond. All right, What else we've got to do. You see, we see this one, uh, actually using get method. But we don't want to use get because they're actually adding something. They're not dreaming. So we're going to use a method that you made are already know she's closed the morning post matter here. All right. Okay, so now that we have created this update farm, they need to add it. All right, I'm coming here. Okay. Is, um we have used the camp plates, actually. Sure? Yeah. You needed a studio. So here. What we're doing is we're going to eat, you perform that we have created All right? Yeah. Uh, that snippet slash up here. God started. Object hard to cut all right. All right, Now we've got this product, allows it and the card this card and directing during this thing. So we need to make some changes here. So the changes that we need to make here Ah, um, get this? Yeah, at this one. Okay. What did not Yeah, I think that needs And we don't actually need any of these things, because, Oh, you don't need really buttons to do with all the stuff you are. New distance here, here, type B subject farm actions that have been done. All right, this more actually, we don't need actually steams. All right, so now teens, this method pushed. Yeah, And that this one will be cards upbeat. Yeah, I also not getting up these things. All right, one extra that we're going to add here is in port. Yeah, High peak was hidden and equals gu product ID value car. Yeah. I think that, uh, this is no longer part of object, but Carter Yeah. Uh, now it is completely relieved. Work. All right. What does he see This going todo describe that the part of the form is hitting, and it convinced the information regarding the part of title that. All right, this one is very much ready to go, and we do have it. Okay. Okay. Now, let's go ahead and guess what is happening. So I've come here on the products on. Do you? Yeah, I do have. Ah, because okay. Is yes, sort of. Verification failed long. Right? So this is a postman. Unlike get me. The postman, uh, is going to make some changes on the silver or dead abyss. So, what are we doing? What we need to do here is you need to U S C s are underscored broken. This may be, but pretend update methods as well, but mainly coast we're going to use. So this is very important. We have already done it, so I'm just win stating this. All right, get here. Fresh air. Yes. Yeah. Once again. Did you come here with Apricot is going home, right? Because you have said, uh, you data costs home. All right. This way, it's going home. So now come here. And we're actually going to drink whatever. Let's in coming here right between quest body, whatever mother that we have used. That's portion. All right, so if you come here and go to products. And you, this one after a car. So what happens? It is here. We have got everything. So test. Yeah, one product. Ladies One, go here. Products. I'm going to say you. Yeah, and I have the card. What? Yeah, good part view at the car. Yeah, it is. Yeah. At it. Part of a beautiful What? It's just some empty thing that's coming with us. So that's right. And chick, whatever. These. All right? Yeah. Marty, to get here. One of this. Is that okay? Yeah. Getting year key thing. This wars, This one, this term product I d despues get it. All right, so let's get out. Who's okay? It is here. We have got this right. You can actually more distinct. We're We're needing. How will say this? Come back here. What? I heard. And products Shoes after? Yeah, called? Yeah. What is it? Just product. Ready limit. All right. So this type of errors, while just okay, this was established connection was about of my okay. I did press my something while it was executing, so that ever has been caused. So that doesn't have you know, you don't need to bring about that. All right. So product ideas in this way, we can actually work out things on rights of a growing part of Heidi's police one. All right, all right. What if there is what? There is a mistake in how we actually get data on. I go to you stop by and here it actually getting girl. So this one can be request No wars. Oh, Okay, good. I heard it on the score. Idee. All right, so So we can actually get rid off this. All right, So one thing that I'm concerned about is what if the product ideas is in there, So product underscore D He's not. Then you can actually do this. So what if the product is on these present? But the product is missing, so I want to show you how to handle it, So Oh, they said it's harder does not exist then of acid rain. Sure. Message user. Well said, All right, so I see that and you wonder something about you so cars. Oh, all right. I think this thing works is much more better. All right, so this way you can actually handle things, and we have also check for any errors to kill you to handle. This is very, very good about. All right, So you have done much stuff, everybody. How? They had products to the card. And, you know, my let's get ahead.
64. #306 Display Cart Items: Hello, guys. So our car is very much ready to be used, but we have left shootings. All right, So cart is able to store products, save the minutes database, and it's booking. Fine. But now is the part where we actually display the product that are inside of card. So I'm gonna choose a matter to actually do that. So I'm going to bootstrap that site. Yeah, I'm goingto recommendation content here. I'm looking for tables. All right, so this is the table, and what do you So what I'm gonna do is first copy this entire cool on. Here it is. I'm gonna taste it. But before that, I put this work. All right, Got door. Sorry. Products no exists. All right, then this would be rendered. It's not We're gonna see a Z it class car is empty. All right. And then we're gonna and yeah, yeah, America, It's fine. So let's go ahead and check whether what happens? Storage if you've Freshii tress card isn't easy, but actually, we have, um uh What? You have to wait him to know database. So that way we need to love. So if you go to cards, let's see uh, more Adam. Yeah. Nothing. Come here. Officiated. Discarded them. Why does it show that? I think there is some problem being happened. Yeah. Here our context is, And by the way, we don't need any part of these things that we can actually get rid off the because we're actually doing that on the modern manager sight. All right, so here, cart car from the school budget. All right, now we're sending our object a Scott. All right, So now let's go ahead and refresh it. Siri can actually see the details. I'll load. These details are not movie related to our items inside the car. He just states that their items present inside the car and so destabilise being rendered. So now what? Our job is that to actually sit in our details off the products and a cart into the stable . So let's go ahead and do that. So let's go ahead and, uh, work on Arctic shame. Oclock. So I'm coming here to the history of my part. So the first thing is, I'm gonna do leave this law on a I'm actually going to Yeah, distance have almost cool. Okay, Product man On who That price. All right. Okay. Now what is entering into the body? You need to create a subtle appear, because it's going to turn it over. All the products in a car for Florida. A guard dog. Poor snow. All Okay. Now, this is going to take everything but here. We need to end for just be school. Oh, for new Don't come to on here. It will be dot and then sort of price. Andi, you're not gonna have this for us. All right? So, off the seeding days, So some things we need are here. So these two are gone. I'll make a power sub 30 in total price. The card. All right, so here. Oh, great. I go ahead to remove this. Just we don't need here on just a little bit. We don't need either. I want to say it's a daughter. Yeah, but before that, I want this new tax. Yes, 40. And then it's going to be God. God subdued. All right? No, that works. And here because I don't. And this isn't. And is there anything else left? Yeah, really changes to TV. And this one. Yeah. Once this squared and check how side is looking. Yeah, but this is the distance of the A vase from where we want them. All right, so you need to change that part now. Okay, So just one would be changed as one. Yeah, but it should have some turkey between the torture. Yeah. Okay. I think I would explain. Oh, look surprised. Okay, so now let's go ahead and chicken. Yeah, this into the head. So we need to find a bit, actually. I mean, I think this is funny. You can actually say this a pretty cold here and these products as a part. So if you go ahead and sell it something else. Yeah, Come here. And pressure. You can see the change sipping on the changes over here. All right, So one thing I want to tell you is there is something else. It's part of the concept from here, But actually, if you actually forget this and use something as like product name, issue of title, we convert the round as well. All right, so how can we do it? You can go more slowly by Onda, so how can actually will get out, So come down here. Okay. So here What I'm gonna do? Is that property even acquired? And you properly this death name And here what? We're going to Britain itself, brought if you use the name instead off Titan, we're gonna get the same. So I decide. Not here. We're gonna actually put this in product smarter. Start by. Yeah, Look. Servicing elected here. Skytel Use name. No, You come here. The pressure. You can still get these things. Okay. If you want to go, uh, used tight, lest you should ask me. It works radio. All right. This way. You can actually create properties if you want to change anything in shut off, creating tennis and the martyrs. All right, so this one pretty much looks good. We can actually make this product names as links to the product. Information are probably views. So my mentor days to actually limit the user's capability from going again from the Cartman there, then they have got here. But for usability poppers, we can actually make that happen. So if you get a product title, so what? I'm gonna do these tradition. Florida, get absolute. You are on here. This this thing? Now if you come back here and refresh it. You can actually go to the products. All right. You see that happen? Yeah. And one other thing we can add here is that can actually at every move part. All right, so let's go ahead and add that to So I'm come here. I'm actually going to make it smaller than what the product actually looks. No, I wanna leave. Does hash tag? Because they haven't done the spark. So refresh it. You can see actually moving here, but it doesn't actually do anything because we have blue toe hatch. But if you go the products, it happens. All right? So we can actually add products to this. Well, so let's check that. So I view basketball on adding to cart, you concede basketball is added. So if you go to school, totally added. So Norm Ipsum so added took a car. You can see this happening, Although you can't wouldn't remove the products from card here. You can actually go into the product phase. And actually the movie you see normal. You see, you can actually, Morgan All right, so this is a major, uh, part of for card is that we can actually make things happen like adding products. Treat you if you see. Actually, Lampson, it's actually adding the product. Calculating the all the details and providing us what is a sub total and caught all of the functioning is very good. The only thing that we have left our is actually made this removed part work for us because we're gonna actually perform that in the next video so steered with us, right?
65. #307 Removing Cart Items: Well, now it's trying to make this a remove button work. All right, So we have done everything that belongs to the Carter patients on the left arm. Thing is removed, so let's make it function. So if you observe each time we have done something toe a particular competent on a part of a competent and our project, we have taken a very systematic approach and a very programmatic, right, So we're gonna follow the same procedure here. So the only difference is that instead of actually making cuts, gravy after hitting the movement, and we're actually going to make it stated, All right, so we have actually used to street New Britain and sweet. All right, So if you come down here, uh, we're products on the basketball. Did the school? You see, you have a guard and removed. Hit it. You can actually go here. All right. In a similar way. We're going to do something. All right. If you come down here and go to the update card, not html, you have this park, all right. So we can actually use this thing as a zoo. Ah, template for us. So if you come down here So where did we actually use this thing? In the corner detail page. Yeah. So we're actually going to copy this thing, and let's goto our card and paste it here. All right, so now it's working. All right, So what else is left? Okay, we're going to give a new available What? Let's go ahead. And actually, chick, what happened to you? Yeah, you do have it. Here it is. Had recorded because it doesn't make actually any sense right now. So let's come here. That's good. That did card. So what are we going to say is it must know that it's actually you being used in the car market. The product detected. So what? I'm going to the here. We're going to give underscore card. Who? All right. So here, um, let's do this if in the school, all right, and this will be rendered than it's not inside the car. All right. So let's Yeah. Now we're going to actually do something that you have done. Yeah. Copy this button and blessed here. But something else we're going to use the views backed on Dash some. Yeah, I think it must work now. I feel fresh it. Yeah. This is actually using some home mortgage. Dammann. Yeah. So destroy all of this. Yeah. Now this must work. Okay. Oh, yeah. Maybe here. Let's go ahead and check it now. Yeah, I would actually split direct clicks, but if you can object here, Grissom still some pairing and everything is black. So we can actually know about this is me. If you see here, this has some patterns included to it. All right, so we must actually make sure that this one doesn't affect how we actually see that. See your page other. So what amenities? I'm going to actually remove all the padding that it has. So good, big card. So here, I'm going to give it to statics style guru parroting zero Syria. Come back here now. It looks much more all right. Another thing is, we're gonna actually give it a skirts point, all right? You should have, uh, more. You course. Uh, point. All right, let's call him here. Come back here. Yeah, I think that it actually works. Future moment. It's a food lady expert, but God, Yeah, those cart colon scoring. Okay. Must be here. Update. Okay, look at the rise occurred here. You need to change this object to product because we have actually mentioned it has put up here the knowledge goto are beige and fresh. Now continue. All right, let's come here to move water. Okay. Syria, come back here. What a game. Yeah, I moved. Okay. It's throwing this out again and again and again. Um, you guys have rectified their which is mistakenly deleted this senior, so it's causing there. So I have get it again. And if you come down here and now you hit the fresh, it's gonna come like this. If you remove, it's going to remove the products. Could character the price off the products remain in effect. You know it's gonna set card, isn't you? Add this. Come here at this Porter is going to show it. This is more the basket. In this way, we can actually make this card, remove it and work. All right, this is very, very easy and very, very information. Although we have done a lot of stuff regarding cut a competent there, few more steps that are left over. What are they? So actually, when I remake it removed, we don't have to stay in the same place as in the CART company. All right, if I actually add them, this is in card for add this. I'm actually going to cart. This is okay, but if I hit remove here. I don't have to stay here. I can go to the product space of that, I can actually go to the products on Right On. Another step is that if you see these shoes product, they're actually listing light. Maybe on this single size at a single price. All right? There may be many variations off these products, like different sizes, because different colors and then actually, their varying in prices. All right, We did not do much off them because they want to avoid much complex it in developing the website were actually doing the part. Maybe we'll do it later. Or maybe not bringing everybody. But this, uh, learning step is actually more important for us than actually creating more radiation. So that is the reason why have we have left it up? All right, So another thing is, we did not actually really cut symbol here. Many shopping that site e commerce websites had cart. I can't hear with indicating how many products it has. All right, so we need to do that as well. All right, so there many stuff that we have left out for learning purposes to make to make this project and this learning course actually much more easier to learn and not avoiding the challenges that actually we go to and we're actually going to develop a website. All right, so they're actually keeping challenging and also a moderate level for the learning curve is maintained consistently. So let's go.
66. #308 Cart Icon & Fonts: Now it's timeto bring a card, like on toe a navigation bar of the cart link so that we can actually land get to the car. All right, so let's go ahead and do that part, right? So, I mean, going to my, um based on HTML where I have actually pleased the navigation bars. Right. Where did I put the navigation bar? The templates based on the border HTM. Actually, I can get it off this drop down because I don't need it right now. All right, so neither do any this this entire drop down and removing it. All right, So what I'm gonna do is I'm actually going toe get this. Uh, just about now, I'm going to put it outside. This other ways aren't indication system, so he can actually get it from here. What? The girl eso seem as thes. Ah, but I Sure, officer, it will be cards, colon home, and this will be got on the score. You are all right. Thank you. Copy this thing, Come down here and sure, registrants, career record here is a card, and we can change this to guard. All right, See this? Come back here. If you're a fresh it. We do have card if you could get there. Coming here. All right. So another thing that we can do here is actually make sure that we can see how many items are left in the cart. All right, so we can do that by actually saying, Ah, request dot Citian, not card underscore items. All right. Okay. We need to actually add this one to our request, but come down card. And here we can actually put it. Okay? I'm not here a request dot session Lord, uh, Christo Decision garden. The school items equal to, uh, carton disco VJ Lord products. Yeah, not gold. No, sir. This thing come back here, refresh it. I would've product cart. Okay. It's not showing anything. So let's appreciate if I had something. Yeah, no chewing it. My chewing on many products that if I remove this one, just one off removed each us zero count is nt. I go here and we had still school, which is just one. So now that we have completed this part, how many items were inside the car and the navigation linked to the cart? Okay. All right, guys. Now this one is looking very fine, but this is not her actually a shopping or equal. Most websites display the cut, the use of my car. So let's do something like that. So I'm using phone Dawson so you can start for free. Ah, it's when I ask some email so you can actually give your email that that can get it and displayed. Or I'm going to use my count as but are after you have done everything. This is something you should get. All right. So it's gonna say something like this so you can actually adity a project, Okay? Ah, but there is another way we can actually do it. All right to actually going to the forint. Awesome city in and get everything done. Okay, I'm gonna copy this and go to my Ah, CSS started steaming base. And here, mature going toe. Uh, do right and work amusing for indoor soon. See icis? Yeah, And here lean, stay defeat. And this will be the link that we have copied. All right, have c this thing. And if you come back here, we can actually use some. I constantly have. All right. So good. Eh? Cons. It's going to take you to the icon. Sparked? Yeah, and not I. Ah, God. It's gonna refresh everything. Assure some card icons. Yeah. You see this shopping cart? We're gonna use this one. All right. Um, I think the network is a little slow right now is that's reason rate is, uh, learning really slow. You see, these are the icons that we can get. All right. So how do we actually get dizzy? You? I cots. All right. Here is the one. So we're gonna copy this. All right? And go ahead, everyone leaves. So I'm going to the, uh, never where we're actually used this card. And instead of God, I'm gonna put this thing all right. So pissed it how Siri and come back here. And a fish it right. There's no, like, really showing all of the sir this thing, uh, come back here. I want to regain. Yeah, I've had a fresh it. Okay, They must be some kind of Arab being done, so let's check it out. Okay? Yes. There is one thing that we have left here. We need to use this kid court to add your project. OK? So wherever you want to place the icons. You need to add this thing. Okay, So what I'm gonna do is I'm gonna copy the cord, go to my project. So instead of hiding toe all every place that I'm gonna use as a ah, use the phone doesn't icons. I'm gonna add it to the J s. Started HTML, and I'm gonna actually see formed awesome GIs. All right. And now I'm going to save it here. So now go ahead and refresh this. Yeah. You can actually see this one working if you remove it. Yeah. One if you go ahead. Uh, right. If I actually add this. Yeah. You see, to this way, we can actually use the car tight conscience in here. You can go ahead and add any kind of icon you want and as many icons as you want. You can actually change all of these icons from products to anything that you find similar to that inside it. And you can, uh, you're free to use as many as you want, but don't make the website too a tough to actually navigate. All right, so we're done with the card competent here. So let's go to the next step
67. #309 Checkout Intro: Hey, guys. Now we're going to develop the check out process for our e commerce project. All right, So this process does not involve the payment section. There is. Hold another thing. So we're gonna only handle the check out process. So why are we doing individually without including the payment process? Because you gotta use a lot of someone concepts. Uh, it is not a panic. Well, painting, we can include a lot off their several third party applications that can be integrated with the project to the payment part. But check out. We can actually individualize the part and make it more comfortable. All right. So the competent, like adding address the type of payment you want to use and then go to the payment section . All right, So the that in mind, we're gonna look for the check out process in this company and hope you get to learn much of the jangle. All right, so let's get ahead
68. #310 Roadmap to Checkout Process: Okay, guys. So if we do anything regarding the check out process, I think it's very important that we understand What's the road map to create the checkup process? All right, so what are we going to do here is we haven't actually create a new file so that we can, uh, load the road map to actually understand how we're going to develop it. I'm seeing this one of calling this. She got process. All right, So in this checker process, we're gonna do multiple things here. Not one single thing there. A few things that are involved inside this check out process. So very first thing is we're gonna go from the card to the check out view. All right? Every user, whenever they are looking to our website. All right, What they do is they come to the cart before the actually buying. They could pay because they want to see what I don't there being purchased by them. So first to go to the cart. And after that, when the confirmed are items that you wanted by, they're going to go to the check of you. All right. From here, the question arises. What is this the user, Uh, actually our user or a guest reason. So that's where we're gonna actually show him the log in or register. All right, Because if he's not a user v A, that should give him a log in form or resist the phone. Oh, are we can also give him a chance to perches using the guest roll. All right, We can actually take its email and make him our guest customer and make him the punches. All right, so then what happens? We don't actually take some details here. The cutting board regarding this shipping address. All right, because we do want to know where this items will be shipped. Unless that we can send there isn't anywhere. All right. It's gonna be just tip some button clicks on the website. You need to know the shipping address. All right, then what? We need to know the building info. All right. This is one of the important steps because 1,000,000,000 for takes care of all the address , billing address and the payment procedure, but also so this one takes the billing address. All right. And what is it goes for credit card. Are any card all right? are any kind of payment it's gonna take. All right, Here we choose which type of procedure Tau bay Are they gonna be? Something like online, or they're gonna be cash on delivery. Also, we might ID is are. We might not, but this can be an option in your actually developing an e commerce website. It could be a credit card, a debit card or even a gift purchase. All right. Ah, gift card. All right. So there are multiple ways that you want toe process. So depending on the websites, our project of the companies Ah, plan. The building info will be combined. All right, After this, what are we gonna do? All right. So he comes the second step. What is it? The second step is about here. Is the building ap R company. All right, so you can actually call it competent for our for our case, or we can actually say Billy app. All right. So here all the process regarding the building will happen. Like what? All right, you can be a building profile. All right? Here. The billing profile will be created for the user watch to purchase items. Wants to actually go to the check out. All right, So what does these things include? It includes the user are his email. If he's a guest, all right, he's gonna get his guest him And so that we can actually crack the user and send him update regarding our shipping precedent. All right, so this is really very important, all right? And the next thing will be generate agreement processor token. Alright. White craven process broken because we have always stated here they're multiple. Several third party applications that's gonna help us in creating are enabling the user to pay across different kinds off methods like payment or using the online cash on delivery creek card or any other application that he has been using. All right? For example, Stripe Our people are one of, uh, bringing cree all right there. Multiple sources where we could use on each of them Has a guy play, actually, how to integrate their applications without product. So we're gonna use it to All right, so this is another part. All right? So, wardens, we can actually use eso. Let's go ahead and do that Another. These orders are invoices company. So these things actually handled all the stuff reverting orders. What orders? The user has pleased, and the invoices wide support it because these things are connect to the billing profile. All right, so we can actually connect the billing profile to the ordering green vices company on bottles. It's a shipping Are building address here. We're gonna actually take care off collaborating all of these things to make sure that they actually add up. Do our order invoices company. It's a combination of the card from check or two and the building up our company. All right, so here, we're gonna actually take the cart items. Okay? This is gonna come this competent actually communicates with the cart as well. In the final is status where you can actually see whether the items are shipped or they have been canceled or written or anything else. All right, so this is a general structure of how we can actually create a check up. This is a basic road map. Do a check out process. So we're gonna follow much of this things. So let's go ahead and ah, build this kind off process so that our users might can be able to actually check out from the cart, the items that they want to purchase. So there's we're gonna learn a lot of things here and some of the things that we have discussed, like payment and other things are gonna be handled in later in the course. But right now let's go out and create the check out process.
69. #311 Order Component: All right, So now let's starting. Start knocking down one by one. Off course, this entire process. Norden order. All right, So we need to actually make sure that we make smart choices on way to actually start in how to continue throughout the process till the end, so we can actually start with orders. So what I'm gonna do is I'm gonna screw, go to this party when I by Thorn managed by start up on this will be artists, right? And here is our company. All right, So what I'm gonna do is flushed thing. First, I'm gonna go into the mortar start pie, and I'm gonna create my more modern and watch it. It's class order more than stock. Mortal. Yeah. So the very first thing that I think I can have you actually connect this to the building profile, All right? Why? So because building profile actually handles much off the things that are regarding the orders. So we're gonna connected, but we still don't have it a blink or fat. So whatever you want it even a coming to sell and we can actually link it later with after creating the building part. All right, So the next thing we can actually have is shipping address, because we want to know what sort is being taken towards. But we don't have either. And one other thing that we can have these billing address. All right, so these things are very much important because with the billing address in the shipping address with is actually located and also the billing profile so that we can actually take the bill gather. All right, so this is very much important And what else we can have. Okay. The cut. So we can actually have the card for us because we want to know Bear our products are and how they will grab them more than strong foreign key. And what? It's card. Come on in the school. Deal it. He called Mourners start casket. All right, so we know already what's honored school deluded casket will do because we have already discussed about what is this a problem? Any item or record on the other side is deleted. All the items standard in could do it on this type of more on the other side of the mortar will also get deleted. The thing is, is a way of creating a chain between toe, uh, modernise. But also, when a part of the model is deleted, it's going to remove the entire chain so that we don't have any errors when we access the item that has not been linked to the one that's actually in the cart sight. All right, so, um, that's what our CART was going to do. And next thing is, what do we have? We have the status. Okay. We're gonna put the status for ourselves. I mean, uh, it's for the products. Okay. What is it? Moderns, Lord care field. And this will be Max. Underscore lend length. We can give about 1 20 then default will be created. I'm worried because we're going to say that the order has been created. That that with the default whenever record or an item that Anderson to this morning, the default leases and order has been created. Are you gonna have some? We're gonna put some try to see it as one, but that's gonna happen later. And mortals, we can have You can have actually shipping daughter. All right, We can actually put this right now. All right? We can calibrate the amount that's necessary for us. Oh, what we can say about this is, um, you can actually grabbed this from our, uh, may be caught. Let's look in there. Uh, I think this thing will work, OK, I grabbed this thing. Come back here and I'm artistic. All right, so I think this one works, so but you can actually play some, uh, default price here. It's what I wanna days and one puts. I point, then you can actually put anything like $19.99 but weapon and makes it reasonable for as of this learning state, because we are going actually deal with the actual comma street being something different. That's so one thing Very important to notaries. Why the shipping total has been can create in here because shipping total varies on multiple things based on the location based on the weight of the products. Much more stuff than we can actually do. You think right now, because we're in learning the technical part, but shipping actually deals with the business side of it, so let's think you're in, uh, San Francisco for the shipping charges will be very much low in the actual, uh what we call the delivery side off. The business actually is located in the your vicinity. All right, but if you are actually on the other side of the country, it's gonna cost more. But if you're on another part of the world less, but it's gonna cost you a little more. All right? So, depending on the distance and distance, including the charges and the charges, Mr on Wheat, all right. And depending upon the delicacy off the product, whether it's, uh, a product made of class or Steve or would there's gonna be multiple things that's going toe happen when we actually calculate the shipping part. So they don't actually lived it right now. And let's just say find out 99 is our default place. All right, so next thing is started. All right? So Total is equal to mortals dot decimals I feel and the default. Wait a minute. Actually, we can pick desisting right away. Yeah, I think we're gonna keep this as just like that. All right, so I think this one pretty much works, but whenever we want to actually access this order, you can actually written something. All right. What is that in order Ready. So let's given already for this team. So in order on the score, idee it's equal toe. Oh, mourns not Kafeel. All right, next on the score. Length, equal toe. Want to indeed, Comma blank, equal to crew. You can actually name anything for the already. But I just think that if you're having an order, the idea must be something like you actually can see something like E G 135 something like this. Also stating some like, um especially gets All right. So this makes sense when you're actually already is something like this, Because this is what we see in general. So we're gonna do something like this, but just not right now. All right? We're gonna leave this a few stuffs that we have been dealing with right now because that's more complicated than what we're actually seeing Rick. All right, let's just let's leave that up. So another thing that we can actually do Is that what I said? This is what we have done a previously What we're gonna do, We gonna have written sell dog ordering the score. I d. All right, that's it. So this makes sense. So what this is status. We're gonna get some choices, too. So let's go ahead and do that. All right? So when I say order underscore status on the score tries this. All right. So we're gonna use tries to street here when they're gonna be created, right? It's gonna see created. But this will be kept in all right. And a copy. Days were like four of them on the next one will be paid here will be paying. Yeah. What? It's this one will be, uh, shipped. Yeah, Rodon's this will be this will be refunded. Yeah. You see why there are two types of values for each of the other? They're just similar because this one on the left side is actually the value that is stored inside the database on the right side of the value is actually what is shown under other friend and tight. So that makes sense, right? These are the values do you left for Are the values that are actually stored on the right side That which catalyst for the first letter? Actually, the very start of visible to us on the front and side on a page daughter of Edmund website , all right. So I think that makes sense for us. But there are still some things that left that we have left, what it is to generate. Ah, the order I d on and wouldn't generate the order torture. Alright, so this thing we have left out, All right, so we're gonna do this things later, but not right now. So we have created this choices. Now we need to link it to the status part. So grab this key for them and come down here and say choice is equal. Do order status choices. All right, so now that we have done everything, what we're going to do, you go to the setting stock pie. All right, so we're gonna say here artists all right. And now what are we going to do? We're gonna go to the admin door by for here on. We're gonna save from dog Marv's import order and then add mean Lord Side dog register. Sanders Sting. Now let's go to our red side. What are you going to do? You go to ad. Let's go to the admin part, Okay? The summer has stopped lying. Okay? Or run it. She is called. It's not defined. Okay? We did not important the car. Maybe here. Okay, so So. Cards dog Martins, Import Now Syria This team come back here. It's literally lording if you come back here fresh it. Now we have actually here. You can see the artist if you go into it. Says are not such table. What is causing the error here? Okay, before go to do one thing that is make the migrations that is very important. While we're changing the models make migrations. Yes, quite on and by my great The scene I used angle really very much, but still I forgot to do this. You see, that's why we need to take care of the sticks Now If you refreshing you see, we know they have got Let's go it in order to see the already is actually blank. It's in it must be creative way did not yet created. So it's asking for some card that we have been choose and it's also status by default. It is created, but we have four other things. You see, all the first letters of these are capitalized. So because we have said so and the shipping daughter Liz thesis on the Cordless here, so we're fine that we have created our order model. But there are still still some more things that you have to be done, so let's get ahead.
70. #312 Generating Order ID: Alright, guys. So now we're going to generate the order I d. So how do we actually, uh, get this order Indian? How what tones should be getting? So the main thing is, it has to be random, and it has to be unique because we're actually going to deter mined, which order it is. So depending on the already, so it order has to be unique. So we need to be We need to have a unique already, and it also got to be random. All right, so that the baby have actually defined here. All right, so to do this, it's a lot more harder than we actually think. All right, so we kind of already done something similar. Great, but not quite exactly like this. So what is it? So if you remember for a slug generator, we have actually used this random string generator and unique slept generator to actually generate a slow for our product. Titans using a product titles to save it as a key. All right, so now we actually going to do the scene, the meeting change. But before that, we're actually going to change, uh, this entire place where this you didn't start buys existing. So what I'm gonna do is I'm going to economists that pie, and I'm going to create a new file with you till start by. Sorry. That came out wrong. Rename it despite by Yeah, I didn't have a school. Right. You do start by. Yeah. Now it looks fine. So what I'm gonna do is I'm gonna copy this entire thing. Got it. Go to here and based. No, it's OK. So I'm coming here and I'm going to delete this thing. Yes. More to crash, so a small problem will occur. What is it? We have used this slug journey that at some places. So if you actually go, dear Yeah, here. This So it shows the place where we have used it, and it's going to throw some errors. So if you see the energy is coming from products models, not by two good products models that pie. So in short, off documents just see e commerce students. All right, now, if you come back here, yeah, now it will be loading, and it says again, summary Zucker, What is it? Envy is that it's just tags. Model stockpile number tags modest up I should have products here. Se e commerce if you come back here, See nights reloading. Yeah. Murder said this way. We have actually defied all the instead they're getting so in our util. Start by is actually existing in economists. All right, so now we can actually get this two orders. Right? Come down here. So before that, we have to do something. We need toe. Define a new function here so that you can actually get the random, unique Alrighty. So let's do that. So I know what we're going to do here is create the function that can generate the unique order 80. So we're coming here, and I see it you need are I do generally tonight. Here, we're going to send it instance. Go on. So we're gonna copy this thing bested here, of course. Indentation. Yeah, I think it looks fine. But we're actually dealing with already not its luck. So we can go ahead and remove all of this and see order id Random string Generate. Yeah. No. So we can actually go ahead and say upper as well. But they're gonna be, uh, not doing that now, because so everything fine here So we're gonna change a few things here. All right? This one will be R E d. All right, so here. Okay. What we're going to be is actually changed this or new I d grab this and said Are you right ? Yeah, I know. It looks strong. This one exists. We don't need all of the states, right? Just exist. We're gonna run. The function of game stands on nothing like this. All right, This will be a unique art alive. Yeah, if corrupt eighties shoot for, isn't it? Everything all right? I think this one looks fine from long, so you can actually go ahead and use this thing. Is there anything else that we have to do here? Not much. I think we're finding this. So let's go ahead. Let's just bring this unique already generator to a moral struck pie. So they are going to orders, Not morning. So he everybody imported from orders. Doc Martins. Sorry. Round E. Commerce dark. You tills import. Yeah, already generator. So what are we going to do? Is also from Xanga, your tv dot more than start civilians import. We underscore. Sit. All right, So what? We're going to do here is we don't actually. Do you bring See you ID. What are you calling? Yes, See what Right. You have a sender. We're gonna have any stands. You have our eggs. And later he works. So are you All right? So what are you going to days? We're gonna check with that? It has, uh, if not stands order and score. I d Then even I said stands order on the score 80 You could do What is it we call really? Generator that. A sale listing. So now you're gonna connect it? Three underscore. See you. No connect. Send a card. So you need to send an instance into this. We're gonna be this. No, save this. Uh, so we can actually calculate our shipping darling total as well here, But let's stay consistent with what we're doing here, right? So important. Sweet models. You see eso in carps models? We have actually done some nothing. You see, there is easy and tempting when more community Minnifield exchange reaction to calculate in the country. But here, nothing like that. You're gonna only do it so that it doesn't actually affect any other things. So let's take consistent that what we're doing? So here all that we're doing is, uh, leaving it an already. So if you want the character doll, really, every time you can actually go ahead and say, like, can come in this out and being this back so that every time you you saving already can be can get a new But if it already has Doesn't have because we don't want to do it. So let's go ahead and check what happens. I know. So let's work. So I said it came back here. I refreshed it. So I'm going to give it the water cock. I want to leave. Everything does seem continue Titi All right, this did not get anything. So let's go ahead and check what happened years. So I think there's a problem and this but we've been stuck pie. Maybe this must be go here cities comeback Yah, Refresh it And I want 10. No, why is nothing happened? Uh, it's getting everything. Well, it's think so. Okay, so let's go to our morning start by Yeah, So what's the mystic that's having The problem is against and got It is order. That's a big, big mistake. All right. So let's come here. Let's go ahead and add in order here. So if I continue dating you see, we've got something here. All right? This way. We can actually give him already. That's you, Nick. And ran. So this is how we're going. So let's move.
71. #314 Calculate Order Total: okay? No, We have finished the generating already. So what's left Generating the order total. So now that we have to calumet the prices of the items inside a car trigger that is linked to an order All right, so we have to do that part. Pull it. I have already mentioned that were actually handling hope to calculate Thorton here. Right this minute of many. Change receiver is actually handling all the actions that is regarded, uh, who subject any changes that involved with the cart. Or it calculates the price off all the products, adds them and saves it in the instance. All right. So we can we must OK, the generally instinctual he used to create something similar for order and save. It's right here so that actually we can work it the cart and order. So that's not possible, because as soon as we write orders dot modern's all right import order. See living Emery's You see, it's reloading. It will say cannot important in order from largest that models. Why? Because there will be a reverse. Because in orders we have imported cock. All right here in cart. We're actually importing order. So then two off the models are different to each other again and again. It's gonna cause some editors. Uh, that can really mess up the entire project. All right? It can puzzle that bear amiss signals. So that way, we cannot perform. All right. As soon as we remove it, you see, it would be start running. All right, So what we need to do here is actually the top. Bring any car ordering him into the car. We can just choose this card similar to actually creating preset border. We're gonna create something like forced ship. All right, so let's go ahead and do that. So I'm adding something here. I'm running. Good post. Underscore. Same. All right, come down here. I'm going to create a new C or function. It will be diff Khost save God. Thorton. All right, Here we'll have We'll have cinder instance Start dogs coma. She key works. All right, so we're gonna access the cut object. You could do stands door. So he stands you here. We're gonna get the cart, daughter. All right, so here got on the score. O b g dot Jordan. Right. And then the card i d card underscore. I d equals two card underscore LBJ dot idea. Okay, so now access the query set. Yes. Equals group order. Dog objects, dark filter. And here, card underscoring the score ideally equal to God underscore 80. All right. If curious dark count equals to one, then we have order in this court. Will be J equals two guests. Start first. So first and then order in the score. Wait. We need to get a function that can actually update the count. We're gonna say something here, Dave. Mission off dysfunction update. Underscore Total. And it's gonna excel. And here is just returning it. But later, Bigger. And I had something that so here. What? It it's gonna call of the on this court order. All right, that's good. So beneath this washed underscore, C dog Connect wants to got totally comma sender. Equal toe cut. Now, Sadie. So we have a link between these two objects already. We have the link between closer and this definition and function. These two are gonna communicate. All right, so all right. So another question arises. What is? So this thing will update the car order when the card is already exists. What if the card is not existing. Which means what if the card is created for the first time? So now let's take care of that. So if you come down here, All right, so that's right. Another function order. And you have sender in stance. Shut our eggs. Key works. And one other available that we need to have here is created. All right, so that's going to say what's actually happening. All right. And here. So now, Because if created, uh, great, let's updated. Okay. You got said you stands dark. Did underscore. I thought it all right. And now let's connect this whose standard school see, not connect Whose order comma sender do now it's order. All right, so after you collect this thing, So let's go up here and finish this order A big part of function. So what we're gonna do here, just take the cart total and says, God, card, don't. According how can we get this? Because CART is linked because the foreign, so that you can actually get busted after the shipping, Don't them equal toe self god shipping on the school Children and you on the school talking Could do. Now we can add those things less shipping on school bottom. And here's self dark Tory equal. Go you on the school, Gordon, and then save this. All right. And after the last written the Newport right after 70. If this much probably work because it's watching if the creative falls which doesnt created are it has any other think? Except for creative? What it didn't say it will update the card. According to dysfunctions, if it's created for the first time, it will perform dysfunctions. We can actually say something like the doctor is in creator, but it's not gonna be much more convenient. So let's right, Prince State Mental that you can actually see what's happening. All right. And copy. Listen here and said dating. Go. All right, so So let's straight out. All right, so I'm coming here, and just soon, Continuities signal receivers must be khalib. Where is this headed for? Coastal scare. Composting will say I stood happening. Okay, this one is pretty underscores. Say all right. Oh, right. Is there some kind of ness has happened? No, this is a portion. Scorsese, uh, Lance istea. So let's run our super again. What does it see? Yeah. So is Very. So let's come here. Fresh air. Continue. Let's see whether the total has been changed or not. Well, so let's crushing delete this thing. I'm gonna quit in you order, I would say the team continue C This has been changed in the shipping daughter has stayed correct. This goes off the card. 13. Based on what? Cards inside. All right, This way we can actually influence how the alright is changing and we can have this random and unique already. All right, this is much more convenient. All right. Uh, what it So let's go ahead and look at this. You see? Running, updating dirty and again, right? Why is that happy? Because off way we have structural court. First it was running created? No. So it's gonna Dettori and go here And the next time. And here, when you call Oblate Total will be saved again When it said after posting comes again here and then it stops here. All right, so if you just place this part off court and though here again you will see big error. You see, this one leg is gonna hang for a lot of time to see, is it? And you know it discerning a building, right? And it's not gonna cover from it. Because why you have created a percussion here, it's gonna look at on the same thing again and again and again. All right, so I changed that. Let's just smooth this thing now. Save it. And now to finish it. Yeah, now it's fine. So this goes off the cart. All right, so and when the user is actually signing it and the car goes off the session And what if the user is logged off, then the card will be no longer available to the order because the session is mean on session is clear and then the session is cleared. The order cannot function as they may be expected. So that's a question for another video, So let's get ahead.
72. #315 Checkout View: Hello, guys. So this is the time where we need to actually go ahead and create the check off you. And one important thing is we need toe. Remember? How would we have laid the roadmap to the check out process? All right, if you come here and chick fil a checkered process you see here from car to check our view , which means it must start from here. It must start from this card to the chick Arcview. All right, so first get longing right, lording over the products. I'm gonna add something straight. Yes. Uh, yeah. So now I have few products. All right, so I want to have a check out for you. So that from here, I can go to that. You all right? Uh, it must start from here. All right. So it makes only sense we have If we started from the cart. Used are part. It doesn't make any sense if we start from here. Sorry. Not for products, but orders You start by. It doesn't make any sense because there is no point of reference from baby A coming. Right. So we're gonna go to cart. You start pie, come down here. All right, I'm gonna create, Do check out home on this card, take request, and then we're gonna Britain render on. First, it's gonna take the request, and then what it will take It will, like cards, slash home that. Sorry, not home. Check out dot exterior. And then and then it's going to take the contests context. All right, so here, before returning it, we need to find the order. That's gonna be passage to that chick Arcview. All right, The first thing first we need to actually get the car so the car will decide which order. It's associate ID right here. We're getting it. And then what else? We need to get the order. All right, So order and this car object comma, New order Object is equal. Wait. Really import order here? Yeah, from artists, not moderns. Fork heart it like to come down here. Order Lord objects, dog get or create but dismissed it. As has it foods in the order or the model. So we don't have to create it again. So card equal to cart in the score. Object. All right, so here we're getting it. Alright. So, uh, let's make this a little easier so that we actually create this more disorder model only if the cartel been created newly. Alright, If not, uh, you're in the score object, and then we're gonna actually create. All right, so this makes sense. All right, so we can actually put our order object? Do not. All right, now we're gonna send this indoor or object into the context Object. All right. And then we might see there's order on this. So now, in the context, we have the difference to this part. All right, So, um, that's just changed this team toe cart in the score created so that we can actually understand what's happening here. Car on the score. Created. Yeah, I think now it makes looks fine. So this is going toe disorderly, creator. Only if the card has not been created. All right, eso we can actually brings some changes to this so that All right, so let's do those changes. All right? Now, everything looks fine, but we need to change a few things because we want oh, born toe, get a car right here all the time. So I think there is a way to actually prevent that. So what I'm gonna do is and went out a guard on the school created, uh, or cart underscore. Object. Uh, no products, not. I won't equal to zero. Then they're actually going to redirect. We actually going to use this This read at a copy? This come back here basic. And this will work if it sent else. All right, dignitary drugs. All right, so we're actually not going to denial creating creation off the cart object. But if the card is newly created, our items inside the Carlton zero we're not gonna go for the order check out. We're actually going toe written itself with same home, Carter Page. All right, so I think this looks very much fine. So let's go ahead and create. Um, got hitched him and Chico dot HTM. Someone create your coat, Actually, um, yeah. Okay. One thing left off is we need to actually create. You are linked to the view. All right, so here we're actually going toe copy. Chicagoans. Carpet is we used. He says. Well, all right. So here it would be. Check out, check out on the square home, and even here, it will check out. All right, I'll say this thing. Go to the HTML page. We're gonna simply copy all this here on using did here. But I guess we're gonna delete everything. That's me. Why? Because we're gonna put our own things here. So nothing. But we're gonna actually just bring some stuff that's belonging to the order model so that we can get a good understanding. So far she is. Well, I say which part off the competent decision belongs. It's going from check out and then we're going to say, uh, God, daughter, it'll be from, uh, object. Sorry, Dog Carte dor Jordan. All right. The next one will be shipping, Dr. And this will be from object. Dark shipping on this. All right. Um, And what if this is the last night? It's orderto or a total B. How object Dog daughter. Now it looks fine. So what else is left? All right, now we need to go to the home. Ready, Children. The card condone here. We can actually create the check out, but it so that it going Ah, navigate to the chick over Alleged human used Justine create a new item here. No, he should off. All these things were gonna create a button you stayed so that can be used to navigate. So, uh, Merlin Todo where it really strong you are cards. Golan, check out, uh, one, right, I think. No, it looks fine. He's just trying. Actually, uh, maybe we need to change the way these things are. Yeah. No, it's fine. So we were a class. What? It could be the DnB dandyish look, median dash with success. Uh, then you the butter the name check out said this thing if you see here, the surrounding Yeah. Said there is rain. Come down here fresh. Eight. We can see that you got, but all right, let's change. Do not block. Just energy. So now come here and flesh it. Yeah. Now you can go to check out. Okay? It says there is a dissimilar addition. Problem? So one of these is dismal. It's handling the error. Didn't score total line 30. So Ah, so what morals here. So one of these is decimal, and one of these is actually worked the card of school total. Is it Carter on the squad total? This is a dismal field also. So why this air being raised? All right, So let's for now, converter and do suit running. Yeah. Come here in a fish. It? Yeah. Now everything looks fine, but the order that is not exactly this family. All right, now, because we have converted toe typecast, ready to indigent and show distinct for our purpose for whether the check out is handling everything. Vallon ours. But we need a way to actually revoked. They're actually make sure the addition works as we expected to. Not how it's supposed not how it is actually being done now. All right, so let's actually removed. Wait, let's handle another guest. So what if I don't have any products? No, the card is empty, so but But it is not viewed. All right, so in this way, we can actually think so. Reporter. Now you can see it. You go. All right. So let's go ahead and rectify there that we have seen and do some things that are helpful to our project.
73. #316 Math with Decimals and Floats from Python: So this is not the actual day off. Ah, on eradicating the error so that we can actually see a good detail off our new daughter. All right, this is not the right way. All right, so we're getting it off this, uh, So we need to find a way to actually add these Both numbers. All right, so let's go ahead and check what happened. Factually. So, first of all, I'm goingto my show. I don't manage that by shell. So first of all, what I'm gonna do is I'm gonna actually see what's the pipe off? Eso is one degree. So night off, one with me is in. If I go and check for this, let's see what happens. 23 Just float. Not dissimilar. All right? It's particularly float. So why is it different? Because from decimal mismo here, we're going to say ABC equally dismal. Oh, I want to Yeah, if you CNBC This is where the dismal actually appears. This is kind of an object rather than just a simply type. All right, so Ah, you see? You see, don't decimal decimal. So we need to actually add this decimal and the floor all of you have actually mentioned for every feeling, all modern, both car can order. We have mentioned it as dismal. They're getting another from Florida and this may tradition, So we need to find a way to prevent dissenter from obstructing our project. So let's go ahead and introduce some new thing. So from mad import, have some. So what? This thing we'll do is it's gonna actually add different Ah, right off. Valuables like water mean by different types is a floating medicine. That's what we are looking for. All right, So if I say ah, now, right now, ABC is dismal. And so let's go ahead and have some. Well, ABC, come on one code 10.12 You see, if you can actually see the result here now, if you see I want I want to set it inside. Uh, in answer. Yes, I see the answer. It's there. And if I see the type of the answer, it's float. From this way, we can actually remove the error from actually creating the distance where project. All right, so this is a very, very good veil of handling these kind of Ferres. So, at some is from math library. And although we have given every field is decimal, feel the still getting float, all right, Not because we have used floor. So during the importing off, more from one thing to other are from addition off the other variables in between them. We're not quite sure how this error has occurred, but we have sure off, whatever it. So we can actually, uh, get rid off it. That's what we're doing right now. So let's go ahead and perform this operation. So let's use this function to make the changes. So and in the great total for everything, what I must do. You called math Legree? Yeah. And come down toe data school Children. So here, what I'm gonna do is Mad Dog as soon on move this. You see service, uh, check with this. It was laying. Yeah. So if you go to the car, check out this. Probably show something on le goat. Uh, Come here. Some takes Exactly when I grant you. Okay, This must be entitled list now. Saying this. Come here lording. Continue. He had the card. Is empty sound coming here at to the card. If I check out. See, I'm getting there isn't 1 $20. 98 So far longer out again. Oh, sorry. We don't have the longer feature turns or broken holes. Slash You didn't flowing, right? Yes. We're logo Macchia. Refreshing the products. The cart is indeed some of the products. I would add this to the car. Right. So when he check out, you see the number how it's actually presented. So what? It literally is, I am going to actually format how this is being appeared. All right, so former and school cordon is going through, man. Oh, you on the score court. Come on. Yeah, we'll see this. Used this. Should that? Yeah. So now come here. Fresh air you can see only do off them. Very thanks. So what? Well, done again. Yeah, Fresh it. It's gonna show someday my lover again Come back here. The card is indeed. So I had a product. Yeah. Check out. Yeah, it's working. So one thing you can actually be sure is no matter how the total value is being shown here , everything is actually starting. Only policemen places. All right, so we don't have been bothered by that. But here previously, their price shown here is not so compelling because it's showing a large dismal value. So now that we have former Italy, it's being should. Now that we have family, it's been surely very clear. All right, so you can go ahead with this. But before that, we're gonna actually change it in the cards process as well. Let's head over to the cart. Moral stop I And if you come down here, there's something we can actually do. The last time we have actually used 15. But let's say we have some eight question Gartin person or corpus attacks that lie to us. So what if we say something like $3 fire nine eyes at it tonight? So come back here. It's running. So I'm gonna go to my car. Uh, I'm gonna raise on when I had this one. Yeah. Now, if you see that is an error, so you can actually do something else, so I'm gonna say no. Yeah, And so again, well serviced ing back here. It's a fresh ing. Now, if you're pressured again, you can see it's actually calibrated all the things, all right, showing the perfect reason you're going to check out. It's okay. So what else we could do. So this is actually Brazil ing in the float for But if you want to actually see this in the decimal format of binary, we can do that too. From a small, poor, dismal. All right, so you use this, he should afloat. We'll see it is back here. Trish. It are. What I'm gonna do is I'm gonna remove off them on this on a this big, you see? Still operate. I won't add this. Yeah, you can still see the total is because not very. And the card is actually working. It's one main important thing is you can actually pretend by adding a shipping or building . It was here and pretend that we're actually making an order checkup. All right, so we can pretend it You're not actually doing it. We can pretend it and see how it actually represents and how you can go from there to actually making it. Check out process work. All right, We're gonna pretend doing that by adding a shipping address from here. So if you're gonna take up care about that in the next part, So let's get ahead from here.
74. #317 Upgrading Auth: So we're going to include authorization for check out process. But before that, we need to take a stake. A off us multi. Actually, it's very important. What is it? We need to make sure that our logging register, which means the organization is a distant manner than what we have done. All right, We do not have the longer procedure working wrong and unity improve of this organization works. So let's go ahead and do some kind of stuff. All right, So what I'm gonna do is I'm gonna create a new app, actually, so a lot of things here will be changed now. So first in first, I'm gonna come here, and I'm gonna create in Europe Brighton management by start, up accounts. All right, So now the accounts has created the first thing source. I'm going to the project. Said it starts by. I'm going to give my accounts up here. Yeah, now it's all right. So what I'm gonna do is I'm going toe copy my views dot pie. Come here. Take the log in page out of the register page. Corbett, come here and I paste it. Yeah, and also wanting is really need to actually create a new file forms. Forms by. Yeah, Come here. Form. Start by. What? I'm gonna grab this log in form and we just a farm. Come here. Yes, save it. And we also need to make some imports here. All right, so grab these things, all right? I don't think this one needs using a model, so I'm coming here now. Basit here. All right, so now this must look good. All right, So what else is next from Houston by? You need to actually make some imports here, too. So come here. I'm grabbing all of this. How come you start by? Yeah, copy this. No one will be things we know we don't need conduct for. All right. So more this things. Okay, so another thing. So you go to the euro step by, and we don't need these two here. Right? So how do these things will come in for us from Cohn's not views board? Yeah. Not in page and register pitch. I think those things would work here now. Yeah, on. Is there anything that is that we have left out form? So we were gonna get this contact form right now, but I think it works. Fine forms. You're stuffed pie on anything you do. Let's go and check if there isn't a girls and what else is left. So we need to important this complaints inside the art, logging and the register. So what I'm gonna do is I'm gonna grab this to cut them on, creating new template here. Templates. Fuller on inside. Great. Another new folder, The name account. So inside here, we're gonna pissed. Yeah, so here. We don't actually need this art form there anymore. So I'm gonna related. Yes. Yeah. So is there anything else that we have to really round? So come down here. Insure off art. See Counts on something for here. Yeah. So you come down here on before it? Yeah. A few runs over its's logging form for me. Comus slash warms up. I Okay? There's something we need to worry about. Where is this? Enter being thrown. You start pie lane five. Uh, yeah. These things are not anymore. They removed You Come here. Now, if you see. Yeah, this area is running 1000 years, so we have offered to choose everything to its place. So everything is sick, right? regarding how are Cran slur between e commerce and echoes for the log in and register pages and the views and HTML pages has been done. Everything fine. So let's just test it out. Yes, I'm coming here looking. Yeah, I'm gonna get just two. Yeah, that so I can actually used it. Alright, so nothing is problem. But one thing we need to have theories. Have you never were? Check out. You need to make sure that, uh, the user is authorized to actually make an order because we have to know somebody data or details about the user who is making order so we can actually make sure that the user is sent to the check out after logging again. So I'm going to do something that you're gonna follow me doing it. So if you see here, we have actually an argument resistant. Yeah, this would look fine, but there is something particular that we can actually do about how to actually get blogging from check out and had to go to that shikaka game. So let's try it out in Sunday so we can actually get the details about the way we want to actually head from the log in page. So how do we get those details? All right, So what I'm gonna is first thing for this. I'm gonna come in, decide, and here, So I'm gonna say next on the score Equal. Do request. Lord, get door. Get off next. All right. You can get the place where we want to go. In this manner. You can also get it using post. All right? You can get caused yet as well. All right, this is something similar to actually doing from ah, logging. All right, a lot. And we do not blogging used laundries post as well here. We can actually escape in this way, we can actually perform. All right, So how do you actually go ahead and make sure that these you are instead of getting for me to get a post regarding the data that actually were getting so we can actually pass A You are into this getter post. They're Biggles off next and access of here. So how do they actually make sure that the urine star safe? So you need to import something from xango. Not you, tins, not. It's to give you import is See if you are. All right, We're gonna use this one to actually do the mind whether we actually make we can actually make a request using these debates. All right, so below the logging. So what we're going to do here is, um if he's safe, you are on. We can say next underscore post our next. Anything we can use. So let's just so we can be my hair. Which one we're gonna actually use, really? Underscore posed is equal to next on the school. Oh, are next. Underscore Post. All right. Just see are not or anything. All right? Which one is available for us? We're gonna get all right. So here, instead of next to the school post, you can actually say really dated on the score. Right? This is not board his spot. All right, so come down here. Yeah, on the school pad. Comma request door. Get on the score. Host. Yeah, So here. We're going to say, Really, I need it. Read added on this court, it's not Then you know, Redick to this pitch, which, you know, always set. All right, so now this works fine. All right, so let's cried out and check whether we actually getting anything or not. So I'm here, so we're clogging. All right, So what I'm gonna do is I'm gonna give next equal toe. What is it? Cards Smash. Check up, and I'm gonna get okay. We you actually need to perform something like that. What I'm gonna do is I'm gonna lovell test So next, equal to card slash Chico. Yeah, We've got the details or logging. I submit. We're not going there. What happened to this? Okay, maybe we have given some wrong details here. Next. Equal cards check out. Yeah, Here. Yeah, as I submitted. No. What's the problem? This must work, right? So let's straight one last time and see whether there's anything bones problem. Plus, come down here and check. Um, means this cards Wait. Car. Let's just add some means. Okay. Discard slash. Check out. You're gonna grab this. Now they're going to log in and say next, equal through this. Now it will work. I hope it works. Why isn't it working? Flashcards Come one and password. Now let's see. What? Okay, So there was no air involved with, so I just did not correctly. So if I say like cards managed, Chico. All right, on. If I dyed my using me and password, then okay? It did not resolve anything, So let me do that. Go here. God slash. Shake out. Right into. Okay, hysteric. Okay, here it is. Next equal do card slash Check out and it is It goes to court. Discard is empty because not put any details. So this is one way of actually saying how to actually get the details, the veil, so we can actually go ahead and make sure that it does not result in a head off for projects. So let's modify it in such a way that we can make best use out of it. That's how it's actually working. So what else? We can do it now. So the northern next terrorize getting. But what about disposed that? We're gonna look into it so we can actually remove all this print statements because we have proved that thes all have been verified until now, so we don't need them anymore, So Okay, I got rid of all of them, okay? This is just testing purposes that I did later. So one thing that we can actually perform here is actually this logger. So how can we do it? We can You actually use the Xanga lager view that is actually inside this jangle country bar to use? All right, so we're gonna actually get this thing from there and use it for us. It. So, uh, to really do it really? To help our your own start pie. We're not the search e commerce project. You will start by. So what are we going to do? Is from Cingular country? Got out Reviews in food. No. Go, have you? All right, So we're gonna use this view and create something that is similar to this basted. Yeah. Here, longing unites love out. This will be longer new. Sorry. This is going to be Are you as underscore view? And here we're going to see now. Got all right now seeing this thing. Oh, we can You should actually make sure the distinct actually works inside. Didn't have but come down here. Get the name of it. Is a lago Klink right here. All right. So before that way should actually board this year in from there, right? No, it's love out. It would be long gone on the school you're now. We're actually using this. Come down here is the longer you're out. Okay, You can actually change this entire thing on that. You don't actually need to have this active, but I'm just minute right there without changing anything. So how is just being working right now? So it says you stop line. Just a big good. Yeah. So was running very nice. So if I come down here fresh it home if I hit love about now, if you see them actually being taken to the admin side, But we have been actually loved out, All right? So actually, go to my home page here. We've been loved up because we can actually logging. You can see the long All right. So it's rough going toe the advance. Are you need to come down here. So how we can actually soon be going to change it? How baby? Actually getting redirected. So I'm gonna use distinct go related, Ural. So come down here, go to the project settings got by. So I'm just coming down here, and I'm gonna use just here, so we just need to specify very We need to go Love. I said this come back here. Uh, it's unloving. Yeah. So where am I going? Great. Something that stopped working? Yes. Continue. You said I've been lovely. I've been taken to the hole. It's it s I love about you. See, I've been digging to the logging. So from this, we can actually go ahead and just suffer everything that's we need my logging and lager and registrar working perfectly fine. And we can actually check for the cart and border the chick artery as well. So we have done everything quite well and observed This video has went very fast, but you need to stick around because this is an easy part, yet involved in quite some new things. So take your time and let's get to the next.
75. #319 Billing Profile: now we're actually going to the next step. And what? Creating a building profile, Right, Vegan, actually create a building modern profile so that all the users are actually making the orders. Can have a building profile associated with All right, So, fasting. What we're going to do is we're gonna create an app by Don, managed by stock at Billy. All right, so now our building has been created here is and here we can actually create our building more. It's all right. The main reason we have actually created another individual is because we can actually have building inside the orders or artist inside the building. A club them both. But in particularly orders, APP is gonna handle the processing part off the order making while building actually handles all the process regarding building off the user artist. If you see here building up a comrade particularly deals the building, but orders use the building to actually do a lot of other stuff. Right? So we need to actually have a 1,000,000,000 profile. You can go ahead and add them both together and create one, but talk to your choice. So I'm using a building as another modern another app, Right? So what we're going to do here is we're going to create a new model here. But first, let's go ahead into settings up. I compere. I'm going to include it here. Yeah, Siri it back here and let's create our building More class building, Pro slide. Modern start, Martin. And here we are going to use the foreign T for user. Go on now, because two through comma Blank equals two. True. Also being need to give this older models because, kid Yeah, After that, we're gonna actually use the email Martyrs Dart he made field. Yeah, And then we're gonna actually do on active key mortals. Dog bullion. Field default will be true. And then we're gonna give time. Stand for it equals two. Marlon's did dine field I don't know at equals to cool. And then you can also give it update part. All right. A lot of during spoke Cody with a date. Yeah, no two schools, but are underscored now. Not that I know. Save the steam before that, We should actually both distinct. All right, So what we're going to do here is from xango cons, gold settings. And here we're gonna get the user easily. Quality settings. Lord User Martin Service. Yeah, So here we're gonna say dear, We know what? This morning. What dysfunction? This is gonna come what they say, but it's gonna present the item or the record of that entire room. All right, Uh, this one, this one pretty much captures all the fields that we need to, uh, hell in a building profile. But one important thing the is by email can actually have multiple billing records when the user can have only one. All right, what if we say John the rate off john headed off Djimon dot com can have ah, hundreds and thousands off 100,000 off blink little fights on right, because he's an anonymous user like kind of thing. But when a user John can have only one building profile, all right, so this makes a lot of sense, because a user, when he has been registered, he cannot care a multiple building profiles because they're all gonna be gone there are gonna be become invalid. All right, so it's very, very particular to actually see the u seven years registered and bring all the 1,000,000 profiles under one umbrella right. So the dining mind, Let's get ahead. So what I want to do here is I want to create the billing profile for every user that has been created. Ross. I've been whenever he's created. All right, then, user registers. I want him to give a 1,000,000,000 profile. Ashwin Eyes. He gets in use already. All right, So we have you do have this user foreign key here, and we do have access to the use of modern. So let's go ahead and created using signals that we have always done under now. So what are we gonna do? You gonna in court? XanGo No, de me dot mortals, not signals. Import pushed. Underscores. See? All right. So we're gonna be using this for that right here. A new ah. User created receiver. See your and he has sender, and you stands and our eggs key works, and then they're gonna have another variable beaches with the use of this creator or not. Yeah. So his who you did death. We don't say Building profile door objects. No. Get or create. He was very quick. Do in stance. All right, so this will be done here. So now what we need to do here is Boston's cozier God connect. And here even used see we're function and then Sander equal to use sinister. So this is very much finishing how users can be created. You see, we can actually go ahead and say we're actually creating profit instruct billing profile. You can say that, but you haven't specifically say its ability file. And this is how we're gonna create a 1,000,000,000 profile for the users under stances. And another thing, what we're going to do here is now Vic an alto. Give the user a customer item E i d. For if he's having some third party payment pats like stripe or Braintree. All right, so if he does have any coat, body payment processes are pads that he won't, and I d We can actually link it here and make sure whenever there is a payment. Um, the situation we can show him you have designed these are we can actually make an ap request whether these but he has an account or we can actually proceed with this payment procedure. All right, so let's do something similar to that, So I'm gonna create and you metal here I won't building. This is not exactly the final way off actually doing this thing. But I'm gonna give a little preview off how we can actually do this. And all the arguments are seeing as this. Yeah. And here, if created, we're gonna see every send you scribe or bring me. So this is nothing bird of a simple statement. But actually, what we go but will be able to be something, like a peon request or something. All right, here, then, after we get you can actually use instance Dog customer. I'd be equal to new i d. The one which we can get and then we consider in stands. See? All right, this is pretty much how we can actually make, uh, uh, stripe of braintree payment process. Link it to give by giving the customer ready to the user and seeing the idea off hits striper braintree payment and saving it to our profile billing profile. So I'm gonna come into So this is just a preview of how you can actually go ahead and do it , but this is not the final way. So the that in mind we can go. So now that we have a 1,000,000,000 profile way of setting up, and we have the signals also, Senator. So let's go ahead, Miller by and what? We're going to be a raise. You know what we're going from dark mortars or 1,000,000,000 profile on, then add mean outside. Just, uh, building a profile. All right. That's so after doing this, come back here. You need to make migrations by Don. Managed that by make migrations. Yeah. And now, if you did, by done manage. You know, I my greed. All right. We want to include something else here. All right, so we want to create a one billion profile for one user, so we need to say something like unique, So unique equals toe group. All right, so now we can go ahead and say migrations. You see, if there is some error means from here it is setting a nickel to crew on a foreign care. Same effect off using want one feet. It is usually better served by want one feet, all rights so unsure of setting unique, equal and crew. We can actually say one. Do one feel and remove this thing. All right, We can do this minute, but we're gonna river back displace. But instead, let's just go ahead and do this for about a month. So let's see whether we have anything else left. Okay? My great. Yeah. All right, step. So let's get back here on if you're fresh. This thing we do have a son. No. So let's run ourselves up, Eitan. Manage, it'd be right Server. I'm sorry, Sever. Yeah. Now, if a shit we need to learning. Yeah, we do have the billing provides. Now go ahead and create a new building profile, including, like combine. Say it comes from the gym and calm and saying Continue dating. Now the 1,000,000,000 profile has been created for this user. All right, we'll see these things, and whatever it is, I'm gonna create another one for the same aecom one dribble, Gina door Koran. Now, if you say so, it is. Please. Caldera. 1,000,000,000 compounded This year only exist, so we can actually perform it in this way, or we can actually go toe oneto one field more this unique future. I'll say this. Come back here, Mick. Migrations! And now my great I'll see you resigned. Yeah, and I'll come here and he turned continue dating again. It says the same. All right, I feel about being profiles. We do have one on. It's been created for us. Right This way, we can actually ensure that all the bling profiles are actually limited. All the billing profess off saying user are live on, right? They can be multiple billing profiles where you use it, right? We have done a lot here, So let's come back here. And what are we going to see? Who is? Let's go To use us and clearly using and check whether, after creating user, can we get a 1,000,000,000 profile for him? Her. So I'm giving another user on the password Will be, uh, something like, I'm gonna give something here. The fight is passing this content. It will be okay. What it is. Okay, I'm just gonna get on this. God doesn't accept anything. All right? Now it does. So after grating it, it's gonna ask some other information regarding questioning last email address, but not right now. They're not gonna give it right now. What we're gonna do is we're gonna go the billing profiles. You see, there is one thing that has been created for us but it doesn't have because we're actually doing email. A self got email. We have returned this. So we do have a user, but we do not have the email. So we can actually insured by giving it a condition here. So it's created and in stands not in it on its border available. Wouldn't say email in stands, not email. All right, you can. Insurance on this single ensured that whenever used 1,000,000,000 profit excreted, the user must have about the profile off his user instance and also the email with him. All right, then we come here and check for the register. We do have the email company right so late on this over again. Yes. So if you see the our registration form has the email part, so we can actually created female, then we can actually get it here. So I'm gonna actually delete all the profile that we have already. Even this one water gonna do is I'm gonna create deleted. Yeah. So the dad in mind, we can actually rest. That ah user can be created by never using. The email is created. We can actually create a 1,000,000,000 profile for him. All right, so that's until let's get ahead
76. #321 Billing Profile in checkout view: Okay, guys. So now it's timeto locate. Create a 1,000,000,000 profile visible of the users through the check of you. All right, so what we're going to do here is actually create. I'll get to the views. Eso What I'm wearing, too is and went to the card use check out home here is really actually going to make the building profile visible for the users. All right, so there is a small thing that we need to take care off. Whether the users are gonna be Longnan are as a guest. Said it in mind on that, hurt that particular stage off the user with his lobbying user or as a guest, we need to show in the building profit. So first, let's take it off the logged in profiles. All right, So what are we going to do here is create how I'm really dude, as usual, user equals to rest. Look, user, and then we're gonna say, building profile equal None right now, so little we can actually change it. Write notes, and, ah, if you use a dark is indicated. All right, then we're gonna say bling profile. Do you can I said it right there. If you get one, it's not. We're going to change it. So here we can issue the context available. All right, Here, we're gonna sit object will be or the object and then the feeling before. Okay. Hey. 1,000,000 terrified. We'll see. And here in shop this we can actually share. What? The context. All right, now said this. What we're going to do is come back to check out ravaged email. So this is where we're gonna make up changes. All right, So what are you going to say he is, if not building profile? There is no being fired. Then we will see. Uh, the only she does have a 1,000,000,000. You can actually show. It's not. Yeah, I know. All right, So here, what we're going to say here is we can actually show him logging. You are continue as a guest. All right. So let's go ahead and check what happens here since I was running. Yes, about here, using longing pretensions. Now I'm lovely over the cart. Their products are now. So what I want is I want to add some product check out to see just logging. Continue. Ask us because there is no medical file. That is, uh, doing right now. Just long. Continuous guest. Even if we do have something like love out. No, you have a car that is more putting for add something to account. Yeah, after teach car. It's one long continuous because there isn't being profiling. Tragically, we can actually show this interview and managed to make some changes here. So what? Omar is the classic window corn. The swell on calmness. Me in there? Six. We're here to be on. Then what we're going to do here is class, because I do. And long What you gonna do The same food as this one. Okay, this your continuous guest. And now we're gonna put this entire thing inside. And I was next, Cinder cinder and said this Come back here and now, efficient. You can actually design Almost centre listed on the Gabba tries, but just really the center, because their border and also busy in the column sizes, so wants to be neat. Alright, So from here, we can actually put a logging farm here. All right, We can actually put a lot of calm and make sure the user gets to the logging process from here. All right, so we can actually do it. Okay. Here. We actually going to bigger logging from here. So for that, we already do have something here in accounts on. We do have the logging form. And also we do have the longing that HTML part. So we're gonna use these as a completes. But still, we need to create something you bring the thought of this long interest in. So what we're doing is copied this continent and create a new snippets Fuller. Alright, snippets and inside it really new file that form dotage. After creating this form, we're gonna bring this How some heart basic here. Yeah, that's it. So what we're gonna do is use the snippets phone inside here so that we can actually get it before that. What me to do is we need to go. You stop I And here we can actually bring the logging farm. So what are we going to see here? Is Ragin all equal Logan home and I really imported some coz our homes working for right. So here we can actually include the loving contact we have taken. Come down here. Yeah, another game. And he has been ascended to the context. Now, inside the trickle dot HTM other even included What? We're gonna see it go? Cohn's snippet. Uh, constant snippet slash farm dotage. It so equal. Do logging on the school phone. Yeah, I say this, um, Come back here. Fresh it. You can actually see that. Okay, this one is getting thrown down. So what are you doing? Good. Here is being it here? Now see what happens? Yeah, it's better. So we do have the logging farm and everything here so you can actually use All right, So in this wagon, actual prison loving and continuous guest hearts. Okay, guys. So now let's log in and let's see what happened re for that, we can actually do something. The previously What we have done is actually going to the car park before. We can actually Okay, now that we can actually go and save it. Sorry. You don't have to use that anymore. We have already used it. So next on the school, you are You could do request. Move. Absolute. You all right? All right. We'll say it is. Let's go back to go. Really formed at each team. Then we can actually include something here. All right, so whatever you're going to say here is yes. Next on this score, then Willing doing something. This type is here. Ah, Name will be next. Yeah. Next. And the value will be the u R L A v have passed. Matched. You are a serious thing. Uh, no. Go ahead and finish it here. What is, uh, next year? Okay, we need to also make sure that we are ended here. Yeah, although it doesn't seem anything but you come down here, you can actually have your What's happening are Hillary's on here is the next You are in the euro. That we want to go is card check out. What happens if we actually long it number. So come one I asked you see, here this thing is actually showing the same. But if you see the were actually in the check out all right, this way, we can actually workings also in this manner. We're getting to the check out process from the log. All right? We have done this before. Now we have out actual automated everyone, if you could apologize. See logging. Uh, come one Pastner. Yeah. People here in the car and check out. You can still see this money, Perry. All right, so even if I add something, I still go to the check out consistency. So because of the 1,000,000,000 profiling has been, uh, placing encourage e not incorrectly. They have shown it. But you need to add the billing provider. So that's go ahead and do that. So now if you come to our closet and corner of you, stop I here cartoon, you stop. I come down here, Mr by the heavier. So what we're going to do here is a include the billing profile here, so you can actually see what's it here? Yeah, we profile some building, not models. Come down here. What? We're going to Dewey's first important markets. All right. From reeling Mourners being aside here enabling Groupon dot objects, but get are created now, usually called user. And also he made quick use of naughty man because he has faced by that Bolingbroke file must have the email so that we can actually use it. All right, so that you can actually make sure the big rallies include her here. And let's go ahead and check it up. So our check out. Uh, I think you did not say something correctly unripe. So that's God or Chicago does anything would she got home. It must Goto tickled. Uh, What else could be it? Well, sort of. The cones, its form still more next school world. The next underscore here emitting get lover and a car. Yeah. Now the card is empty. When you actually use, get or create data creates a 1,000,000 profile or it actually gets but only created, so really will sign created serviced ing. Ah, Now she come here. No need to love us. Yeah, it is. A card is empty. Is your ads, Chico? Okay, each 10 shows. Just one thing that we have forgot right here is the action part. All right, so this one is actually hindering us from doing what we have to do here. So what? We're going to the series. It's lung. Yeah, and this is your next as well. So that come back here. Now if you go to someone and say Aspar Yeah, now we did actually go a rent logging right. The reason it did not appear as if he wanted it. Because I have a mistake please. Discoverable here. All right, The first. It must be done. If the user results indicated, then we can actually get is building confidence. So now I'm getting here. What I'm gonna do is in one of the car. The card is empty. So far, I had a product. Yeah, go to the Czech are now. If you see, I'm getting all of this. All right. So what I'm gonna do know is I will do logging to my echo. See, now we can actually see what's happening here. We do have all the details because billing profile has been accessed. So this is a somewhere factually doing it, so we can actually make it more robust by getting like user dot e may only if has an email . So because we need a minute, All right, so but right, we're not gonna bother about it anyway, because you would have wanted to be. And if you've already for the limitations, we build off. So going applied right now, this is what we're getting. All right. So with this woman and proceed to the next step
77. #323 Guest Login View: So we have done everything to make sure that the user gets logged in from the check out process to actually go to the building part. All right, so now we have to make sure that the user, when he's a guest, must be able to log in as well. So for that bad, what we were going to do here is go to the account from start by. So the same way how we have done for logging, we're gonna go for guest format with guest song inside it forms start form here. We're just gonna get simply only the email part. All right, come down here. That's it. Right. So this we're gonna go head before that. We also need to make sure that we have models, but let's leave that for a minute. But here, we're going to go for guests form. All right. So similar does the logging. We're gonna use What for? The guest from guest blogging as well. So what we're going to do here is, uh, make a method, So this will be a guest log in view. All right. So after that, we have important this We're going to use guest from the question poster. None. Conduction reform. This we don't need here, and these requests will be the same. We don't have a more feeding off them, but for here, we're gonna actually need it. Uh, now, this will be a medical form dot clean on the school data don't get emit. Right. So you don't need use uneven passport because we're not gonna do that. We no need on education. So I don't think there is anything that's beyond this story without d Sting. Someone cut them, so, yeah, I don't know. It looks fine. So even if there is some sort off redirection, Yeah, but whenever there is a, uh, you know, the guest from doesn't actually really active here. We must make sure that he actually registers so really need to actually said this one. So that's it. I think now it looks fine. So if there is anything else we need to do, we need to actually make sure that this will be saved. Insider models come down here. We're gonna say class guest, modern and modern. Start, Martin. And here I waas evening equals go more in store. You made feed? Yeah, and we can actually bring this. Let's go building models. You're gonna grab these things so that we do have the time stamp for them, right? So, yeah, I think No, it looks fine. Uh, yeah. No serious thing. We do have the email active of the Afghanistan and you. Another method that's gonna help us to recognize the objects that everything by this model redone says about the main. Yeah, Surges. After doing all this way, have anything to do yet? Uh, let's just use what we have done here for. Yeah, I think we need to go from here. Come down to here. Really? We should access what's over there from here. Okay, You need to get the guest phone because to guest form. Yeah, we need actually in court this because we haven't come here. Yeah, I think that would make sense. Is there anything else we need to change what I saw? After all, we have used guard email from the user from the guest user. We need to save his email car model. So what we're gonna do here is new guest. You mean equals toe our weight. Really do important. Worked from dot mortars, import guest, mortar, all right. So we're gonna grab this guess, Morton, Look, objects not create you. May equals to email. And then what? We're going to the movies. We're going to see him for decision. Question position. Oh, guest. You made idee equals two. Uh, not Yeah, I think No, it's fine. So we need to use whatever we have got here into the checkered buses. So now we're saving the user, so we can use actually this to get the access of email from the user World is already registered as a guest. So we let's go the card if you start good, Yeah. Here in the check out home, we can actually create a user basin where there is what indicator not. All right, So what we're going to do here is, um, access the email that present guest you may I d equals toe. Yeah, not the, uh, way have to use dot Get here. Get just email, lady. Yeah, and then we need to actually live guest. E me. I d is Mark None. So guest e mail object is equal toe. It will be something similar toe way. We need actually import that thing. So from Cohn's no martyrs report guest motto. So we're gonna use this model to actually access the guest Morel object here? Yes. Model objects dot Get or create. You don't have to create it. You're actually getting it ready. Equal toe guest email. I d door. That's stimulating. All right, then what we're going to do is we're gonna access the building profile, actually, or is created. But here in Shroff, illegal file being guest profile created on and and sure of all this, we can actually use the email. Write email equals two guest. He my lady guest he made object dot e me, I think No. Fine, it is fine. And what does we've got left to do? Okay, we need to actually modify something in the form form, but, uh, in the form, Right, HTML. So she come down here? So you're actually performing action based on what? What is actually doing? So we're gonna modified a little bit. So then I said, if action action in the score you are, then it would be action in the school, as it will be. Your log in Wirral log in and then it will be endless. I say this now what else we've got left toe. We need to actually go back. You are to go more grab this thing sooner to continue this case without put it down. But it stood off logging form. It will be guest form, All right. And what else we got? So you can actually say okay. Action on the school, Ural. Equal to guest register. Okay. It might be actually something different from what we're expected. Uh, here even actually sit. You are guest underscoring just as guest register you are. Yeah, I think. Now this is work. So what we're going to do here is actually used this. Go to the Urals, not by the e commerce. Come down here now. We're going to be hurries sooner long in mother. You're gonna see, right? It's something more similar to this. So it will be more likely as a sister. We're gonna see just gas. It will be a construct. You guest, long. And you? Yeah, So we're gonna use it here. It will be a guest. Just, uh, guest register. Yeah, I think this one was enough. Okay, we need to change, actually this one, because it's not in logging its a guest register, so you need to actually change it in the view as well. So come down to the cones of you guest register. You? Yeah, I think everything looks fine, but let's go to our templates, okay? And if you come down here to our building, not in the cards, basically explain here. So, is there anything else to Penny toe? No. So just have changed some things in the modern. We need to actually make migrations. Their nearest says guests on the school. You suffering constant abuse, like 23 underscored view. All right, let's go and run Migrations. Yes. No, man. You start by my great. Yeah. No, that's cool. Head and see with summer. Bring this over eternity game so that you can actually see the first being occurred when you're doing it. Yeah. No, let's go here on the clock. Goat. This But if you got a card, it's empty. So just add some. Yeah, go to check out. Justice could not parse a minder loving. Okay, it must be okay. This must be inside this Syrian. Come back here and fresh. Yeah. Now it could sign, but a guest evil form is missing. So did we actually send it in the context or not. So let's where. Check it. No. So grab this. I'm down here. Yeah. So if now you go ahead and refresh it, you can actually have. All right. So this manner, we can actually create a guest form and we connect to see you to the death of this. All right, so let's go to next. Okay, So that we have creator guest farm here, so let's go ahead and check what happens in the registry. So what? I want ABC 13 home. It's me. It goes to the car. All right. So what is our position in the me? So here we are, not yet loved it because we did not liking it here. Consider still seeing the logging just because we have entered as a guest. So if you come here, okay. We're not seeing our pro fire because off guest, professor, because we've added here. So over the agri by some Martos? Yes, model just that's more cities. Come back here of shoot. You can see guest models. Yeah, here it is. All right. You do have it. All right. But what happens if the logging all right. So if you come here logging, you got a card in connection to see something? Yeah, I didn't actually see some, All right, but this might be the product that we actually wanted to or not. But this is the one we're actually getting because there is some problem that might be occurring with the baby have actually structured here. We're actually getting the order object after we have loved it. All right, but when you're loving, this is the building profile that we're getting. But if you're not loved Indians, you suggest email. We're gonna get these profits. But what if there is nobody in sure of getting any error? You're just gonna c plus, All right, these other things that we're actually getting my dad's will do something about this, but not not right now, because it might go something not, but not as we have expected. So what I'm trying to say here is we can actually go out and changes however we want, But right now, this is how we're getting to go. All right, so with that in mind, So let's log out. So what I'm gonna do is I'm going to school. My card. I didn't check out. I'm going as ABC 11 Sub me. Okay, I did get here now. If I go to the guest morals you see, it's asking you to do log in again. Yeah, I have caught this. But what happens here? The user has taken up. What's inside is all right. This must be the problem on were actually getting to there. All right, so I got a 1,000,000,000 Provides. You have something here? It says he can't. What does he come? One having its cards see Telescope? Why? Because because of the baby have actually used the orders and the bill. Improvise. So my change in the future, but not right now, because that is not the whole concept of our process. So with this in mind, so let's get to the next part.
78. #325 Associate Billing Profile to Order: Argus know that we have done it. Written regarding out back to be being profiled, accessible on the checker. You We have done a lot of shit, all right? But there is some problem that we have discussed earlier in the previous lecture. That's whenever I want to actually create a building. Both. It must be started from card and short order, which means that we should not make an order until we have the billing profile. So right now we're making from the car. So we need to change a few things regarding it, so? So we can actually go out and make changes. So what are we going to do now? Is go to the orders. What is that by here? We do have to have the billing profile. So what are we going to do here is give the building profile Two artists. So what are we going to do in these? We should included some billing models or feeling so here. It would be martyrs for G. Just grab this thing. And then what we say on a school did it equals casket. I see this thing. So one little thing that we need to actually make sure is that then I'm recording actually arrested much, Martin the They must not be any other between the 1,000,000,000 profit and the card, which means there might be multiple orders with varying ah willing provide. But whenever there is the biggest one, it must not be looking to the cart. If you know what I'm just you know what I mean. But you can actually resulted by saying this acting quickly. Morning. Stop Wants active because two crew suggesting Come back here. Now. Let's go on. Run point on you. I migrations. Okay? What's wrong with that? Okay, default. Now come back here. Migrations! So it's asking some default. So what I'm gonna do is actually come here, and Lang equals cuckoo for now. So that's coming here with my reasons. Yes. No, I don't. My great. Yeah, All migrations are applied, and I'll come back here to the view. So let's go to the card's used Not by so here. We're actually creating order up here, but now it's going to be a little bit tougher than how we did it. So you cannot here. So what we're going to do is we actually going to make a credit set here. So it will be something like order us equals two. Order, not object. No filter car equal to card in the school. Object coma and attractive equal because we don't want to leave this thing. Because if there isn't acting that if there is, the card is inactive, They're supposed to become so now, if order in the skunk. Yes, exist, then we can actually update order. This kookiest did active sequence. Two thoughts. All right, so we ve candle it, but they're not actually leading with just making it wants as directed to activity. So if not, what are we going to do? They're going to actually create and order object order dog objects, not greed. The thing off high equals two. Hi, mama. Car equals two hard on this one. Object. I think that pretty much looks fine. Andi. Yeah, MODY, it's fine. So you can actually tested out by going here, But let's just tiu come to the checkered average time. We can actually do something that can help us do exercise some information. So what we wonder is object dog order in the score. I d and object God card underscore. I d So say interesting Come back here. If you were a car just empty. So let's just was long and see what happens. You come on, learn. We were caught in peace and had basketball. Great. Check out. What does it say it is? Give me an I. D. And it gave me a card number. All right? Have a basketball and it got the information. So remember these things now if I love all and what my card isn't because I'm logged off. So what I'm gonna do is I'm gonna add a telescope pre so if you go to check out, you see, it's giving a different I d. And last time in study, one I would study Do so. What I'm gonna do is I'm gonna add my son as our guest user well submitted. See, I do have the already the already and as well as the carpet. Remember it studied to warmer. Do you know who he is and what log in now, as I go to cart stew sauce, the products that have been added from the guest provide, but let's see what happens. See hatred and more than one order. I can do because it's has been added for that. Right? So if you actually go, you see, it says there. So if you actually come down here, I see Yeah, you got it here. So if you actually go to the cards, uh, on the cards, you need hers. Yeah, I'm now here excited to do, and she will didn't start. But when we come down here, this has a 1,000,000,000 profile. Because we have added you guys guessed so if you go billing brothers and chicken, you do have Oh, my. So in this man, I create a multiple objects, but it's still you see, multiple objects have been recovered currents the entire process, so we need to figure out a way to actually ensure that we can get the right things here. So what we need here is come back here, OK? We need to remove this thing. Syria, the black hair reeling. And I see it. It's relying. Yeah. Now this fresh it it's getting details. Yeah, it's generating. Tell you so. The Bennett already must be changed, but the card is similar to what we have seen. So let's lock out. So let's come back here. So what we need to do is actually say something like living toe by these north. Then way need to go all the stuff. All right? No. Seal this thing. Come back here for tronics. Everything is lying. Come back. It's fresh if you go to card says nd coming here. I'm adding laura car. I'm going to check out. It's just nothing, because there is no being like this. All right? Said me. I do have it. Study tape. All right. So logging. Yeah, If you go to car, check out, he gets me. All right, These are the parts that have been added, but right now it's some confusing. But if you slow down, it'll be good. So our project is right. Maybe actually expected it to be. So there are any minor changes that we need to make. We'll be doing it. All right, So after shooting guard, I've done some changes, too, so I will make sure that you can understand what I'm going to do. All right, So, first of all, just forget all the stuff that we have done under here, so we're gonna do some nutrients. All right? So you're gonna order access daughter critics it here by order, got objects not occur, building profile, building a profile and then card equal drew cartoons for object. And then also, we're gonna stay active vehicles to true. We're not gonna leave it up. And now, if order on the score, Quay said that coned equals to one, then order this court object. People still are in this country. Said God first. All right, it's not We're gonna access the old query said withdrew, ordered out of jets, not X Q. We explore the ones that are in billings profile, and then we're gonna figure something's card. Equal garden. It's called object Actor equals two. True. All right, So if all this goes Bell now, we can actually Oh, our crews, that God existed there anything that exists in this. So we're gonna see on order where he said Yes, I did. Active equals two falls. All right. From here, we can actually modify the order object that we have gained up there order in this club June equal to order dot Object got three. It you create anyone with building profile and also card equals two. This object how soon this thing come back and check with? Yeah, Also with running fine. So if you come down here actually not growth. So I'm going to my car. It's empty. So I'm gonna add a product Shoes at the card, and then I wonder telescope as well. Yeah, I got to check out. There's nothing. All right, So what? I'm gonna really that when I yes, and I would get the carbon, but they defend the order. I All right? So when actually I love in the order Must be change. All right. So long in come one. The password. After that, if you go here. Hey, check out You see the artist change, but it still remains the scene. So this actually expect book, as expected, me as this worked out, as they have expected it to work. All right, so if you actually go to the orders, there's gonna be a ton of them that I haven't actually in future out. All right, if you see here it belongs 34. If you come down here, it actually been study for as that, but it hasn't been profile, but this does not. All right, that's the difference we have actually gained from here. So we can actually make some more changes and making my more thorough with how we actually make a check out process. But right now this is we're going to stop. And one thing that we can actually make sure is that Thistle all can actually be transferred from here to water managers. So hopefully that that's what we can actually do in the next picture. Right now. Let's go.