 So if you do local host, go to this URL, you'll find whatever response you have given to your views, it will be displaying this. All right, so let's come to views. And in views, we have this HTTP response. This is basically your HTML. So you can actually use HTML over your straightaway. So I'll just bold this, I'll use this tag. And over here, I'll use underline tag, okay? I'm sure all are aware about HTML basics, that is quite simple. And so if I save this, the server will automatically update over some invalid syntax as happened. Okay, let us check whether it works. Yeah, I've written it outside the quotes one second. So simply adding a tag to this within the string will, okay, it will also work. And if we go, it will automatically update the server. It is continuously, okay, checking what changes are happening, so we don't need to rerun it. It has, okay, automatically updated. And if we go back to the page where we have this and if I refresh it, I should see, okay, the HTML impact, the change effect. So this is bold, this is underlined. So this is what you can do through HTTP response. So now you can actually write a big HTML content and you can just pass it through the HTTP response and it will work. You can try this out, check this by yourself and see whether you can see the change. How we can desend, just like CSS, how we can desend this page like? Yeah, yeah, so that is a separate HTML, you can do anything, okay? Like whatever you can include CSS, you can have, okay, various different beautification that can be done. So currently, we are just seeing that you can, you simply pass an HTML through a response. Making it better is, okay, the different part that will be separate. Obviously, okay, we'll see how. We can add the disbombing everything, right? Here it is also. Yeah, yeah. So basically, whatever you can do in HTML, you can pass it over here, it will work. Right now, we just, we are just understanding it. Oh, basically I'm passing an HTML response to the client. Not simply a string. Yeah, so yeah. So if all have reached this point, they can see some HTML output, okay? And their web browser means, okay, I'll assume that you have caught it. In case, underline is missing. Yeah, it's fine, you don't put it underline or anything. Just an intention is that you can give any HTML tag, pass basically an HTML content. Yeah, yeah, yes. Yeah, that is the idea. So it can be list also, anything, yeah. So let me check what was the status. Control C will be up for it, so yes, okay, cool. All right, yes. So now, as we saw in the introduction when we were looking at slides, I said, MBT architecture. Well, where the models, the databases, separately operating, the views are written separately and the templates are separate. So it is obviously not good practice to write the HTML over here because the HTML will definitely increase with development. Then again, CSS, a lot of things you will include. So it will be huge. So if I start writing for each views, HTML over here, this will look quite a big mess. So it is better we write the HTML somewhere else that will be a template and will you call those templates over here? We'll use those templates over here. So now that is our next step. So we'll go back to terminal. Basically, if you don't want to go there, it is fine. You have to go to your project explorer because next is, I'm in library management. Let me show you this. So yeah, I'm in my main project, what I've created. Now, I'll go to the app library manager. So I'll go to that directory. This is where you all will go to library manager and you will see these content. So I hope all have reached this point. Over here, I'll be creating a directory named templates. See to it that you create this template. I'll do dir, show you that I've created this folder called directory called templates. Spelling, import and everything because in settings, the Django automatically takes template folder. It will automatically take, whenever it finds a template in your app, it will search for HTML templates over there by default. So it is quite important to mention this name. Do not change anything in this, the naming and all. It should be exactly same because Django by default will look in templates in your application for the HTML pages. So kindly make this directory in your app library manager. Okay, the command, if you're using command prompt and it is MKDIR make directory templates. Or else from the explorer, you can create a new directory. The name is templates once done, kindly let me know. Sir, we have to create this in our apps folder, right? Yeah, library manager is your app inside that you have to create templates because Django will by default look for your HTML templates in this application where templates folder lies. Okay, so I'll have completed this. So now we'll be moving to the folder that we have created that is templates. So currently I am in templates. Okay, fine, I think I can't. So let me continue, created template. Okay, fine. Yeah, so next is we'll be now making one more directory this, so make dir library manager. So this is okay, not necessary, but we will follow it, we'll do it. So what I'm doing is in templates, I am just creating a folder which is same as my app name. Okay, just to identify that all the templates belonging which belongs to my application are present in this folder. So this is just for segregation purpose. Can you have a different name so that there will be an overlapping overlapping kind of a thing in future? There won't be any overlapping. You can have different name exactly that is what I'm saying. You can have any name, okay? But see to it then you use that name properly, okay? When you call the template. So for now, I'm just keeping it same as the app because it will be quite easy for me to recall. The template, inside templates, there is library manager folder which contains all the templates required for an app. Okay, the reason why we do this is this is again not necessary. You can straight away inside templates, create an HTML, okay? But as you do more and more development, okay? You may have different apps, okay? Interacting with, okay, there will have multiple apps. So in that case, if I have admin app, I have admin templates. I'm overriding the admin templates, okay? So in that case, I'll have one more folder inside my template known as admin which contains a template which belongs to admin. So it is good in managing the templates of different apps, okay? So that is why we follow this. Otherwise it is not necessary. Again, the name can be anything for this but we'll have the same name as the app name over here which is inside your templates. So we'll make one more directory, library manager. Inside templates, make note of it. This is inside templates. So, okay, we have this. Now inside your template, you will only have library manager, okay? Library manager is inside. Please just follow the same naming convention for now. Do not use independent names. Some default paths are usually following the same sort of pattern. And secondly, it is also easier to troubleshoot a problem if there is something that comes up. So your paths should look like how it is looking in front of you in the screen on Fatamesh's terminal which is you create, you have your library management folder which contains your manage.py file. Then you have your library manager app folder inside it. Then you created the new template folder inside your app folder. Then you now created a new folder which is empty but has the same name as your app name which is library under for manage. Yes, yes, yes, Ankit is right because it will be quite helpful for us to understand, to debug if any problems have happened. And another thing is the GitHub code has this similar structure. So even if you then later on copy paste it will work smoothly, any part of the code. So it is good if you follow this and for later when you practice on your own, okay, if you're trying something you can change and you can try definitely. So yeah, so I hope all have created this folder. Now you will be entering this directory library manager that we just created. If I do DR, it is empty. There is nothing inside it. This is the place where we'll create a HTML template. So we'll be creating a quite simple one, obviously not directly, notepad.exe. We'll call it books.html, okay. And yeah, it will say, do you want to create? Yes, I want. So now you are in books.html. Here you can do all the... Can you show the command one more time? I missed it, yeah. Yeah, you are in library manager. Yeah, yeah. Inside templates, you want to create a file called books.html. Okay. So yeah, this is how I created. You can use a, okay, like explorer or spider. Okay, ID. Okay. So all are in this book.html, books.html file. Here, the question which we had, okay, that can we add CSS? Can we do more beautification? So this is the point with how you normally create your HTML, include JavaScript, CSS. There are other ways also which Ngo provides, the static files, okay and all. It also has its own, okay, CSS and JS. So that is also available. But you can also have your own design and JS included in this HTML. So we'll just create a simple HTML for now. This is quite a simple one that we are looking at. And we'll have one, suppose, H1 tag, which will say books. Then I'll just have in books. You can have an ordered list or ordered list, whichever. See, anything you write, it is not necessary. What I'm, you can design it the way you want. This is not a problem. So you can also give ordered list. So numbers will come. And then inside this, we'll have ally, which will be list item. And yeah. This is, sir, we have to give four indent or something everywhere. No, no, no, HTML indentation is not an issue. Yeah, you can, okay, follow anything that you want. Sorry. Yeah. So I'm just making it so it looks quite clean. That is fine. So it's not complicated. So indentation in HTML, not necessary. Even it's a case insensitive and you can use upper case, lower case, not a problem. So we have, I'll call it math. We'll just copy this. Have another list item, another. So I'll say, see, Python, just, I'm just giving short names. And yeah, I have this for now and I'll save it. So you can create your own HTMLs, HTML the way you want, but a simpler one because this is just for understanding how we can create HTML, how we can link HTML to our views. Okay, how views will render the HTML you have and send it as a response to the client. So yeah, keep it simple. So what is the command to create books.html? There is no command. You can use your Windows Explorer and just create a new file. Okay. So I guess everyone have created this, yes, yes. So all done, shall we proceed? Fine. So now we have to tell our views that this HTML we need to use. Now comes the time we'll be using the render. We'll be rendering our HTML. Now we'll be using the shortcut already provided. So instead of this HTTP response, which will completely remove it for now, we don't need it at this point. We'll use the render, okay? So render basically, it's a, as the name says from the package it comes, okay, it's a shortcut. So it does everything. You don't have to do anything at all. Just mention, okay, what do you say? Which HTML template you want to use and that's it. So it takes a request object. The reason is it needs to know all the information that client gives and accordingly it will handle the things. Automatically you don't have to worry. The second thing that will be passing is the HTML. So my HTML by default Django will look in templates but inside templates where it is, it is in library manager folder, correct? And slash books dot HTML. So it's basically inside your templates, don't write templates, okay? If Django will automatically look in your application templates folder. So you only need to write this. And the third argument will be the context. For now we'll keep it empty dictionary. We'll talk about this after we'll see the output of this thing, okay? So now this is how we tie up everything, okay? Now everything is segregated like your view is separate, the logic and your template, which HTML is separate. So tomorrow if you find, oh, I need to change the design. So you don't need to do any changes in views. You need to go to books dot HTML, change it over there. So okay, quite a good practice, okay? When you develop something, yeah. So kindly change your code to this render. Okay, and write it carefully, I'll just zoom it. So you can see it clearly. It's the report perfectly fine in the browser. Oh, you started browser also, okay, fine, great, correct. Yeah, I'll just wait for all to complete and then I'll show the web page. We'll have to, we have to see that always remember whenever you test your application, okay? See that your server, local server is running number two, then you check, okay? So otherwise you will try checking and okay, you'll get page not found or page not found, it cannot reach actually, okay? So once again, I'll check all of books.html once, okay? So books.html is HTML, you can write anything if it's not necessary, we want exactly like this, okay? So I'll show this again, but I'll first show the output. I'll go back, I'll see my server is running, it's not running, I'll have to see whether it runs. Okay, so it's running, it's running without any errors. So now I can come here, I can refresh this, not showing, so I need to rerun it, maybe, let me check. I need to go to the main library management folder, right? Yeah, for running this, you need to come back to your main library management, where your manage.files. Yeah, so I had not saved the file, so it was not reflecting now, it should. So, yeah, so do not forget to save the file, it happens. So math, see, this is quite simple, HTML. So point is we have, okay, separated, okay, logic and our template, okay, the design, I'm going to say, HTML design separate, yeah. So this is how it will look on your web page. Yeah, I'll keep this open. Anyone who wants to still continue noting, I'm going to say typing. So I'll wait for a minute, I hope all will finish by then. Okay, and this is the views. So we have to only change one line so you have to return this. This also returns a HTTP response only, but it does everything for you. You only need to pass your HTML, that's it. Okay, I hope all have got it, okay, working good, good. So I'm getting positive, yes, okay, great, great, okay. So I think we can now proceed. Now we'll come to this part, the third argument that we'll be talking about is, okay, the context. Contextments to the given views, okay, the data, that is, okay, related to it. So now, obviously, books.html, as we can see, it is quite static. Okay, every time it will show math see Python, but that won't be the case when you actually build a website, right? When you actually create, you will have different books. So you will be writing a code from where, okay, from a database, you will get books. So like how we do select star, okay, everything from, okay, if your table name is book, then it will give me all the books, and those books should be, okay, displayed in my books.html, okay. That is how it should be. It should not always show me the static content. The website should always be, okay, dynamic, okay, to handle all these things. Otherwise, every time we'll have to change our HTML, which is not recommended at all. So for that purpose, to make it dynamic, we have this dictionary, okay, we call it context. Basically, here, suppose right now we have not created any database, but assuming that from database, we retrieve some values, like I get book one is related to the math. Then you can put double codes, single codes, that's not a problem. Okay, then you have book two. I hope everyone have already in the tutorials have done dictionary, okay, creation of dictionary, all right. So book two will be your, okay, maybe we can call it for now, okay, silent, okay. So we have these two books, and this is the context that will pass, okay. Quite simple. So passing a dictionary, which contains information. This information now will be dynamic as it will come from database. As the database changes, accordingly, this, okay, data will change. Right now, we have not connected it to DB, but assuming that, okay, this is what we got from DB. Now we have the context. Now, this is not it. We have to go back, okay, to the HTML. Now comes the important part is, now your content is dynamic. So we can't keep these things, these are static. Now, there is one more important thing, that is okay, you have a templating language that you need to study for Django, where you can, okay, you can easily do some template manipulation. So we'll be talking more about this in a while, but for now, okay, only to understand, okay, if you want to display any variable inside your template, we'll be using, okay, double, what do you say, double curly brackets, and we'll be calling this book one. This is something, okay, which we will be, okay, understanding more the template language, okay. So currently just, okay, we'll make note of this. So we have book one, book two. Book one, book two is basically, okay, the key of your dictionary, which points, which obviously has value, map, and silo. So if I have book one, it should show me map. If I book two, it has value, silo, it should show me silo. So this is now your template has become a dynamic. Whatever you pass through your context, accordingly, it will behave. So if I say, sorry, save this. If I come back, where is my web browser? So many things open here. Okay, now see, this has changed, math and silo. So in my case, it is displaying the site and it can't be reached again. Yeah, server may not be running, yeah. So, yes, yeah. So you have, okay, the content change dynamically. So you are not now dependent on HTML, okay, for your content, you are completely dependent on your views. Whatever view says HTML will produce, okay. This is also still, okay, not completely dynamic because right now we only have two books, okay, which will change, we may have hundreds of books. So for that we have, okay, the templating language also provides you with for loop, which does a lot of dynamic things quite nicely, which you'll see in the next session. So now coming back to this, if I change from my database, if I get something over here, suppose biology book instead of maths, okay. Maths is not available. I save it over here, I go back. The server will automatically update, okay. So we don't have to worry and it will show biology silo. So I'm not touching HTML. Dynamically, it takes whatever the view sends. So this is, okay, what is more important, okay. And that is the power of, okay, passing the data, the context to your HTML. So coming back over here, okay. So this is the thing that you will always pass to your HTML to make it dynamic. If you don't want to make it dynamic, keep it static, you have already done that. That is quite simple. But that won't be case, okay, in 90% of the time. So yeah, so kindly try this whether you're able to see this output and then we can, okay, maybe stop. Hello, sir. Yeah, yeah. Sir, the context that you have mentioned, how does it become dynamic? Because we will still need to specify the entire context, right? No, no. So basically, suppose if I make a query, for example, this you will be seeing later. So books, I'll do a HTML query, okay. Select star from the table, books. This will give me all the books, right? Yeah. Yes, sir, I got it. Yes. And then we'll pass in this context, sorry. After getting the context, we will be passing it to the render method, right? Yes, yes, render because the render does everything. It understands that this is your data and this has to be, okay, rendered in your HTML that you have mentioned. So this, okay, completely handles it for you. But you have to mention which HTML and what context you want, yeah. Yes, sir. So inside that HTML file, you have used two curly braces, right? Yes, yes, yes, yes, yeah. So that is the templating language that... Sir, what do we call that language? Yeah, it's a Jinja template, basically. Yeah, yeah, you may have to, you may do it separately, but it is also available in your Django documentation. So there are various tags that we have. We also have for tag, if tag in that. So yes, so that is quite, okay, slightly things. Slightly more, you need a time for that, okay? So it's a, yeah, it's called... I'm starting the problem. Now again, the problem is this kind of site can't be reached and the error is the line seven intention error, unexpected intent. In view of the site, yeah. May I clear that error, sir? Doctor, sir, you're in Python, we require intention, I guess. Yeah, intention, yeah. Yes. Indentation is important. Make sure that the intention is exactly aligned. The same five, yeah. Go to the view.ni file, highlight all the tags, check first if the indentation is correct. So all everything should be four spaces in indentation. Everything should be in the correct blocks of the thing. Sometimes what happens is your command may be outside of the function or something like that, that is one. Second, you also make sure that you're not mixed up tab and space, only use space or only use tabs. Do one of the two. Don't do... The perfectly copied, sir. I understand, but just check once again, just to make sure it could be that something may have happened here and there. Otherwise, we can revisit your problem after we come back from the lunch session. Yeah, no problem, yeah, yeah, yeah. Yeah, those who are interested, it is, okay, you can check ninja templating engine. That is what Django uses for rendering its template. And it is quite, why it uses ninja because it is more, you will find a feel of, okay, when you see four and all, it is more of a pythonic way of writing. So that is why the reason, so yeah, you can, okay, check that. I think all have got the output. I just got one of them. You just got one? In the browser, I just got one of them. Like the second one is there, first one is not. You may be context, you may have, check the name and the thing you are writing in template, if it is matching. No, check the syntax, check the braces, double braces should be in both braces. Check your context dictionary, make sure that it is correct. Check that you have used book one and book two and not using the same variable for both. Yeah, right. Yeah, sir, in my case, shall I share my screen? Yes, yes. Yeah. Okay. Yeah, so yeah, what error you... Yeah, I'm saying the error in... That is the intention error in your views file. Oh, in that... In your views file. Views, views, yeah, views.p1. And seventh line. Yes, sir, I will make sure. Yes, please open that. The line will contest and return. It is context and the spacing is incorrect. Yeah, yeah, sorry, sorry, context. And one more thing before, yes, go means, at the beginning, see. It should be capital. No, no, no, space. No, no, just one more space. Yeah. Yes, now it should work. Save it, please. Yeah, save it. Run, run the server. Yeah. No, it's running. Yeah, it is running. Yeah, that's fine. HTML is broken, that is fine, yeah. But why this ML and the sub-body TML are appearing, sir? Yeah, the HTML is written incorrectly, that is why. Yeah, I will show the HTML. Yeah. Yeah, so HTML, you have not written HTML at all. You have written ML in the term. Okay, I was not able to see in your file. Oh, break it, break it, yes, then, yeah, at the start. Closing tag. You can remove body for now, because it will throw an error at the bottom. Sorry, sorry. That is fine, that is fine, body, body. That is not required. Right now, yeah, right now it's not required. And HTML is a closing tag of HTML, yeah. Closing is okay? Required at the bottom. Yeah, it is written. No, no, no, closing means you have to put a slash, like how you have done. Yeah, yeah, yeah. In the beginning, yeah, this one? Yeah, yeah, that's the closing tag, yeah. Yeah, let me see. Now it is removed, thank you, sir. Thank you, thank you. Yeah, anyone else can share the screen? Sir, before I got the error and I corrected, from the last 20 minutes, I have not written anything. Okay, you want to share your screen? No, sir, but I want to, I want to code, sir, from 1241 words. Okay, okay, you want to, okay, you want to see the code, basically? Yes, sir, yes, sir. Okay, after getting my math and books. Okay, okay, so making it, using the context, basically, that point, correct? Yes, sir. So, see, I'll just walk through this. So we have library management, inside which we have a library manager app, correct? Yes, sir. Yeah, then the next step is we, we create template folder, okay? In template folder, we have one more folder, library manager. How to create, sir, template folder? You can create, you can go to that directory, if you're using a explorer, you can just create new, right-click new directory in a folder. Normally, how do you create a folder in the same manner? I'm just using- In spider, sir, in spider, we should do, you are in desktop. Anywhere, you can do it, but you go to this directory, okay, library manager, and then you create in that directory, you can create a folder. You can use a explorer also. Okay, okay, okay, sir, here I have new file. Yeah. Then- Template, sir. Templates, templates, spelling important. Okay, one straight, sir. If you're using command prompt, command is mkdir, we'll create it. But don't use it if you're not comfortable. Template, stroke, I'll save it, sir. Yeah, then- Yes, sir, it is showing. Yeah, nice. But one more folder you have to create, inside templates, that is library manager. Inside template, sir. Yeah, yeah. So, inside template, this folder should come. Library manager, sir. Yeah, yeah, yeah, highlighted on the screen. Library underscore manager, wait, sir. Okay, sir, I'm created. Yeah, so now, inside library manager, you need to create a file, that is books.html. Okay, so normally, how do you create file in the same way? Inside library manager? Yeah. We should create books.html, sir. Yes, yes, correct. New file or folder, sir? File, file, HTML file. We should write books.html, sir. Yeah, books.html, correct. Okay, sir. Yeah. So now, inside books.html file, you have to write the HTML code. So, I'll show that code. This is the latest code. Okay, sir. Can you paste in the message? Yeah, sure. It will be easy. Yeah, yeah, sure, sure. Correct. I'm trying to copy and paste, sir. Yeah, yeah, you can, no? You can't? Once, wait, sir. Yeah. I have to write, sir. I cannot paste, sir. Oh, okay. Okay, till the time you type, I'll handle other issues. Okay, Vishnu has some. Once open it, sir. Okay. And content use of tabs. And yeah, you have used somewhere tabs, somewhere spaces in your Python code. So, you have to either use... Sir. ...paces. Yeah, use spaces only, I would suggest. Yeah. Once open books.html, sir. I will write the code. I have sure, paste it in this thing, no? That's... Okay, okay, sir. You can write it from there. Till then I can handle some other issues, right? Okay, sir. Okay. So, yeah, Vishnu got it. Yeah. So, go to return. There is the problem. Return. Return, return. No, at the bottom starting line of the return. Yeah, yeah, there. Now, yeah, the way you went back now, press one more time. Yeah, see, you have used tabs. So, use spaces. Four spaces. Yeah, and the error has gone. So, basically, you have, in context, you had used, I guess, spaces and return. See, check. Go back. We'll go see. Spaces were there. Okay. So, you have mixed your tabs and spaces. It causes problems. After writing it, it is not coming in the same indentation level, sir. Yeah, indentation in HTML is not important. Yeah. Not important, sir. In HTML, it's not important. So, Vishnu had an exclamation at that second line in the views. Can you tell me, Vishnu, why you have that exclamation mark? I didn't hear it, sir. Yeah, in views, we saw the exclamation mark, orange color on the left side. Second line. Yes, sir. Any idea why that is coming? Because it is telling that it is important, but not used. Yeah, not used. Correct. Okay, it's telling. Okay, you scroll on it, it will tell you. Fine. Great. Okay. So, all right. Anyone else? Anurag, can you share your screen? Okay. Show me the HTML. I mean, I mean to say, code, HTML code. Not here, not here. The file. In some editor. Yeah, you can right click and open it. More. Can you simply open it in Notepad? It will be quick. Okay, fine. Fine. Okay. Let's open it. Yeah. So, all right. Now, one second. Give me a minute. Where is this? This is a book. So, you have, show me your views.py. See, you are passing books.html over here, and your file name you are showing me is book.html. So, this should be a book or something. But then too, it was working, why it is not working? Fine. Completed, sir. Okay. One second. Check on the web browser. Refresh. No, no, no. You have to run, not like this. You have to run localhost. You have to serve it. Otherwise, Django will not understand. The Django is actually using the templating, templating engine, not the web browser. So, yeah, you need to go back to where your manage.py is there, run the server, and it should work. If it doesn't, you can share again, till the time I'll check other errors. Yeah, yeah. Thank you. You can stop. Screen share. Yeah. Anyone else? Sir. Yeah. Yeah, you finished writing? Yes, sir. Okay. Now I'll give what you have to write in views. Okay, sir. Yeah, one second. I've pasted it. Okay, sir. Yeah, template does not exist means you have given wrong path. Shruti. Shruti. You can check. In your render, see, I've pasted the path, library manager slash books.html. If the error persists, then kindly share your screen. Sir. Mm-hmm. Before we create, created, no, sir, defend, request, return, HTTP response. After, after again, you should create our new system. No, no, no, no. You have to edit the same, same thing. Okay. In that, in that only. Yeah. In that view only, you have to just, instead of HTTP response, you have to render and pass the context. Yeah. Anyone facing error, quickly share the screen. We'll be waiting for another five minutes. Yeah. Sure. Yeah. Quickly. Okay. Yeah. Can you show your directory structure? Library manager. Yeah. So you're missing something. I guess. Yeah. Go to. Yeah. Fine. Fine. It's fine. Library manager. Okay. Go back. Okay. It's time. Okay. Perfectly fine. Mm-hmm. Yeah. Can you go to views? Yeah. I think it will be open somewhere. Yeah. Yeah. Can you save all the files and check once views? Yeah. Go to your server. Yeah. Can you come out of this control C, rerun it? Okay. And try to refresh local host. Oh, it's the same error. Library manager slash books.html. How is it possible? You have library management item part. Okay. I need to see your directory structure once again. Something is going wrong there. I guess. Yeah. We'll start from the library management. This is the initial thing. Then you have. Can you enlarge this? Make it big. It's quite small. Yeah. Exactly better. So this is library manager. Yeah. Double click. Then you have templates. Yeah. Double click. Then you have library manager. And you have books.html. So this is perfectly fine. And yeah. I think there is no issue. Yeah. Now the only thing we need to see is views. Views look to be fine for me. Random request. Is there space after HTML? It's proper. Yes. Okay. Completed, sir. Yeah. One second. One second. Books.html. Library underscore manager. Context. Everything looks fine to me. One second. Library manager. Views.py. Yeah. Okay. Templates. Library manager. Spellings are proper. Everything is. Oh. It is saved as books.html.txt. Can you see at the, what do you say? Right hand side of your explorer, this spider explorer. It's books.html.txt. It should not be txt. It should be .html only. So, yeah. Go to your explorer. Yeah. Close this. Close this. First close in the spider. It will again have conflicts. Close. Yeah. This one. Yeah. Now see. Yeah. Go to the explorer. You can see the type is text document. Written on the right side before size. Okay. Yeah. Make it. Yeah. Open it in notepad. First thing. Yeah. Now do file. Save as. Yeah. Yeah. So, yeah. At the bottom, save as type. Make all files. Yeah. And now save it. Yes. Okay. Close this. Oh, it's still HTML. No, no, no, no. Again, again, go to open it and right click. Notepad. Open it in notepad. Sorry. Yeah. Save as. Yeah. Double in the book. Put a bookstore HTML in double quotes. But yeah, all files. It will be good. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Now. Okay. Fine. You can correct that. Okay. You want. Okay. You can go to views. Yeah. Yeah. So, you have books. Books one. See, you make a right. Make it book one. Context. Save it and rerun it. It should work. So, be careful when you create a file. It should be HTML document, not the text document. All right. Okay. All right. OK. Yeah. Sir. Yeah. Jayant, right? Once, open your views, views.tv. OK. Yeah, no problem. I'll open mine. OK. Can you see my views? Yes, sir. Yes, sir. Once, wait, sir. Yeah, yeah, sure. OK, sir. Completed here. Completed. Yeah. OK. OK. Now you can check the runs over and web browser. Yeah. Anyone else? I think no one else has any issue. So fine. Only see if Jayant is able to get the out. Once, wait, sir. I'm checking. Yeah, yeah, sure. Syntax error in search. Yeah. You can share the screen. I will quickly let you go. Oh, OK, sir. It's appearing, sir. Yeah, yeah, yeah. So see, Dev, we have written it twice, which is not the correct syntax in Python. You have to write it only once, Dev. Very good, sir. Yeah, at the last line, line number bottom. So in views, it is. In views, I wrote only one time. Show, show. Can you show? OK, sir. Once, wait. Yeah, share your entire screen, sir. OK, sir, I save now. Yeah, it's running. Yeah, go to the web browser. OK, sir. Copy, paste, sir. Yeah, no problem. It is coming like this, sir. I'm not able to see. I can only see the command prompt. Oh, once, wait, sir. Yeah. I think you need to share the entire screen. Maybe you can stop and reshare. Yeah, now, now I can see. Yeah, you have to put books slash books after localhost. Wait. Neither the same, you don't need to open new one. Slame, same. OK, fine, yeah, yeah, enter. So template does not exist at library manager. Books.html. OK, can you show your directory structure? Administrator, sir. Yeah, where all your folders and all are there. OK, OK, OK, spider. Is it appearing, sir? Yes, yes, correct. So see, your books.html should be inside template. So on the right side, you have templates explorer. You can see templates is written. Yes, sir. Yeah, can you double click on it? I mean to say, oh, it's a file. No, no, no, no, no, no, it should be a directory, no. And why is this happening? So, no, no, no, no, no, no, no, no, no, no, no, no, no, no. Full problem has happened. OK, can you go to command prompt? Close all the files over here currently. Spire, focus. Yeah, fine, close everything over here for now. You can later reopen it. OK, sir, I should close it, sir. Yeah, close it here. OK, can you show me your CMD? You can share the screen. I'll help you out quickly. OK, share sound of the video please. Share entire screen. You have to select the window and enter. Yeah, now go to command prompt. Yeah, press Control C. Can you do DIR? So you are in library management. You have library manager. Do CD space, library manager, CD space, library. Use tab to autocomplete, tab will autocomplete for you. Tab button, press tab, tab. Yeah, one more tab, one more tab, because we want manager, yeah, enter. So tabs are quite useful. Yeah, do DIR to see what is inside it. So see, a lot of messes happen. Books.html should not be here. OK, we'll be moving it later, but and that should not be library manager folder over here. So that is one problem. OK, so later you delete this, OK, library manager. OK, but now go to templates, CD space templates. Spelling spelling, do tab, tab. It will go back slightly. Spelling mistake, tab, tab, you press tab. No, no, no, no, no, no, no, no, no, no, no, no, no, no, no. First write few, few CD space, TEM, tab, press tab. Not coming, sir. It will come, it should come. It is just filling, is that? Yeah, proper, enter, do DIR, the name, file name, what, redirect the name. Oh, you have not created directory, it's not a directory, you have created file. OK, press type MKDIR. MKDIR, sir. Yeah, OK. Then space, no, no, no, no, no, no, no, no, no, no, don't press enter. OK, sir, MKDIR. Space. Space. Templates. Enter. Already exists. All right, we need, OK, can you open the explorer, windows explorer and go to this file, this directory. Yeah, from explorer, go to library manager. Yeah, it's here, see, bottom. That is the one. Library manager. Yeah, double click. Yeah, first of all, yeah, delete library manager from here. Yeah, delete templates. No, no, no, no, no, no, no, no, no, no, no, no. OK, what is this? OK, delete templates file from here. Yeah, now create a right folder, create templates, right click, new folder templates. Enter. Go inside this, templates. Create one. Yeah, we should create. OK, sir. Library manager. Yeah. This is just to segregate templates. It's underscore, never put space. OK, sir. Why, sir? Because the space, OK, it may be, so like a compiler or anything may have treated as a separate entity. OK, sir. When you put underscore, it's a one single entity. So, yeah. OK, OK, sir. It may. And now today's OSR smart, it handles it, but in olden times it used to create a lot of problems, so we continue with it to avoid any issues. Yeah. OK, sir. Yeah, in command prompt also you'll find if you have space, it becomes quite difficult to handle. OK, sir. Yeah, fine. Library manager, double click on it. Yeah, don't click on it. We just copy that books.html inside this. So, go back. Yeah, books.html is there, see? OK, books. Yeah, cut it. Control X. Yeah, cut, cut, beside, beside, cut. No, don't copy, cut it. We'll remove it. Cut. Yeah, now go to templates. Go to library manager and paste it. Control V. Yeah. Yeah, now try re-running your server, and the thing should work. Now it is saved, sir. Yeah, saved. It is automatic. We have just relocated. OK. So CD, CD, no, CD, dot, dot, dot. CD space, dot, dot, dot. No, I haven't. OK, yeah, end up. Now do dir. Yeah, can you see manager. So this is the place where your manager.py is there. So do python space, manage.py, run server. Python. Space. Yeah, do tap to autopilot. Python, manage.py, run server. Yeah. No issues came there. Yeah, now go to web browser and check. OK. Yeah, you can just refresh this page. See, coming. Biology games. Yeah, HTML somewhere is problem. Go to views. One step, sir. Yeah. OK, is that new shop? Yeah, you need to reopen the spider. Oh, yes, I should. I have closed it before that. Yeah, so you need to reopen it. Yeah, no. Cancel, sir, for anything. No, it's perfectly fine. I should press cancel or see, sir. So, if I can cancel, these are temp files. So, no. Cancel, sir. Yeah. Yeah, go to views.py. This is book. See, capital book to you have written. It should be small, no? Oh, yeah. It's Python case sensitivities. Yes, sir. Book to, sir. Yeah, book to. Yeah, save it and just simply check the web browser. It will auto update it. Yeah. With that game. Yeah, very good. Next. Thank you, sir. Yeah, no problem. Thank you.