 Yeah, now I'll open the views.tv file here, okay, so I'm using notepad.exe, you can use anything, okay, any text again, I'm saying, okay, I can find with notepad.exe and the file name views.tv. If I open this, I'll see some statements, okay, already prewritten, all right, we are going to create our own view, first own view, so everyone once they reach are able to open the views and they reach this point, okay, we'll move ahead because quite important thing now. Should we manually open this view file or is there a command? Anyway, you can separately open from Windows Explorer, I have used no command over here, it's our choice, it's not necessary that you have to open with the command only. Okay, I was unable to locate it, let me check it out. Or if you want, you can use notepad.exe and space, it will open in notepad. Okay, sir. Yeah, or anyone, whoever is comfortable, it's spider. So we have opened the notepad.exe, okay, so let me check if there are, then you have to open the spider and then from there open the file, like yesterday, how one kid showed, yeah, like this, yeah. And then kid has mentioned, all will see this default render is available, imported. And we'll be creating views. Sir, can you please show your terminals too? Yeah. Yes, yes. We have to create a view.py. Views, it's already there, you don't have to create, you only have to open it. Okay, okay. Yeah, it's in your app, library manager. Anyone finding difficulty can use notepad also, notepad.exe, space, views.py will open the file in notepad, like this. All right, so now we are going to create one view. So we'll write a function. I'm sure you guys have done Python course. So this should be quite familiar to you all. So nothing new, okay, just defining a function, based view. So the name of the view will be books. And we have to pass the request object. This will contain all the details that the client sends to the server. So this is present with all the views that you write by default, okay. It contains all the information about the client, okay, in the request. It will be quite useful when you get request post and all, as you all are aware when the form is submitted, okay. Yeah, then you all have to type along with me, okay. Now we need to return. Yeah, and you all know that Python indentation is so important. If you don't indent, okay, then it will get an error. After four spaces, I'm writing this written HTTP, epical art response, okay. And inside this, I'll just write some HTML. I can write anything, okay. I can simply write list of books, okay. Basically I want to display all the books in my library, okay. So once you have written this, let me know. Let's go check. Yeah, the spellings and all, okay. The caps, uppercase and all, yeah. Okay. Okay, we'll wait for a minute for others also. Anything done? Yes, sir, done. Done, okay. So now obviously we are using this HTTP response, okay. But we have not, okay, this is obviously Django's inbuilt HTTP response. So we need to import it. So we need to write otherwise we'll get an error. It will not recognize. So from Django dot HTTP import HTTP response. So HTTP response is not created by me, okay. It's already there with Django. It helps us to give a response, okay, from server side to the client side. So quite a useful thing, okay. So HTTP response you need to just import it to use it, okay. Okay, the most important thing right now is to save your file. If you don't save it will not be, okay, we won't see the changes. So I have saved, controllers will save or go to file and save. That is also fine. So save the file once you have done editing. Now we have created a very simple view, okay. And I now want, okay, this, okay, response to go once client, okay, is, okay, requesting something, all right. I love you, okay, yeah. Now the most important thing, I have created a response. This is fine. Okay, I accept it. All right. So I have created, okay, a response. I've created a view which I want client to see. But now everyone knows how do we send a request to a server? We need a URL, right? Once the URL we have, we, okay, obviously enter that URL in our web browser and then it goes to the server and accordingly it, okay, send us the response. Okay, so we can have many URLs, multiple URLs, okay. So we need to link a URL to this view. He went a particular URL is hit, it should go and call books view. This is our next, okay, task, next intention. So if we go back to the terminal and if I see in library manager, okay, nothing related to URL, we can create URL which is a very good practice. But right now we'll use already present URL. I'll do cd space dot dot. I'll come back to library underscore management. Okay, so everyone can do this cd space dot dot coming back to library management. Basic intention is, okay, I'll tell you what, if I do dir now I'll see, okay, the library management folder which contains all my settings and all. Now I'll go to that folder, library management. Okay, so now if I do dir, I see settings and I see one more URLs dot pivot, right? So all of you can reach this point. Now, since you're quite familiar with the structure, I think it will be quite easy to reach this point and you're aware of what the comments are. Yes, sir. Oh, wow. Yes, sir. I'm very happy. You all are doing quite fast now. Nice impressive. Okay, so we need to open this file. So again, okay, I'll open this choice is yours. I am opening in your what do you say notepad URLs dot. A lot of things are mentioned over here. Django is so nice to us. Okay, like it's already giving so many things. Sir. Hello. I can't see the library management. You settings show the settings. Come on. Okay, which is your current directory? What is it? Like what do you see over here before this arrow? So basically, I have opened my dir. It shows library management, library manager. Yeah, yeah, yeah. So do CD space library management going to library management. So you have two library management management written. Yeah. Nikhil done. Yes, sir. I mean library management. Yeah, now you can do dir and see URLs dot. Yes, sir. I can see. Yeah, we need to open that URLs dot. Yeah, we need to open it. I have used notepad dot exe to open it. Though I'm normally opening it using notepad only you can use any other editor. Yeah. Awesome. You have made a problem and say there is a problem. This thing is not rightly written. I'll show it again. Yeah. Okay. I'll show my views again. This should be proper. If you don't do it properly like typos or full stop or anything, it will definitely give you an error. So again, views for all. There's other two lines we added. We created one view named books and we just imported a response. Okay. From HTTP response from what do you say? Yeah, the Django HTTP module. Yeah. So waiting here for a for a minute and I'll switch back to the URLs. Yeah, you need to go back to the terminal in terminal. You must be in library management. Okay. You need to get into another library management which is inside it. So do CD space library management. And then if you do dir, you will see a settings URLs. Sir, I can get your answer. You are on terminal now. Come on. Yes, sir. You are on terminal now. Come on. Yes, sir. In which directory you are right now. Sorry, what? Yeah, if you do, you're using windows. Yes, sir. Do dir. What do you see? Sir, can you name some files directly that you see? Yeah, too much files are there. Others have reached the point. They have opened notepad. I mean to say anywhere the URLs that we were and they see this same similar thing that I have on my screen. Yes, sir. Yes. Yeah. One second. We'll see what. Yeah. It's wrong what you have typed. So that is a problem that will see. Yeah. So can I say to you the board which are. No, no, no. I can see. Yeah, you have done. So I'll show the views again. But right now follow the URLs. We'll come back to views or not an issue. Don't worry. Okay. So yeah, everyone on URLs. Yes, sir. Yeah. Yes, sir. Okay. So now here it is they have already given so much of information to us. So they are saying you are using a view function based. We have written a function view. Okay. You have to import from your app import views. And how to add a URL. Okay. We need to use this URL pattern already there. We have already used admin. You guys remember everyone remembers. Like we used a local host colon eight thousand slash admin. And I was able to recognize admin because it is mentioned over here. It's not magic that is happening. Everything is there. So we also need to tie up our views to some URL. So we will also do that and they have mentioned you give a path. Okay. You give which views to be called and you give some name to the view. It is always good to give name to anything that you create. So because you will we'll get to know the importance later. Maybe you all must be aware of it. But fine. So I'll create one path. I'll call the URL. I'll call it books. Okay. And yeah, I think I'll have to add the views import. But I'll write it first. Hello. As they have mentioned, I have to import. Okay. From my app, my view store, I'll import it. So from what is my app name library underscore manager. Correct. Import views. Okay. So I have views over there. I'm importing it. Now. We'll just. Take. Okay. Views. I don't need quotes views. Dot. Okay. What have we created in our views? Let us check. Yeah. So we have created the inside views. We have created. Books. Books is my view that I've created. So I have to. Okay. Just link this. Okay. So the given URL. Could you show the. Yeah. Books. I'll have to do this. Views. Book. And yeah, you can give some name to it. Any name. It is not necessary. Okay. Fixed. It is just a reference. Okay. When you want any time to know which view. Okay. You are a pattern you're talking about. So this is the name books. This will be quite useful when you. Okay. Do slight. Intermediate your advanced topics like. Dealing with templates. Yeah. Yeah. All right. So. This is this is what you need to write. I'll just zoom it further. So see I'm importing views. Again, you can give any name URL pattern over here. It is not necessary books. You can give my books anything. Okay. It is just for understanding. Now I've kept it books. It is our choice. I'm importing the views. I'm linking it with the URL that I want. Okay. And boom, boom, boom. That's it. When the client hits this. URL books. It will call my views. Dot books. Inside my views file. There is this books. View. And. It will give the HTTP response that I have written in. The views. Okay. So I'll wait. Okay. For you. All to finish typing. So. Two lines. What is the import. Then it's this. Okay. I'll switch to views for a minute. Check properly. Exactly same. You have written. Okay. The import. And the view. This is wrong. It's wrong. That is what I'm saying. It's wrong. You have to copy this. I've highlighted on the screen. Sir, please show the URL file. I need to copy some. Okay. Then I'll switch back to. Yeah. I hope you have imported this views. Library manager views. Yeah. Then only it will work. Yeah. I'll switch to views. Okay. I'll switch back to. Yeah. I hope you have imported this views. Library manager views. Yeah. Then only it will work. Yeah. I'll switch to views. Okay. Yeah. Before one more thing. Once you add it, do not forget to save the file. If you don't save, it won't. Okay. Reflect. Okay. So kindly save the fight. Okay. URLs. And also the views. Yeah. So views. Okay. Again. Your input is the problem. Import. Correct. Okay. Your input is the problem. Import. Correct it from Django dot HTTP import HTTP response. If it is right. Awesome. Can just. Awesome. I think you need to go back. Have a look. Like I said, take a deep breath. Please check. If I can see it is from Django dot HTTP. In your case, it is from Django dot HTTP response. Change that line. Line number two. So I guess it's bad. So I. I. No, can you please replicate what what. That's amazing dance. Yes, sir. All right. Okay. So once we are done, now let's check it on the web browser. But what we need to do first to check on the web browser. Run server. Run server. Very good. Okay. But now I'm in some other directory. I need to go one directory back. That is CD dot dot I'll do. Now I'm back to the container. Okay. For directory that is live library management. If I do di you should see your managed dot pie. Because I need to use this to run the server. Now you can use up arrow to check the history of. Okay. So once and you will find my Python space managed by run server. Let's run it. If any errors will get it over here. If any mistake. Some syntax error typo. If nothing, then it will give you your everything is running smooth. You may also get error on the web browser. That is not an issue. Don't worry. You should never panic when you get an error. Yeah. Everyone got this message starting development server. Yeah. Yeah. Okay. Someone is saying something. Okay. I think I all got it right. Sir. Yeah. Okay. What is the current. Run server Python manage space manage dot pie space run server. Okay. Yeah. See to it that you are in the library underscore management folder. Okay. Okay. Only in this folder. Not libraries underscore management. Library underscore management. Yeah. Okay. All I've started the server. Yes. No. Okay. Yes. It says can't open fire. Yeah. You do CD space dot. Mikhail. Okay. I think in some other directory. One directly by. Yeah. Okay. CD space dot. Enter. Yeah. Yeah. Yeah. Yeah. Yeah. Do DIR and can you see manage dot. Yes. I managed dot. Now you run the command. You will get it. Okay. Sir. What do you show me that you are on command. Like the one which is wrong. Okay. Yeah. You are in. Okay. Okay. Okay. Okay. So this line. And this line. Yeah. Okay. So once we have started running the server. We'll go back. Okay. To. This web browser. Now. Local host or one twenty seven zero zero zero. Don't forget the port number. Otherwise it will not run. And we have booked. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. And we have books. Okay. We can type and you can see list of books. The response we got. Wow. We have created our first view. So great job guys. Sir. It shows page not found in my case. 404. So similar case. Same sir. Okay. So is the URL thing written properly. Is the server running. Basically. Oh. 404. It's a Django thing. Right. Yeah. Yeah. So. So let me show you the URL. So it is exactly same way. It is written. Books. Slash. Those who got 404. Please check. Sir. How are we supposed to run it? Who is asking this? It's me. Run server. Yes. Yeah. Wow. You can see. Okay. Okay. Before that. Those who got 404. Got. What does the list of books. Issue resolved. No sir. Okay. 404. Okay. I'll stop my screen share. Okay. Can anyone 404. Guys can share their screen. We can see what is the thing. Yeah. This is. Yeah. You need to do slash books. On the URL slash. Books because our URL is books. Excuse me, sir. Okay. Okay. I'll stop my screen share. I'm sharing it again. Sorry. Okay. Can anyone 404. Excuse me, sir. Yeah. Yeah. Sir, for me, run server is not working. Like I'm getting an error. Attribute error. Okay. Okay. Is it possible for you to share the screen quickly? I can. Yes, sir. Yeah. Yeah. I hope 404 issue resolved for all. Yes. Oh, great. Yes, sir. Thank you. Not in my case. 20 help. Okay. Okay. We'll see. We'll see. Yeah. Can I see your views? Okay. Someone has stopped. Okay. Yeah. Okay. Okay. Okay. This is. This is definitely fine. Okay. Can you go to URLs? Views. Views. Not books. Name. This also looks good. Okay. Fine. Now, can you go to the terminal where you got the error? Yeah. Can you do control C? Yeah. Can you do up arrow? Once. Yeah. Can you press enter? One second. This is some internal error boss. Yeah. No. It's in your settings. You have run all this. Migration and can you show your settings? You have added library manager, right? Yes, sir. Okay. Okay. That should think should work. Yeah. Can you go to terminal? It should not happen. Yeah. Okay. Control C. Okay. Can you do a DIR? Okay. Can you go to this library management CD library management? Okay. DIR. Okay. This is fine. Okay. I would suggest. Can you try restarting and restart the Anaconda and do it? You can do exit over here and restart till the time I'll check others. Okay. I have to exit Anaconda, sir. Before that close all the files that you have opened or not read. Yeah. That is. Yeah. Now you can type exit. Okay. Directly closed it. Okay. Fine. Yeah. Now you can. You can stop screen. You can try again till the time I'll check others. Yes. First few are. They kill everything. Okay. Okay. Can you show your views. We buy again. So awesome has an import error again in view. Okay. Okay. I'll share my screen. This is. Sorry. So URLs. Sorry. Okay. Yeah. This is URLs. Only two lines. One is the import. And another is the URL pattern that we got from library manager import views. So she is not able to import the views. Why? I'm not sure. Because maybe the need. So she's added the name with one property. In the settings also. In the settings also. Yeah. Because it's saying module named found manager. So library manager one. Setting.py. Yes. Yes. Yes. Your server is running right. Yes, sir. Yeah. Can you share your screen for a minute. So yeah. Yes. Yes. Yeah. So what is happening? That actually I typed this one. The host. This one. Okay. Yeah. You have not added URLs. Check URLs. Not. Why? I have this one, sir. Yeah. Okay. Views. Yeah, this is fine. Yeah, you have saved it. Yes, sir. I have saved it. Okay. Fine. Then. One second. The current. Okay. Can you put one more slash maybe. Because we have put a slash. It's not an issue, but I just thought that same thing. Yeah. So I'm going to try using this URL patterns. Management dot URLs. Yeah. Can you show me your settings.py file? Okay. Okay. Can you. Okay. Before that, can you go to the terminal that you had shown me right now terminal? Yeah. Can you do control C? Yeah. Can you press up arrow and again run? Run. Yeah. Yeah. Run server. Okay. Now can you refresh the web browser, local host books? Same error. Yes, sir. Okay. Can you go to the terminal? I think it's better to see everything. Yeah. Control C. Control C. Yeah. Now go. Okay. Yeah. Now you can do DIR. DIR. Yeah. Okay. You are over here. So yeah. Go to library management CD space. Yeah. Library. Lib and tab tab. You can do a lot of things. Tab. Okay. Yeah. You can press enter now. Yeah. Do notepad type notepad dot exe space settings se tab will help you. Okay. Yeah. Go. Maximize this once. Yeah. Go down. Okay. Library managers. Go down. Library management. Go URLs. Okay. This is also absolutely fine. Yeah. Yeah. You can close this. Okay. Can you? Yeah. From your notepad dot exe space URLs. See what is what has happened is here you have not written never open file from search windows search. Okay. Because you already have one more thing the folder yesterday you had created right. Oh yes sir. So you are changing there and you are trying to reflect it over here. Okay. So now you have to write URLs over here and then it will work so every time. Okay. Check the path my and go project. Okay. That is why I created separate. Okay. So you add your URLs. Okay. Over here. Check your views whether this views are only used. It will work. Okay. So what you do you copy from your other file that you had created enough for using the other thing. Copy it over here. And you will get it. Okay. Yes sir. You got the mistake. No. The issue you got it right. What has happened. Yeah. Yes. Yeah. Okay. You can do it and check if any issue let us know. Okay. You can stop your screen share. We'll see others. Yeah. Anyone. So. Yeah. Yeah. Who? Sorry. I can't. Yeah. What happened? What is. Sir. I had done. I didn't put the comma in the URL. Oh, I thought so. Yeah. In I think between views dot books. The comma was not their name. I say. Sir. In URL pattern. Right. Yes. Yeah. I thought so. But I thought. Yeah. Correct. Should I share my screen? Sir. What can I have? What I have to do next. Yeah. Now you can see the web browser. Run the server and check on web browser. Whether you get. I'm still getting the same. Same error. Oh, you same error. Okay. Yeah. So sit in the right. Yes, sir. Yes. I'll just finish with me. Then I'll come back to you. Okay, sir. Okay. Yeah. Yeah. You can share your screen. Yeah. It's fine. That is not an issue. Okay. You have saved this. Okay. This is fine. Yeah. Yeah. Can you show URLs once again? Okay. From library management. Okay. Can you go to the terminal? Yeah. Okay. Control C. Okay. CD library. CD space library management. Yeah. You can close the notepad that is open. Both the notepads. Yeah. Because I just live to avoid the confusion. Okay. Now. Yeah. Can you do the IR? Okay. Yeah. You can do notepad.exe space statings.py. Yeah. Can you go slightly down? Yeah. See, there is no installed app. Yeah. I can't see. I think I'm some screen issue. Can you go down? See, you have put dir over here. That shouldn't happen. Correct. Yeah. Remove it. You can go on next line and enter your app name. Okay. Yeah. You're done. Perfect. Perfect. Yeah. Okay. Now. Yeah. You've saved it. Okay. Cool. Now. No. No. Wait. Wait. Wait. Okay. It will work. Okay. Yeah. You can run. It's the same thing. No. Open on the top. Yeah. So, Labrattery manager doesn't look like. Yeah. Can you? Control C. Control C. Can you do dir? Labrattery manager is there. Okay. Can you need to open the settings? Can you do notepad.exe? Yeah, no, no, no. Don't write settings.py. Type. Clear it. Notepad.exe. Space. Type. Lib. type use tab we may be a lively live library okay tab slash backslash s tab and then yes okay go down okay this looks good one second to check this looks fine okay yeah close it yeah can you scroll slightly up library mess underscore man doesn't look like a module path go up okay can you show me your views sorry URLs now and again yeah sit in there give me a couple of minutes huh if this is fine I'll okay otherwise I'll come to library underscore manager import import views okay this is also fine yeah I think I'll I think I'll need to investigate all the files once because this looks like some somewhere you're done start app right start up yes sir okay somewhere some you must have happened you can close this this thing okay I'll see it not to worry I'll stay here okay okay all right all right one give me a few minutes yeah I'll sit in there is there is still there sir should I share the screen sir yeah you can share you can share yeah what is the issue uh the issue is that I'm getting this actually page not found uh 404 okay okay yeah can you go to uh the command round okay okay just a minute yeah so we're going to control c okay exit yeah okay done yeah so now uh we need to check the url so notepad.exe okay just a minute notepad I had already opened the notepad should I shoot over there no no I will open it from you can close all the things yeah uh yeah because maybe there is some okay notepad.exe okay space uh yeah library management uh you can do tab okay library management backslash backslash back back uh the reverse time uh the reverse slash not this one the other one other one yeah uh s settings s you can do tab after typing s yeah okay yeah and no no no not settings url we want to see I'm very sorry url you are okay uh end up so I think uh let me enlarge it yeah you have not added the url so you have added to the yesterday's urls okay so yeah okay okay sorry I'll do that yeah yeah thank you thank you okay uh okay anyone else uh weekly anyone can uh speak out like uh or maybe again post on chat because I think okay sir I'll close my window and I'll try and get back to you yeah sure sure sure okay anyone uh who got 404 still there no one right okay okay anyone uh okay except for Nivedita anyone facing errors can just ping or let me know I'm facing it okay right uh yeah can you share your screen and yes sir sir is it visible yeah yeah what yeah it's visible what error you have sorry showing the side can't be reached yeah is the server running yes sir yeah can you show yeah can oh no model name library manager one okay control c can you do uh back back back clear this cd dot dot clear yeah can you do uh dir enter yeah it's library manager now so why you have written library one uh okay so that is the problem so it's problem where you have imported in views okay so go right type notepad dot exe okay yeah space library management tab take advantage of tab tab tab is not working okay uh cd uh sorry notepad dot exe uh sanjiti uh the tab is not working right yes sir oh then you have to type hold library underscore management it should work by default yes and also yeah it should work yeah backslash you type ui and then tab small ui okay small only okay right enter yeah this is url can you maximize it slightly yeah okay so see manager one is not your app name no your app name is library underscore manager correct yes sir so remove that one now save it control s yes okay yeah go back to the terminal all tab this one yeah awesome now press uh up arrow up arrow till you get runs over yeah yeah enter yeah you can go to the web browser refresh okay http response are good go to terminal you have written it wrong once you have not imported response yeah go to terminal yeah control c uh yeah type notepad dot exe space yeah uh library manager may not be your app name tab one more time tab okay go back yeah tab yeah still backslash basically we want to open the views yeah views we tap enter yeah so oh you have imported it from jango oh your response spelling is wrong in the bottom res response okay control s yeah kindly go back to the web browser yeah refresh should work refresh oh you are not running the server i'm very sorry you need to first run the server terminal yeah up arrow yeah and i think this should work now others who have problems should speak out or type on chair yeah okay yes i don't know yeah yeah so okay so so even after saving them at correct location awesome yeah more than one second i'll just get done with this yeah yeah you're sure we need uh can you please share our screen and we'll finish it yes sir yeah what is happening because still not fun okay just get out of this okay uh yeah yeah enter enter we don't need this okay back okay i want to see uh your uh notepad dot exe library management uh URLs or py very good yeah so you have not added the park here here you have to add yeah sir no you had the bottom so so from yeah uh yeah over there uh after comma press enter uh yeah path within parenthesis in double quotes books slash double quotes uh comma uh views space views uh views dot books space is a good practice okay dot books yeah books is our views now that we have created right yeah books comma name equal to books equal to quotes inside quotes books yeah parenthesis close okay uh so yeah yeah comma you should it's a good practice to add yeah you can go now we need to import the views where we have created so go up uh not at the top url patterns where you see at the bottom so the third last line yeah above above that yeah here we need to import from uh your app name library manager understand okay uh space input input input input not input input yeah views we need to input views because at uh in url pattern we are calling views dot books no inside views there is a books function right yeah so now you can save this and you are done no no no no no don't do that don't do that control s you do you should never do save us control s save only save yeah if you do save as it will save as a new file again do save us because you have modified that css control s will help you done yeah it's saved on the top if you see that it's a strict sign bond it means it is saved there you can close this okay now uh we need to run the server again very good up arrow yeah no no no notice yeah check the web browser now refresh yes thank you so thank you yeah uh now who is there okay i'll i'll just rectify sathindar's because it's a minor thing i am sure so yeah you can share in sathindar then maybe mosim and then nivedita okay sir yeah uh that's there uh should i uh go yeah you put slash books uh slash books on the url's okay fine configured as uh slash no okay slash books yeah slash books other way around yeah this slash or slash this is fine yeah books and then enter enter will do it will automatically take yeah now your htp response is not defined actually the spelling is wrong htp response you can correct it and yeah what what how should it be uh response no s res po and se oh okay yeah i'll take your issue as well okay is mosim there i am not sure i'm not sure all right uh vaisnau can you share uh yeah vaisnau i can see uh what is happening books views dot books main books uh in this module library manager dot views has no attribute books can you show me your views control c this so i'm also getting the same error yeah who this is mosim who was no sir it's akanksha akanksha okay so what we'll do you can also follow this okay i'm you can also yeah check uh uh we'll check the views dot py which is in the app so notepad dot ex excellent uh space no no no no no no it will not be present here sorry sorry it will be in library man no notepad dot ex illico that is perfect space right live lib tab coro eq bar tab tab tab tab oh what is happening me back uh then a space muddalu uh auripa tear yeah now back slash back uh ulta slash which other one a keep out remove the previous one okay uh and yeah uh what we want to open views views okay akanksha has a spelling error so fine that is the minor one okay oh you have not written views you need to write the views over here you can write what was done in the session okay sir what are you okay uh you need to import uh okay i'll paste it on the chat fine okay sir uh yeah one second okay yeah and then try it out okay okay sir okay i'm pasting it so this is what should be in your views dot yeah till the time uh next uh can you do one thing can you post your url dot py file url also yes remove the comments and just people are getting confused with that report and adding the path okay okay i'll i'll do that you can remove the url comments okay uh give me a minute i'll take the next issue a minute please okay uh yeah uh and yeah maybe nivedita uh you can share your screen yeah still the same thing oh my god uh let me see every minute the application could not be loaded okay so previously this run server was working properly right yes sir yes okay yeah yeah control c let's see okay yeah so yeah dir i'll just start with the scratch now from scratch yeah so we have library management library manager so uh do cd library manager manager no enter dir okay it has admin apps okay uh do notepad dot exe views dot py yeah vishna i'll i'll come back to you okay so jango dot htp import htp response everything fine cool yeah you can close this and now cd back cd space dot dot now the only thing is uh settings in urls we need to see um yeah no go to library management and uh okay dir okay uh urls dot py once again sorry notepad dot exe space url dot py this is good good to go yeah close final thing settings dot py uh i'm sure some must must be have must be there in the settings dot py only uh do i have to exit sir uh no no no notepad dot exe settings uh yeah slide down slowly slowly okay yeah this is fine can you go down slightly oh middleware remove that library manager okay control s yeah can you close this now this is fine i guess um no no no no no terminal terminal we need to run the server no go cd the space dot yeah yeah back cds dot dot yeah now you can do run server appero will help you yeah whoa and now you can refresh refresh will work meaning it's open over them okay yeah yeah thank you uh anyone else uh please uh sir i'm getting a value error at book sir uh value error at uh can you share your screen quickly okay that's uh okay can you go to views not py you didn't return the code oh who is that yeah you have to return return uh after yeah in the bottom return http response before http response at the bottom yeah last line your return karmana function should return nice space oh okay save it okay anyone else uh who is this uh i can't see so okay more so yeah yeah can you share your screen with your issue no model net library manager okay uh can you go to terminal this is quite uh difficult to figure it out yeah this is your okay so this is my project you have created library management one correct you know yeah can you do the i yeah so your app name is the library manager one okay can you open the settings dot py here from your notepad.exe uh can you close the spider right now uh the whole files uh all the files from the spider so that we don't have any conflicts all the yeah so okay uh where are you yeah so notepad uh space notepad.exe space okay uh then uh library man library management one you can do tab it'll be faster yeah backslash so uh what do you want to check settings let's see and then do tab yeah enter yeah can you i maximize this okay so your app is uh library um uh underscore manager one okay yeah you can put comma just for probability it is a good practice okay don't put space yeah yeah control s close it this is fine this is fine this is close it close it next uh we'll be checking is uh here only itself uh yeah press up arrow sorry up arrow okay you okay we want to check url dot py so notepad.exe library management slash tab tab will help you um library manager one import views use dot uh works okay this is also fine yeah can you close this uh be capital uh make it small you don't like fine and name also keep it small for books yeah okay yeah close uh you can save and close it okay now last thing is uh notepad.exe space now you have to go into the app library underscore manager one yeah then the views yeah you can close it this is proper so okay yeah thank you okay yeah all right now can you run the server can you show the dominant server is running it's running yeah so what is the issue where is the issue okay books books not admin okay yeah you can stop the screen share anyone else who wants any help right now or we are done thank you sir everyone done I guess some song I can't pronounce it okay can I am getting page not found errors uh can you what do you say check the server running or share your screen immediately yeah can you show the error first yeah so your urls is not set can you go to your url start p1 um save it it's not saved yeah now refresh your wire yeah server needs to be running yeah it's to run yeah what is this something else yeah go to where your server is running yeah okay you need to run your server okay yeah only do books still it won't it's not coming still it is not taking the url first of all type the url properly it's so messy yeah enter okay can you close all your text editors that are open okay nowhere it is open right now yeah can you go to the command prompt yeah control c exit yeah you need to open your url.py so notepad.exe space no no no get into the library management folder liv tab tab tab autocomplete not happening yeah it's happening backslash yeah urls yeah awesome okay dot py tab will help you to autocomplete okay enter yeah see you have not written kindly write okay over here i have in chat i've written the code for urls if you can see and if you can do that till that time okay you can stop your screen share if anyone else has anything can quickly hello sir yeah yeah yeah yeah it is still showing that attribute attribute error no module okay can you share your screen okay okay control c get out of this break this yeah oh you have created some okay can you do dir okay there are two apps you created i guess you know yes you are using which one library manager library managers managers you are using yes so wherever you have written manager you need to write managers no sir and from starting only i'm writing managers only okay then go to library underscore managers here yeah cd space library i mean you have to go into your app uh yeah tab will help you to autocomplete insert okay enter yeah can you do dir yeah you have views start why you have two view view dot py views dot py okay uh can you open view dot py what is in it you have created i guess that file yes views dot view view dot py i had closed that file you don't you don't uh so you don't want to use it you can delete it it will create confusion then yeah okay uh del del so as which you are editing so please ask her to open the file and check yeah that is the we'll do uh you can delete this view dot py it will unnecessary uh create more come del del space view view dot py yeah now do dir okay that file is gone very okay now open now views dot py notepad notepad dot exe views dot py dxc view it is showing this yeah sure so you will need to write the code over here okay i have posted it in the chat for views dot py then save it and your things will work okay sir thank you yeah okay all right yeah anyone else please let me know yes sir sorry uh admin view already If you check your views.py, we have created a view. You can use text edit. Terminal. But notepad will not work. You will have to use notepad will not work in this. Yes, sir. Okay. You can use txtf. Tap. No, text. No, no, no, no. Tap. Okay. No, no, no. Don't do that. Don't do that. Go back. Try vi. Try vi. Try vi. Try vi. Try vi. Try vi. Try vi. Try vi. Try vi. Try vi. Try vi. Try vi. No, sir. So, ok. Can you go to the directory? Library management explorer? Outside folder, Can you go folder library manager? Yeah, folder. Is this the same path? Yes, sir. Yes. Ok, ok. Now the views.py. Double click. Onviews.py. open with, yeah, text edit is there, no? Yeah, so you need to create views over here. Joe, I have posted it in chat, the code for views and for urs.py. Yes sir, yes sir. Yeah, yeah, yeah, try that and you can let me know. We'll be now shortly moving ahead. Yeah, anyone else, yeah, Karan that I think later I think the team will provide it, I guess, after the workshop is over, yeah. Hello, sir. Yeah, we should. Yes sir, I want to know something, can you please define what file is for which work like from my Django project file to library management and then other files in that, what file is for what work? Okay, so my Django project, you have that folder, right? Yes sir, you created the folder at first. Yeah, first, that is only to manage for management purpose, to manage the directories properly, so my whole thing is in one place, right? So I don't have multiple folders and I need to search for my library management thing. So I have isolated by creating one folder, my project, Django project, then inside that, currently there was nothing, right? It was empty, you know? There is library management folder. Many, before we created it was empty, we created library management, so what I did was I created one folder just to isolate my work, nothing else. Second, I created the Django project, that is the name of the project is library management. So your first library management is actually your whole Django project. Once you enter the library management folder, you will find one more library management folder, correct? Inside it. Yes sir. That contains the settings, all the required information for your Django server. Inside the Django project requires certain settings, what apps are there, what database I should connect to, what templates and number of things, okay? All that is defined in your settings.py and then there are URLs also. And the deployment files are there, whiskey file, WSGI, you will find that which we will not use now. It is slightly advanced topic for deployment. So it contains all this thing. And okay, along with this library management folder, whatever apps we create, you will find those apps. So right now we have created library manager. So inside library management, you have library management folder and you have apps. So basically apps, okay, yeah. So inside the library management folder, there is one more library management folder which contains all the details about your project. And outside you will find there are these apps or database files, whatever. So app, you can have multiple apps. So that is why you have two folders, one for containing all the apps and your project settings like that. That is why you have those structures. And then the structure, when you create an app, inside that you will find views models, that is to segregate. Your views means whatever logic you write, okay, it will be your views. Then models will contain your database, which we, which will be the, okay, next, after finished, the next session will be about the models. So this is all Django creates this kind of structure so that we do development in a standard way. Everything is segregated nicely. Okay, nothing mixed up, jumbled up and the maintenance becomes easy later on. Someone sees your code and wants to make some changes. It's quite easy to understand what is happening. So that is why it is done in this way, standard way, yeah. Okay, so library manager is an app, we can create more like that. Yeah, if you feel like I want a forum set question, question, answer. You create a separate app. Okay, like Python managed on my startup forums. Within that file or separate file. Within your library management is actually the name that I've given to the project. Correct. Correct. Yeah. Inside the project, you can have multiple apps related to your project. Right. So maybe you have a website like shopping website. Suppose for example, so you may call it as a project online shopping, but inside you may have multiple apps like you may have commenting app. Where users can simply come comment on the products. You may have checkout app. It's like shopping, adding something to cart, the actual processing. So different apps you can have. Different apps for the same purpose. Not for the same, the overall same purpose. And work but related purpose, right? Related, yeah, related. Not exactly the same, but it is related to your whole requirement project. Got you. Thank you. Yeah, thank you guys.