 Hello, everyone. So as for the schedule, like we mentioned before, we'll be starting with the Django installation and the environment setup. So whoever is present, can you please start your Anaconda Navigator? You can go to your Start menu, search for Anaconda, and it should give you the Anaconda menu or the Anaconda Navigator option or just Anaconda, and it should give you a UI that allows you to see the various options. Please try to see if you can start that. I'll obviously be showing you via a shared screen, but if you can try it in the meantime, please do so. We'll give it maybe three or four more minutes, and let's see if more people join in so that we do not have to repeat stuff multiple times. I think we can start. I'll start by sharing my screen. So you folks can let me know if you can see my screen. With Ubuntu, what I do is I launch my Anaconda Navigator from the command line, but for folks on Windows, you should be able to do it from your Start menu. Please search for or look for Anaconda, and it should give you the option to start the Anaconda Navigator. It takes a few moments, so please wait. Please be patient. Let it load up completely, and you should be able to see something that looks like this. You have a few tabs on the left, and you have all these apps icons that you see in the center. You may have seen this before based on the yuck's videos that you've been looking at. So you have a spider option here, which we will also use in our case for the coding purposes. Apart from that, we'll also learn how to launch a new Python environment to be able to install certain packages. For example, Django is a Python package. Basically, it's a Python plugin or a package, whatever you call it, and you should be able to install it using an environment. An environment is an isolated file directory, which allows you to only install certain packages in that environment so that it does not affect your complete file system on your PC or your system. This allows you to isolate stuff. For example, if I'm working on multiple projects, I can have one environment corresponding to each project, which means that any requirements or packages that I use in one project do not get mixed up or do not cause problems with the packages of another project. So we'll start off with that, not to worry. But before that, I'll switch back to the Zoom window to see if folks have already launched the Anaconda in case you're still facing issues, if it's still taking time, please let me know. You can use other IDs as long as you're comfortable with it. We do not mind folks who do not use a lot of IDEs or text editors. The Spider Editor is a very decent editor in itself as well. It gives you a lot of features in build. So we recommend that. But if you're already familiar with something, completely up to you to use your own IDEs. In terms of environments, again, I will be using or creating an environment using the Anaconda system. So I'd recommend that you also follow along. But if you already know how to create and manage Python environments, again, you can do it on your own, no problem. Anybody having any issues with any of the Anaconda stuff? Were you able to launch? Were you able to start Anaconda correctly? Please let me know. The Anaconda installer looks something like this. I'll keep the chat on the side so that I can see you folks. But it looks something like this. Okay, no issues at the moment. So I think everybody is up to speed. So once you're at the Anaconda Navigator, click on the environments tab on the left. I hope everyone can see the screen pretty well. If it's not exactly visible, please let me know. So you click on the environments tab and you can see there's something called base root written here. Can I maximize it? No, unfortunately I can't maximize anything in terms of text, so you'll have to just follow along. Once you click on the environments tab on the left, you'll see something called base roots in bracket. This is basically the default Python environment that you get once you've already installed Anaconda. All packages that come by default, all Python packages that come by default with Anaconda are directly and by default installed into this environment. So what you see on the right, the list is the packages that are already installed. So for example, some that are usually very useful are requests. It's a package that allows you to make STTP requests to the web on your own. There is also something called NumPy, which is a Python package that allows you to work with matrices and data sets faster than what you do with a usual Python list or dictionaries. You also have pandas, which is another package again. So this just, I'm just trying to show you that these packages are installed by default. You can also install or remove any packages you want to. I'd recommend you not do that right now, but it's possible. Please click on the arrow on the right of base and it'll show you a few options. It'll show you open terminal. It'll show you open Python. It'll show you open IPython and it'll show you open Jupyter Notebook. Please check if you can open terminal and it should open a console or a terminal on your native screen, like your native OS should give you the default terminal that you have. So in my case, because I'm already there, I had a terminal open, it's open one for me. And this is how it looks like. So I can maximize this so you can see. It'll give me a command prompt that is a blinking cursor and it'll give the base option on the side. The base in brackets on the side that is on the left, lets you know that this is the current active, right? Then that looks the alternate. Then it means that it's either not active or it's either a different Python environment. So please let me know if you have reached this point. I will close this terminal because I don't need it. I'll repeat what I did. I'll go to my Anaconda Navigator. I will click on, I reach the home tab. So I'll click on the environments tab on the left. I'll click on the arrow on the base environment and say open terminal, right? This is usually the point where things get a little tricky because consoles are different in Windows and in Linux. If you have any issues, please let me know if it will obviously not look the same. So please do not expect things to look the same. Please let me know if the console doesn't open or you are not able to see the base on the left. And I'll also wait in chat right now. In case you have any issues, please type it out in chat or please unmute yourself and let us know that there's an issue. I will not understand by default. Okay, so I'm assuming that you have reached the point where you can see a terminal, right? And the terminal is open and it should work fine, right? So to check if everything has worked fine at the moment, till this point, can you please type in python space hyphen v should work, right? Oh, yeah. So python should give you a command prompt here, but it basically lets me understand if python is installed. So maybe not hyphen v, wait one second. I'll exit. Just say python hyphen h, yeah. Does python hyphen h work for you? If python hyphen h works, means you have python installed and the environment is working correctly. Python hyphen h is the command. Yeah, python hyphen hyphen version also works. It gives you the version ID, yes. I have 3.8, you may have something more advanced because python versions have now reached 3.9, 3.10. So you should have something different maybe, but this should give you an idea. So please let me know if that worked. Python hyphen hyphen version, python hyphen hyphen help. The python h didn't work for me, but the python version worked and they are showing 3.8. Okay, so that means you have python installed and it's working. Yeah. Let's see if we can do something to check if this is base. I was just trying to check if I can import that, but that's fine. So this should work. I hope everyone can see base, which means that you have the base active. If that is not visible, installations can be a little tough. So please make sure that you have base on the left. Yes, I think so, yes. I know what we can do to check if this is exactly the one that we want. So you can type in pip space list. And what that does is, it gives you a pip stands for Python installer or Python package manager. It's basically a Python package manager, which allows you to install Python packages. It's the command line utility to install Python packages. Pip list will give you the list of all the packages installed. So it should give you a very long, really long list of stuff. And if you can see something like Zopie interface at the very end, or if you can see something like scikit-learn in between, then it gives you a good idea that you are in the Anaconda's default environment because these don't come by default. These require extra installations. In your case, you are in the right place, right? Well, again, wait in the chat to see if everyone is at that point. So Python space hyphen hyphen help, Python space hyphen hyphen version, then pip space list, right? Pip space list should give you a long list of packages. It should contain something like Zopie at the very end, or maybe say pandas in between. If that shows up, it means that you folks have the right environment and you have Python installed and you also have pip, which is the package manager, which we'll be using to install Django as well, right? So, cool, I guess I see a few things, few folks saying that they are able to do this. At the moment, what I will do is I will not use the base environment, but please do not do this. I'm doing this for my personal purposes because I already have Django installed. So it will be pointless if I install Django on top of that. It will not give you the right outputs. I just create my own environment, which is, you don't have to do this. Please do not do anything of this sort. Not available, okay, fine. Give me a minute to set this up so that I have a separate environment. So you can see that the name changed here. This is because I'm using a different environment. So you don't have to do all of this. You just need to be ready with pip install Django, right? This is the command. I'll comment it out so that it doesn't get installed right now, but this is the command that you need to run. Please run this command and please tell me if it ran successfully. For folks asking if you can install things on VS code, et cetera, I am unfortunately not a guy who's used VS code a lot. It is very probable that VS code is doing the same kind of management for you. It will also create an environment and install it for you. I do not know how VS code does this. So if you are already, if you've done this before, if you're already aware of it, please go ahead. Otherwise I'd recommend that you please follow these steps because it is easier to sort of manage and troubleshoot if things go wrong, right? If things go wrong on VS code because I'm not a user, I'll be of very little help. Yes, it should take maybe a couple of minutes just to download and set it up on the environment. If nothing shows up in red and nothing shows up in capital error, then I guess you should be good to go. It should say that, you know, successfully installed Django with this version and it also installed some other packages, et cetera. Please make sure that you have done all of this. I'll give you a screen share of what happens when you actually install. So when I say pip install Django, it basically goes, downloads the package from the package repository that is hosted online. It installs stuff, gets a few dependencies and then finally tells you that, you know, there is something that is successfully installed and it should tell you that Django is successfully installed. There could be warnings like these. For example, I'm using an older version of pip, so it gives me a warning in yellow. Warnings are fine as long as they don't affect your code. Something in red is bad news. So if you have something called, if it says error or something shows up in red, then something has gone wrong and we can try to figure it out, but otherwise this should be pretty straightforward. So it'll show a screen like this, download, install and you should be good to go. Now if you go back and do pip list, so let's clear the screen just for visibility, pip list and it should show you, so obviously yours will have a larger list, mine doesn't have the additional packages, but somewhere down there in D, you'll have Django with the version 4.1.1. Please make sure that you have this after you have installed and typed pip list. If you can't see this, things have gone wrong. We'll try to figure them out. Ah, okay, cool. Arvind, yes, like Prathame suggested, please close your Anaconda navigator or your Anaconda UI. Please reopen your Anaconda UI by saying run as administrator. After that, everything that you do will be sort of with administrator privileges, so you should be able to then install stuff in that way. Yes, pip list will show a very long list. You can scroll to the point where, so these are alphabetically arranged. Please scroll to the D section and you should be able to see Django because Django starts with D. Cool, now that we have Django set up, we will try to set up a directory structure for you to follow along, so that you can set up your Django project. Yes, it should be Django 4.1.1 or something of that sort. If you've already, if things have gone correctly, you should be able to see it in pip list. So we've hosted a small GitHub project for the Django lesson that we'll be doing. I just open it up because I keep forgetting the name of the project, and I want to make sure that we're doing it correctly so that you folks don't get confused. Let me see, where is the project? So this is a project. I'll share the link right now in the chat. The whole project is already pre-built in that repository. There are two options here. We'll be walking you through all of that code and making you do all of that code and write it out so that you have a successful, pretty successful Django project that is similar to that one that I've already shared here in the link. But it can so happen that folks are not able to type along, takes time, et cetera, et cetera. So for those folks, you can download and keep it with you. Please do not just copy, paste. I mean, you can if you're too slow for the whole workshop, but please do not get diverted from the workshop and keep referring to the code. Please pay attention to the workshop while it's happening today and tomorrow. The link that I mentioned is always online. So you can download it even after the workshop. So it's not like it's gonna go away or you're gonna close it off. It is usually always available 100% of the time. So you can even download it later if you want to. If you think you're gonna be too slow typing, you can keep it with you as reference so that you don't fall behind. Cool. So the idea here is that we'll be creating a small library management app where we build a small interface to manage books and who has issued them and who's taken them outside the library, et cetera. So we will try to start a similar project with the Django tool at the moment. So let's go back to the terminal. So you have your terminal here. You have Django installed at the moment. So what we can do from here is we can type in the Python command. I think so it's Django admin, right? Yeah, yeah, Django admin. I, you can see that I've not started the Django project for quite some time. Project library management, right? So it's pretty long, so it's sort of wrapping over. But the idea that you type Python, which is a Python command, you type in Django admin, which is the Django sort of command line tool. You then give it the start project command and then you give the name of your application. This name can be anything. Again, please follow the names the same way that we are following it here because we will be using the name in a lot of places in the code. So it is better if you use the same name. So I'll type out the name here. It is library underscore management, right? This is the project name. It's not a command. We don't type it as a command. I'm just typing it out here so that you can see. So this is a project name. So we'll be, our command will look like Python, space Django admin, space start project, space the app. Then we can start with Django-admin. Ah, just Django admin, that is why it is not showing up. Oh, okay. Correct, sorry. Django admin, space start project, space library management. Correct, Python is for manage.py. So I'm sorry, there's a correction. You can do Django-admin, space start project, space library underscore management, right? And you press enter. And what it should do is it should create a directory. So I was actually in my default folder. So it created a directory called library management here itself. If you think that this will not work, you should move to a suitable directory somewhere in your file and then start it there. So you may want to use CD or some similar command and then run this command, right? So for example, I can go to, yes, go ahead. Sir, I'm getting an error. I'm ready. Yes, what is the error? Sir, I have a problem. It says Python can't open the file. Yeah, can you like, whoever is getting error, can you write the command in the chat? What command you have written? The person facing a problem is saying that it can't open Django-admin. Yeah, you don't need Python, you can just do Django-admin, that's fine. The person facing the error, can they please, can they please put the error in the chat or maybe the command that is used in chat? Okay, Django settings specified, did you mean start? Yeah, so please use start project, not start. For Nivedita, who has issues with C drive, Nivedita, you're using Python space Django-admin. You have to use the command Django-admin, start project only, there's no Python. Vivek, have you started with the terminal using Anaconda or are you using your own sort of terminal? Okay, yeah, I mean, you already have a typo. If you're sure that the typo is not the problem, then please check again. Yeah, once you've run the library management start project command, please wait. It will not show up in PIPLIST, please don't check in PIPLIST. Please wait after, for those who, for whom the command ran successfully, please wait. For those who didn't, please pick up. It's difficult to understand whether you're facing a problem or not. You can either unmute yourself and say it out loud. There's no harm. You can also type it out in chat if you're still facing a problem. Yesha Svini or Yesha Vini, can you please, there seems to be that the library management app directory already exists. So you already have it, you don't have to run it multiple times. That's fine, once is enough. For Nivedita and who was that? Vivek, were you able to run it successfully? Yes, sir. Cool, so Nivedita's problem solved, Vivek, you were not able to run it, right? Vivek and Faizan have the same kind of problem. Cool, yes, I'll let you folks know what is supposed to happen once the code runs. A directory called library underscore management is supposed to have been created wherever you are located. So if you are currently in C drive, it should have started up, it should have been created in C drive, wherever you are, there should be one directory that's visible right now. But for other folks, folks where Django admin is not working, can you folks, let me know if, for most of these folks have that problem. In that case, I think yes, even I think virtual environment deactivated for folks. So for folks saying that Django admin is not a recognized command, can you please again check if your virtual environment is active? How will you check if it is active? You can do a PIP list and it should show you a long list with Django installed. Akanksha, your problem is not a problem, it's a good problem to have. You already have library management created, so it's fine, do not run the command multiple times. Django 3 is fine. Okay, PIP list is showing. So Abhishek, can you try running Python space hyphen hyphen version? Is Python space hyphen hyphen version running properly? Hello. Sir, what should be done firstly? We have to install the Django application right now. You have to install Django application right now, yes. Sir, which version is it? 4.0 or 3.8? 4.1 is fine. I'll get back to you, since you're already, you're still working on the installation part. I'll just solve this problem once and then come back to you. Is that fine? Okay, so back to folks with, back to folks having the Django hyphen admin command problem. Can you run the Python command? Just type in Python and press enter. And you should get a prompt with these three arrows like this. Can you please do that? So for example, here is my terminal. I type in Python and it gives me a three line command prompt, a three arrow command prompt like this. Please try to see if you can run Django. And this should work with no problems. It should give you another prompt. Does this work for, this is only for folks who are facing problems with the Django admin command. For others who, for whom already it has worked, please just wait. Let's see if we can solve the problem for folks who are facing the issue at first. Vivek, Abhishek, Faizan who are facing this issue. Can you please let me know? I'll sort of have to pull you up because you are the only folks I know who had this issue. Okay, can you, can you click on, can you type in import space Django like I did? And does that work for you? Yes sir. Does import space Django work? Okay, cool. But Django admin doesn't work. I think there was another way to launch the command line. Okay. So if Django is installed, you can exit, so fine. So that means Django is properly installed. It's working fine. You folks just don't can't run the Django space admin command. Is that, is that right? If that is the case, then I think another option for Windows folks is from the start menu, you can also run the Python command line interface. So in Anaconda, if you go in the options, you should find the command line interface, Python console, some option like that. Can you please check? I'm sorry, I can't give you a definitive trial because my system is open to. Faizan or Abhishek or someone with the same problem, can you please share your screen? It'll be easier to help you that way because I am sort of not able to visualize what goes wrong if I can't see the screen. Anyone who has the same problem where Django admin is not a recognized command, can you please share your screen? Yes. Thank you. So can you now do control C or control D to break out? So yeah, sorry. So use control Z to exit out of this. So you already have Django, Django is working fine. Django is not a problem, right? Okay. Can you please type the command again just for me to see, because I can't see the older command of yours. Can you try Django-admin.py? I think so, .py doesn't work, right? I think it will be there somewhere. It's not a recognized command. Okay. Can you do a PIP list? No, that's okay. No, of course, I think you'll have to do... Yeah, it takes some time. Scroll up. Yeah, down, down, down. Django, yeah, Django is there. So I think we're trying from here. Okay. Can you show me a start option? Start option, what kind of options can you see? I can't see the screen. I think so, this is the issue of the console, the DOS console. I think you'll have to... I think the power share is there. The Python space, iPhone M, and then maybe Django, but that will be too much. Maybe from Anaconda, you can set a red, this is Windows, Cmd, you know? No, but Windows may, yeah, it's cool. When you do it from Anaconda also, this is the one that opens up. Oh, okay. I don't remember what we did last time. I think so, this is not much of an issue. I'm not able to see your start screen. Can you just show me your start screen, please? The start button, the menu is there. Can you type in Anaconda? Okay. Can you click on Anaconda PowerShell Prompt? Type that one. Okay. Can you try things here? Again, maybe Python, iPhone M, maybe works. Python, iPhone M, Django. No, Python, iPhone doesn't work. iPhone M. Not Python, sorry. Just do Django, iPhone admin space, start project. Python is also not recognized, yeah, that's fine. No, this doesn't work. Okay, try this. Okay, this command line doesn't work. One second, let me check. Faizan, can you do me another favor? Can you close your Anaconda and rerun it as administrator once again, just for a test? Can you close this prompt? Can you close Anaconda prompt? Can you close the other prompt, the other console? Everything is closed. restart Anaconda by right clicking and running it as administrator. Hello, Faizan. So I'm not able to understand if you are able to relaunch. Can you type in chat or let me know if you have done that? Can you close? You can also close these consoles. We don't need those now. Okay. You still say that same matter. For, let's try this one then. I'm sorry, because I don't have windows, this is a problem that is generally new to me. But for folks who have, who are having this problem, can you please install Django using this command? So please first, flip uninstall Django to remove it and then run this command, which is pip install hyphen capital U Django. Let's see if that works. Your screen is not visible. I have put the command in chat, if that's helpful. I'm not sharing my screen at the moment. I'm trying to see if I can find a solution on other pages. Can you please run pip install hyphen U Django for folks who face that command issue? Abhishek or someone from the folks who are facing the issue, can you please let me know? I am not able to make out. Cool Abhishek, can you share your screen or can you help me understand what's happening? So you uninstall Django, correct? Have you installed Django with pip install hyphen capital U Django? Can you do that? Please, can you run that first? So it installs Django successfully. Are you done with the implementation? Yes sir. So can you type in the command again, Django hyphen admin start project, library, underscore management, and tell me to- This time no error came, just next line successfully came. Correct, so that worked, right? That means it worked. If nothing went wrong, that means it worked, right? So I guess, yeah, you can use dir command to change your directory, but I think so it is working for folks. So for folks who don't want to, like, okay. So if you want to see a list of folders, you can use the dir command. Cool, so it seems to be established that pip install hyphen U Django works. So anybody facing that problem can please use pip install space hyphen U Django and things should work as expected. I will start sharing my screen again, just for continuing with life. Okay, so I hope this solves the problem. I will repeat the commands again. So for those who were not able to do it, they can do it again. For those who have already done it, please don't repeat it. So it is Django hyphen admin space start project, space library underscore management. Any spelling mistakes and folders and files will be created with that name. So please check your spellings correctly. If not, if you think that the spelling was wrong, if you think that the name was wrong, please delete that folder, run the command again. If you think it was wrong, if everything went right, do not change anything, right? So I ran it. This time what I did was I created my project in a separate folder so that I can understand what is happening. You can see that I'm using a temporary folder here to create my project. And in Ubuntu, I do LS. In Windows, you will do dir and that should give you a list of folders. So you should be able to see library management here, right? So this is a project folder that is created. Now let's see what is inside the project folder. I can do tree library management. And it will give me... So tree is again a Linux command. It will not work for folks on Windows, but I'm just trying to show you a representation of how the folder structure looks like. I have my parent project directory called library management. There is an internal source code project folder also called library management. It is not to be confused with the upper folder. That folder will contain some files relevant to the system, to the whole framework. ASGI.py is a server-relevant file when executing this application on a server. init.py file is the initializer file for any Python module because this will work as a module. Setting.py file is what you use for setting certain values and certain toggles, et cetera. For the Django project, we'll go into more detail as to what that is, but that is a Django settings file. We'll be working with it soon. We then have the url.py file, which is basically a list of URLs that you want for your web application. VSGI is also a similarly server-relevant file and then you have the most important command-line tool called manage.py. If you folks have already reached this point, you can now go inside the library management folder and you will see that you have the folder and manage.py. From this moment on, anything that I say is going to be from this point, that is from the manage.py level, right? So I'm not going to talk about the upper folder. I've forgotten about it. I only talk about within this folder where the level where manage.py is located. We'll be talking in those terms, right? So the reference will be this folder where manage.py exists, correct? So is everybody successfully able to see a manage.py file here and are they located inside that folder? Please let me know in the chat again. Yes. Can you repeat what we have to demonstrate in the manage.py file? That's fine, so we have to find the whole thing. You have to be located in the folder where manage.py file is located. Manage.py file is inside the library management folder which you just created. Yes. So when I dive into library management, I just want only one thing, library management. So you have a manage.py file or you have nothing at all? I have only one, I just got only one thing for directory, I just got only one thing for library management, nothing else. Correct. So what is that one thing? I'm sorry, I'm not able to hear you correctly but what is that one thing that you can see? It's showing only library management. It's not showing anything else. Okay. Can you go inside? So that library management is a directory. Can you move inside that directory? So you can use cd space library underscore management to go inside the directory. Sir, please show the command of the beach and go ahead and install project. It is not going to be the same. It is cd space library underscore management. Is that the command you're looking for? Sir, how to move subsequently beyond that, right? How to move beyond the library management directory? cd space dot dot. If you want to go beyond. This is for above, above the directory. Be low, be behind, behind, want to go back. Behind, behind, back, correct. Right, everybody able to see the manage.py file. Anyone who's not, please let me know in the chat or on, you can unmute yourself, whatever you would like to do. Sir, I am stuck at the directory library.management. How to get that manage.py. So you can see, so if you use dir, what can you see if you type in dir? Okay, simply dir in capital or simple? Just dir, yes. Okay, I've typed dir. Incap. Cap's also fine. Okay. It has worked, it has shown certain structure, directory, directory, directory and one files and three directories. That's it. Can you, can you, on the, I think on the, I think so on the right most end, you can see names. Some names will be there. Can you, are there any names? How many, how many rows can you see? There are only three, four rows actually. One files and three directories. Can you read the names? Can you, or maybe paste it here in chat or maybe just read out the names? Something like that. One second, just let me see. Correct, so you are in the correct space, right? You can see that there's one called manage.py, that is the right file. So you are in the right directory, that's fine, you're correct, that's okay. Okay, that's fine actually. Thank you. Kalpasri, if you wrote import Django and then you immediately wrote something, then I guess it'll not work. Please exit that three line prompt, that three arrow prompt. Sir, name, error, error. Come outside. There is a showing a name here, sir. Name, error, okay. One second. For Mozhum, Mozhum, can you do DIR and see if you can see manage.py somewhere in the output? If you can, then you're in the correct place. If you can't, you can try to help you out. Mukun, so you're saying that the incorrect name. Hi, sir. You are on Windows, right? Yes. Sir, I write the command of library management, but it occurred a name error in this. I didn't get you, boss. Did the original command work properly or not? The Django admin command. Django admin commands are not working, sir. Please show the, repeat the Django admin command. So for folks who can already see manage.py, don't please run a lot of commands, you're going to get very confused. For folks who can already see manage.py, please just wait there for me to figure out folks things for others so that I can solve problems for them. I'll repeat certain things, but please don't try every command that I tell out loud because then you will get confused and you will be in a place where things will not work later on, right? So for Mukun, can you see my screen? Yes, sir. Okay. So when you ran the Django-admin space start project command, did things work properly or not? No, sir. No, why did it not work properly? Did you get an error? Did you get some output? Something happened? Something didn't happen? What happened? Name error, name error. Name error. So can you share your screen? Abhishek, it was CD space, the folder directory name. Why would you only type CD? Okay. What do you can do now? Do you know which folder you were inside before? Were you aware of what folder it was? If you can, you can try to move to that folder again. If not, just run the command again in a suitable folder. Please go to a folder where you know the location. For example, desktop is a very good location in Windows. Everybody knows where it is. You can see the folder also. So go to desktop and run this command again. That is Django-admin start project live to the management. Yes, I can see your screen now. Can you please hit control Z? Control Z is the button combination which will help you get on track in life. So control Z. Control and Z, Z, Z, sorry, Z. Okay, sir. Correct. Now, can you run the command? That is Django-admin start project live to the management. Please remember which folder you are in. Please make sure that you have permission here. If you don't have permission, go to desktop. Run this command from the desktop side. In command line, only it should be on desktop. Or if you think you can run the command here, then run it here and check if you can access the folder. Run the command here. Fine. Let's see what's command's name. Let's see if it happens. You just ran the command from the desktop side. Run the same command. Sir, he's using underscore. No, hyphen-admin. Django-admin. Run the same command from the desktop side. Same command. Okay, so for folks who don't have an issue, can you please just shout out in the chat saying, yes, everything works fine. You are able to see the folder. You are able to go inside the folder. You are able to see manage.py. Library space management. Library underscore management. If you space it, you won't find out the name later. Okay, so I guess enough people who are already there. I think so. Yeah. I'm not getting managed.py. I don't know what commands I have to use. The same thing. Yeah, just give Mukun the minutes to figure it out. But in the meantime, can you tell me, who am I speaking to? Sorry, that's what I can refer to you by now. Emeritus, sir. Right. Can you see, if you type in DIR, can you see the folder name in front of you? You can share it now if you want to. Yes, sir. Can I speak to her? All right. You already seem to be inside the folder. Can you type in DIR again? Okay. Do I have to press control Z? No, DIR. Let us DIR. Okay. So you've gone one step further and gone into the inner library management folder. So just type CD space dot, dot. CD space, dot, dot. And press enter. Now can you do DIR and you should be in the right place. Right. So you should be in the right place, right? Right. So now, correct. So for, okay, so there was one more person who I think was complaining that they're not able to understand. One second, I'll just try to see if I can track that person down. So Vivek on the chat had mentioned, keep, kuch samaj nahi raha hai. So can I help you, Vivek? Is there something that you're stuck with? Agar kya nahi samaj hai, wo batao ge, so I can help you out. Sir, hello. Yes. Sir, I'm Obishek. So here it's showing library management is not recognized as internal or external command operable program or WES file. All right. So you must have run something with library management as text. Me command jase usko run kaya, so Windows not able to recognize it. Fine, it's fine. So are you in the right directory is my question. Are you in the correct directory? Right user. Did you hear karte ho? Sir, I'm in the correct directory. If you run, can you see manage.py? No, sir. It is, I can see the library management to DIR. Okay. So now what you have to do to be able to see manage.py, you can type in CD space library underscore management. CD space library underscore management. Whatever is the name that you're given you that exact same name and go inside and then do DIR, then you should be able to see. Right? Can you repeat the steps? No, sir, it worked. Thank you, sir. Cool. So the person asking for steps, I need to know where you are. What did you do? Sir, I got same issue like Abhishek. Correct. So can you type in CD space library underscore management or whatever the name of your folder is? CD space? The name of your folder library underscore management or if it is some different name that you've given then type that name. This thing cannot find the path specified. It can't find the path. Fine. Okay. Where is your screen? Is that possible? Right? CD underscore management. Okay. So where did you run your Django admin? So you're stuck at the point where you can't run Django admin as a command. Right? So what you can do is run one second. Put the commands in the chat. Please run those in that order. Same order. After that run the Django admin complete command and then you should be able to see your folder. Right? Okay. Now for folk. Sir, I tried that too. Who? Sorry? Sir, I tried that too. Okay. You're still not able to get it, is it? No, sir. Can I try again? Okay. Can you? Are you running Anaconda as an administrator? Fine. Close your Anaconda application, your command line application, everything just close the windows. And go to start menu again. Right click on Anaconda and run as administrator. Then you should be running it as administrator. Okay. Listing all the steps from the beginning will be difficult for me. I'll list out all the commands. These were all the commands from the starting. Please don't run all those commands again. For whoever is already, if everything is working fine, then don't make life difficult for yourself and don't run all those commands again. Just let it be. For people who want a reference of all the commands, I've put the commands in chat. For Janvi, if you're done, please let me know. In the meantime, if I think so Pooja is having an issue, Pooja, if you can say it out loud or type out what your issue was, then I can help you. For folks who have already successfully done this and can see manage.py, if you type out DIR again, you should be able to see where your folder is located. So I think from Mossam's output, I can see that typing DIR will give you something like this, right? It should give you a directory of et cetera, et cetera. So it'll tell you where your directory is located. Please make a note of where that directory is located. Just make a note of it. Copy paste, Karlo, put it somewhere, write it somewhere, whatever you want to do. Please make a note of where your library management app is, where your library management folder is located. Is everyone who was already successfully able to do this? Were you able to make a note? I'll share my screen in the meantime. So anyone who's going to tell me what their output is, please don't tell me what your output is. I will not be able to make out. Yes, so it says directory of something, something, something. Please make a note of that. That is where your library management app is, right? Once you've made a note of that, your Anaconda Navigator has the option to open a spider Python IDE. Please launch and open that. Please don't ask me if you want to use VS Code or not. At this moment, very honestly, you can use whatever you want to if you think that works for you. Please go ahead. I'll be using spider because I like spider, or whatever you like to put it at. It'll take some time for the spider IDE to launch. It is slightly heavy. Please wait until it launches, and then I'll give you the next steps. Right? While it launches, Jhani, if you can hear me, were you able to make things correct again? Yes, sir. Yes, no? Okay. Yes, sir. Were you able to see the library management folder and the manage.py file? Yes. Cool. So please make a note of where your library management folder is located. Once you've made a note of it, please open the spider IDE. New project, and then you give the directory. That could be one way. But fine, I'll go with the boring option of opening one file one at a time. So I'll go to my project, which is here. And I will try to show you how the setting file looks like. Right? So we'll just familiarize ourselves with the setting file for now. And then we'll go ahead and create a new application or an app, right? That will be the next step. So for folks who've not seen the Django settings file before, this is basically just sort of configuration manager file. It stores all kinds of details. So Django already has some default apps. Apps are like Django plugins. They do one specific thing at a time. For example, we already have authentication built into Django. So it is also an app or a plugin. We have Django messages. We have special management for a web application. So those are all built in. There's something called middlewares and we'll not talk about those now. It's an advanced Django concept. Django templates are the HTML files that are rendered. So this is basically the templating engine configuration. You have the database, which is also important. And here it gives you a default configuration of an SQLite database. We'll see how that works because that also involves some amount of configuration later on. So I don't want to get into a lot more detail because you're already harassed by the Django file structure anyway. And you have things like time zones and language code, et cetera, et cetera. So this is basically a configuration management file, right? Now let's go back to the console. And like we already mentioned, I hope that everybody is still in their manage.py folder only where they can see the manage.py file. You can now run a command called python manage.py space start app and then the app name. Now the app name that we will give is called library underscore manager. So I'll put the command in the chat so that you can run it. Please run this only from the directory where the manage.py file is located. If you run it from anywhere else, it will obviously not work. People ask me about Jupyter. I think for Jupyter will not be a good idea here because this is not a script. Jupyter is good for scripts. We need a proper file text editor and a file manager. Can everybody see the command in the chat? I'm getting the error of, did you forget to activate a virtual environment? Can you see base on the left? Yes, also module not found error, no module named Django. Okay, I'll come back to you. So for folks who, I just complete the whole cycle for folks who are already able to do this because then they also get confused at the same time. I'll run the command on my local machine so that you can see what happens. I'll clear the screen just for textual clarity. I run the command python manage.py start app paste every manager. Please make sure that the name is the same. Once you run it, if you don't get any error, that means everything is working fine. I'll show you how things look like now. So if I do a tree and the current folder again, I'll be able to see the tree structure of the folder. This will not work for Windows. So we already had library management directory with ASCII, init, settings, URLs, et cetera. We now have a new folder called library manager which is the app folder. It has some other files. It has an admin.py file, which is again a configuration file for the admin interface. We have an app.py file that has data related to this app. We have an init.file for initialization. We have a migration folder, which is for database migration. We'll talk about that later. We have a models.py file. The models.py file is used to store database mapping. So you'll be able, you'll be creating, you'll be writing out Python code to represent your database schema and structure in the models.py file. We'll do this tomorrow. And this is what is, this is what is representing your database in Python code. So this is where you store your database schema and details, the tables, the columns, the field name, et cetera. You have test.py. This is used to write test cases to test your application if it is working properly or not. You have views.py. So like everybody, if you're not aware, a short introduction to Django is that it is called a model view template framework because it contains models to represent the databases, the views to represent the business logic and the template to render that data on the front end. So views is what basically connects your templates, that is your HTML. It also connects things to your database. So you can fetch or pull or push information into your databases. And you can do any sort of manipulation of information and then push it to the template to render that data. So this kind of a folder should show up on your screen. If you want to go inside and look, these are the files that you will see. Going inside and walking through the directory structure, I'll let you do it later on because command line is sort of a tough nut for everybody here. So I'll let you do that later. For folks who are not able to do it, Rahul, can you please share your screen if possible? And I can try to help you. If anybody else is not able to do this at the moment, can you please let me know? So kindly repeat this tree command again. Yeah, tree command doesn't work for Windows, so you need not run that. It doesn't work on Windows. It was just for visually showing that the directory. Okay, otherwise we can manually go and check that these files are there. You can go and check. You can use your Windows Explorer to check, et cetera, whatever you would like to do. Thank you, sir. Rahul, I think you had an issue. Can you please? Just a minute. So right now, I just showed you the settings file. You can open the settings file if you want to, but you are not supposed to change anything in the file. I just showed you a way of how you would use the spider ID to open the file. Okay, I'm not sure. Rahul, can you share your screen again or show me what is going wrong, please? If not, can we move on? Yes, just a minute. Right. Oh, good. Thank you. For Ubuntu. Cool. So you are in base, but you are saying that it says that couldn't import Django. Are you sure it's installed? Okay. Did you use the hyphen you command? I guess no. I did not. No. Okay. Can you do a pip space list to check if Django is installed? Couldn't import Django, which is weird. Model name Django means you not installed it or something went wrong when you were installing it. Yeah, let's wait. And please scroll to the point where D is the dominant letter so that you can check if you have Django in the list or not. We'll take some time. Okay. Let me scroll up, please. Right, so it's not here, which means Django is not installed. So can you do pip space, install space Django? Okay. That's fine. So what you can do is, don't do sudo. Sudo is not going to, sudo will cause problems again, I guess. Can you please, can you also make sure that you use a different folder so you already have library management, then you create another library management is going to cause confusion. So please use a different folder name, install Django, then I'll, once you're done with installation of Django, I'll give you the commands again. We'll just try that. In the meantime, I'll just move ahead with the others so that they are not stalls. If that's okay with you. Okay. Thank you. So has everybody reached the point where they can open the settings.py file in spider and are able to see it. Please don't edit it, but hopefully you are able to see what is happening there. Right. Okay. So what we did up till now is we installed Django. We created a project project. We then also created an app called library manager and we opened a lot of files in spider, which is our ID. Right. So let's see if we can run the basic installation that we've done till, till now. What do we need to do? We will, we'll walk through how Python helps us manage stuff. So there may be a few errors that will show up, but we'll try to solve them along the way. Okay. So we'll type in the command python space manage.py space run server. Right. And it should show you something like this. It will show you something in red, but for now it is fine because I'll tell you what this, this part in red means, but for now this should work fine. Can you please see if you get this after running the run server command. So I'll type the run server command in the chat. This is the run server command. This should work for you. Again, like I mentioned, you should be at the level where manage.py file is located in your command line. If you change your directory somewhere, then you'll have to come back to that direct. Right. In case someone is not able to do this, please let me know. Okay. So a few folks have been able to do it. For those who have been able to do it, you'll see that it says a few things. It says that it did some watching of files. It performed some system checks. Then you get this big blob of text in red. It gives you the date for now. It gives you the Django version number. And then it says it is starting a development server on this thing that looks like a URL. So what that means is it is starting a development server. It is starting a small test server for running the application on your local machine in on this URL. This URL is basically your own IP address, your local host IP address. So what you can do is you can open a Chrome or a Firefox browser and you can actually switch to a tab if you want to and paste that same location. That is 127.0.0.1. Press enter. If everything works fine, you should get some fancy screen like this, which means that you've now done a very, very simple setup of a Django app successfully. For folks who this is not working for as usual, please let me know and we try to solve problems for you. Rahul, in the meantime, you can let me know in the chat if things are working for you as well. Or if you need help, I can repeat the commands that we had already done. I think you were at a point where you needed to do pip install Django, then do pip list, then the Django command for this thing. I can type it out later to Rahul if he wants it. Anyone who's not been able to do this, please let me know. Anyone for whom the command line didn't work as expected, please let me know. Okay. Mohsam, can you please share your screen again for me to understand where you've reached? I do not know at which point you are, so I can't explain much. Akanksha, can you please paste that URL? So please start this URL in the browser. Please open this in browser. Okay, you are unable to share your screen in that case. Are you, Mohsam, can you see the manage.py file? You can unmute and talk if you are able to talk. Yeah, so Ankit has sent the command in the chat, python manage.py, startapp, library underscore manager. That command you need to run. Library manager, not management. You can press up arrow. Up arrow key you can press. Yeah, up arrow. It's fine if it's taking some time. Just remove this current thing that is showing up. Just press enter a couple of times and type in that command that you can see on the chat. Let us know once you've run the command. That should work also. It's fine. So next what we can do is we can add the app to settings and then do a migration. Should we do that now? It's fine. We'll set up the DB. Yeah, we have migrations taken. Correct. Okay, so for folks who have already been able to run the thing in browser successfully, please go back to your spider id editor and open the settings.py file. And I'll tell you the next steps. So I'm guessing everybody is already here in settings.py. Please scroll down in the settings.py file. Please scroll down to the point where it is said that you have the list called installed apps and you should be able to see the settings.py file and should be able to scroll down to a list called installed apps. Please scroll down to the list called installed apps and then at the very end just add a string with quotes. So I'm typing in quotes followed by your app name. What is your app name? Your app name was library manager, not management and followed by a comma at the end just for it's not compulsory but I keep it because it is good practice. Please add this line. Please make sure that you added quotes properly. You've added the name properly. Your spelling is correct. There's an underscore and please make sure you're putting it in installed apps not somewhere else and then save the file, obviously. And I'll wait in chat to understand if anybody's reached this point if they have issues, I can help. Please let me know. Any difference between double quotation or single quotation? Both will work. For Python, no, both will work. Okay, thank you. Yes, I'll leave the screen open. So I'll highlight the portion that I want you to type. It is quotations, library manager followed by comma in the settings.py file. I'll let you folks figure this out. I'll be back in just a few seconds. Thank you. Anyone who's done, please just say done in the chat. Anyone who has any issues, please just raise your issue in the chat. Anything I can help with, that would be great, right? Okay. I think we can go to the next step. Not much to do here. So if you switch back to your command line just out of interest, I can show you that basically this is a development server. So it keeps checking, you know, whether you've made any changes. So once you made that change, it basically kept looking and I think so somewhere it mentioned that, you know, I think I closed it off. Yeah, so here it mentioned that, you know, your settings.py has changed, so I'm reloading and the server gets refreshed so that the changes reflect on your web application as well. This is not important, just a good feature to understand, you know, what is happening. So you can see that this red blob of text is still showing up. What it says is that there are 18 unapplied migrations. Your project may not work properly until you apply the migrations for these apps, admin, auth, content, session, right? Like I mentioned earlier, these apps are basically inbuilt apps. They carry out essential functions within the application. For example, authentication, session management, admin dashboards for, you know, inputting data, et cetera. Each app, every app has its own models, which I said, again, was the database relationships. Models when created newly or when setting up a new project, your system doesn't know what the model is and what the database looks like. So whenever we apply your model changes or we apply a new model onto your database, at that time, we have to run a migration. A migration is basically the step where you programmatically apply whatever changes you've made or any creations of new tables. You're applying those on your database. That is what a migration is. So you're migrating your database to a new schema, which is why it is called a migration. In this case, you've set up a completely fresh project. So there is no SQLite or SQL database here, which is why applying the migration is necessary so that a database is created, the schema is set up, the columns, the databases, the tables are set up, and you can then sort of do further development. To be able to do that, again, I can use Control-C because I'm using Linux, but I think you can use Control-Z or something. You can use that and quit the server and you should come back to this command prompt. So everybody, please quit your server so that you come back to the command prompt and then we'll run the next command. Okay, everybody... Sir, how to quit the server in Linux? I think so, can you try Control with Z? Control with Z, just a minute. Try it, but it didn't work. Control with Z. No, it didn't work. Okay, can you try Control with break? Control-C doesn't work yet? Which, is there... Anyone who is facing issue with Control-C or Control-Break? Yeah, Control-Break is a good option. If Control-Break is not working, then Control function key fm and be simultaneously. If anyone has... don't have break from the keyboard. So I'll just... I don't have break in my keyboard, actually. Yeah, then Control-Fn and be simultaneously. I go for Control-C and what has come out is a sort of OR sign with Z. Is that fine? I'll show you in the chat box. I know, I know. So it is at Control. Come on, come on. This was what you called me. Can you please answer a couple of times? Okay, I think it is already out. It's already out. Yes. Okay, thank you. For persons asking about what to do after the installed apps, nothing, you just exit the server, the running server in a command line. Please say Control-C or Control-Z or Control-Pause-Break, something of that sort, and close your running server in the command line. If Control-C is working, great. No problem. Once you've exited the server, please run Python. Disregard the hash key. That is just for my reference to show you the command. Please type in Python space-manage.py space-migrate. Again, remember you should be at the location where manage.py is located. Python space-manage.py space-migrate. And it should run. A few lines will run and then you should get a success message. So I'll run it so that you have an output reference. So you should get this kind of an output, applying all migrations. Everything should show OK and you will get the command prompt again. I'll leave this here to see. In case anyone is facing issues, please let me know. This is probably a location where some folks may face issues, so we'll try to solve them. Windows doesn't run, doesn't, isn't very friendly with SQL and SQLite sometimes. So it can be a problem. Python-manage.py at migrate. Yes. I'll type. Python-manage.py space-migrate. That is the command. Pranali is asking if this is the output. As long as you come out of that running server, it is fine. Just press enter a couple of times and you should be out. Yes, Ram, out of the loop. Okay, sir, done. Now you can run. Now everybody who's out of the server can run python-manage.py-migrate. Anybody who's still stuck can't do this, can't reach this point, has not been able to run the server. Any problem, please let us know. And I'll try to fix it for you. For folks for whom this worked properly, if you go into your file explorer or someplace to see, you should be able to see, I think I can show it here only. Yeah. You should be able to see a new file called db.sqlite3. This is the database file. This is an sqlite file, which is also a database system or dbms system. This will now store, this contains all your tables, columns, etc, etc. This will also store any future interactions with your database. So that will happen there. And if you delete this later on, it is going to make life difficult for you because you'll have to then do migrations again to lose all your older information. So from now on, please do not delete this file at this moment until told. So you should be able to see this new file in case anyone is not able to see or had any errors with their migrations, please let me know and we'll try to fix it. Did the migrate command work properly? Please let me know. Could you see the db.sqlite file? Could you see this piece of file? Yes, sir. For anyone who is not able to see this file or if the migrations went wrong, please let me know. It is essential that we cover these steps today because these are important steps. The database needs to be set up. Tomorrow we'll be incrementally building on top of this so we can't revisit all these steps tomorrow, it will be too time consuming. You can type in this command next which is python-manage.py-create-super-user This command basically sets up a default super user or a default high level user and that user is now able to access all parts of the website. It is like a root user or a super user in your computer. Right? Okay. Can you go to your file explorer and then check if you can see the file in your library management folder? Nivedita, you say that a total of 148 didn't work for me. I do not understand what that means. Can you please put out an output? Right? So Nivedita and Mosam, can you please help me with some details about what is going wrong? In the meantime, I'll walk people through what happens so once you run this command like I asked you the user main is being asked. Correct. Yes, so you can type in a suitable username that you can remember. Please make a note of it because you can't you will not be able to log in. You'll have to create a new user if you forget this step. So I'm typing in a very generic user name and an email it need not be a very legal email address. That's fine. So you can you can see from the red command that I've typed in a password that is very similar to my user name. So you can make out what it is but I'm doing that just because I want to easily remember what it is. So I'm bypassing the security feature where I say that I'm fine with what password I'm using. Okay. And it should tell you super user is successfully created. This is an important part. So please type in your user name and email address a password write it again somewhere else so that you remember and then it should create be created successfully. I'll switch back to chat because folks are not able to do something L is not okay. Please don't follow along my commands my commands are for my commands are for going to so they'll not work on windows please use dir in windows and check your folder so actually I can't see I've stopped my screen here you can try and share your screen Aditya if you if you're saying that you're unable to type the password just because it's not showing on your screen then it doesn't show on the screen you have you're actually typing it but it is not visible on the screen because password should not be visible on the screen right. It was visible everybody would see it so what is the point of a password I can see your screen now okay so your migrations are correct can you do dir and press enter cool so you should you can see db.spulite right so your migrations have worked correctly now please run the super user command what is the super user command where was it please run this command again and you are good to go everything is working properly so in spider can you open your settings can you go to file open file and then find your settings can you check where you are can you go back to your command line and check where you are where your library management folder is go back to your command line black screen just find it and open that file the command is giving you the exact path can you show your terminal I can tell you what your path is so your library management is in see users morsum correct that is where it is go to users correct go to users go to morsum go to library management go inside the second library management no the one on the top go to open again library management go to settings double flick on settings now go down you can see install apps install apps right that is in front of you just add so it is a list it is a python list so just add one more element at the very end so the app that you created is called library manager just add that name between quotes library manager so has she created the app has she created what has she created the app jango app no not jango can you show your control again app is not created she is not creating the app so please type in this command let me give you the command first type in that command first you already also are able to nice ok you are in the create super user command that is fine first complete this flow that is type in your user name type in your email type in your password and complete this then after that do the start app command that I put in the chat after that you save the settings dot p by 5 add the library manager app there in the name and you are done ok refreshing the browser it does not show anything is it because we have closed the server correct so you already closed the server in the moment let's get back to that part of the story so now you have a super user you have your app and you have a database created so what this command did is in the database it added a new user with a user name and a password combination so now what we will do is we will run the server again so how will we run the server again we will use the run server command let me share my screen again one second yes go ahead what can I suggest Mondega tell you that to share the screen yes I am sharing my screen it should be visible in a moment I think it is visible now yes so you can run your server again and they should they should get the server up and running you can again if you are already you have not opened a tab you can open a tab and paste that link location because I already have it open where is my server yes here it is so now I have pasted my link in the tab what I add to the what I add to the URL is I add slash admin I can't maximize the browser itself but you basically add slash admin at the very end so your URL will look like something like this username field will not be left bank it will give you a default of your computer's username so I recommend not doing all that stuff because then people tend to not remember please use a very generic username password that you can remember and note it down somewhere if you already grabbed the URL please press enter and it should load your admin login interface now it is asking you for a username password now naturally you will put in the username password that you used I used admin I am not telling you my password and you should come to this screen this is where you can do some basic management tasks with your application your Django application so even though in the future if you want to create an application and not create UI Django by default gives you this dashboard where you can do basic data entry stuff so if you have a very simple application which is doing data entry you don't even have to take the pain of creating a UI it gives you this very basic structure and you know it gives you more features here as you will develop the Django library manager app you will also see that here tomorrow you can view the default data that you can manage which is groups and users groups are basically related to permissions we are not going to all of that now in the user if you click you will be able to see a very simple tabular format of data and you will see that you can see one user here which is the admin one that you created if you click on that you will see more information you can change your user name you can even change your password from here there is a very small link here to change your password if you want to do it in the future and you have certain check marks details etc you also have details about the last login and the date that this user was created so that allows you to do a little bit of management you can from here on because you have one super user you can also create more users who do not have super user access so they may not be able to do management level tasks like deleting and creating users etc that is something for another day we will not get into a lot more users now to confuse you but this is basically a very simple dashboard to navigate around your application so you don't need to a lot of frameworks don't have these dashboards so you have to then use an SQL viewer etc to view your to view your database etc here you get all of your database access here itself and it gives you a very convenient way to access the information right so this is called an admin admin or an administrative interface it comes by default it's also a very basic way to interact with your database that about does it for today in the sense that this is what we had to sort of summarize and do this is a very basic setup of your Django application we will do a lot more things tomorrow we did cut we sort of did not follow the schedule exactly here we were supposed to complete one more module called function which you can do after this session if you want to complete later after the session that done you can take some time out from your schedule and do it if you want to function should be the module that should be remaining as per schedule if you have any pending modules please try to complete them before tomorrow but apart from that I am still here we still have some time remaining that is about like 20-25 minutes I and Pratamesh are still here to help you with issues can you please let me know if you have any issues did you use that location you asked us to save that location of our library management we didn't use that so we didn't use that so I basically asked you to save it because you will need it when opening the settings file in spider some people tend to forget some people don't know where the folder is created so I asked you to save it just for reference we will also be doing a lot more editing in spider tomorrow because you will be editing a lot more files so you need that location for your reference so I have a couple of issues that have come in directly to me I will read them out and try to solve them one by one Pratamesh is also trying them one by one so Jyoti I will get to your question a little later I will just try to solve problems first so somebody mentioned that her terminal got closed by mistake what to do now nothing you open your terminal the same way that you opened it last time you have to walk through a few of the commands for example you have to run your server again and you will have to launch the website in your in your browser so you just have to run your server again go to the correct folder run your server again and start it again in your browser somebody said that library manager conflicts with the name of an existing python module you Anmol has asked that library manager conflicts with the name of an existing python module this is funny business it seems that you already created something and you are trying to do it again I am not sure what Anmol if you can share your screen I can try to help you what else who else is there so Bhagya Prathamesh is already trying to help I guess most of once you created the app you can just start your web app server using run server command and then run the run the server in your browser I will publish command list again ok for for so Bhagya who still keeps getting some sort of an error connection refused can you please try sttps can you please try sttps you are doing an sttps please can you try sttps if that doesn't work can you please try localhost as one of the options can you please add the name to add the app name to installed apps and then follow from there Abhishek if you remember you created a super user using create super user command and then you typed in username and password you will be using that to login again if you not created a super user just create one the commands have already been put up on the chat just look at the create super user command run it put in your username and password if you selected blank then you will machine user name why yeah it's terminal user name your username that you see on your folder or wherever on your login page in your computer that is being used if you don't know what your username is etc just run the command again and add in a proper username it will create a new user a second user and you will be able to use that correct so mausam you are able to run things properly please try to access admin URL can you create a super user please and then you can't name your app you have to add the name of your app in installed apps so what is the name of your app your app is library underscore manager please add that to installed apps please add it in quotes just run the file and run your server again sir the work we have done today there is nothing specific about library management probably any web app which you developed by python would have same settings is that correct correct yes thank you can you please try STTPS localhost 80000 slash admin if that is not working then try 8080 so many is your server running can you check in your command line console that the server is running mausam the URL is what I just gave below please use that can you show the terminal where the server is running can you show the terminal where the server is running command prompt yeah you need to run the server so yeah can you do dir yeah so then python space manage.py space run server manage manage spelling sorry sir you can make a tab yeah now you can go there and refresh on the browser thank you sir yeah yeshavani if I am pronouncing right can you share your screen if there is a problem yes sir just a minute sir can you see the screen yes yes I can see can you go to the browser oh ok you are running it on the 80000 port so you need to give 80000 can you hear me yeah you can see at the bottom there is a yeah wait wait don't scroll you can see that line starting developing server at http 127 that line up up up you can see colon that is the port number so you need to give 8000 as the port number let's go to the browser yeah yeah now you can yeah go to that URL so you can simply yeah yeah it's working this one sir yeah this is the URL 127 008000 you can write slash yeah after that slash admin it will work can you ok yeah do it again yeah all the people was not run yeah that is not a problem that is not a problem on the browser it sure it's waiting for play.google.com I don't know but yeah can you go to the web browser admin thing this one yeah yeah yeah simply yeah type localhost shall I create a new one and type yeah yeah fine close the other ones not required we will get confused so localhost colon 8000 oh it will go to google search it will go for google search it's running I guess can you open some random website like google.com anything you can type ok this is so I don't think that is the problem yeah you can close this this is strange now waiting for localhost at the bottom it's taking too much time can you press control r yes sir yeah ok it is waiting for localhost do one thing restart your server go to the terminal press control c exit from here yeah now it came so you can go back and then slash admin after 8000 that's the URL for admin ok yeah yeah the server was a lot of request you had sent so it was yes sir thank you yeah so we don't have anything else to sort of setup or discuss like I mentioned we did sort of go a little off track from the schedule we were supposed to complete function as a module at 245 but I thought that we could sort of complete the whole setup before we did this so we are actually done with today's schedule in general but there is function and modules that are the two yucks chapter that you need to complete please complete them and any other pending chapter before you come in tomorrow so in to be able to view older commands again linux has a history or history command I don't know what it is for windows you can just go back scroll back and make a note of it I am sorry there is no specific command that I know in windows for that Jyoti had a question as to if there is a library for directory structure management for backup program creation I do not know of a specific library but given that python has a lot of small libraries that people do make for their own purposes it is very likely that such a kind of a library exists because backup creation is a very common issue that everyone has python does have the os library and more libraries within it that allow you to create a program that will make backups for you for example if you want to just crawl through your file structure and create tar files out of it or zip files out of it then that is possible with using pure python scripts as well but I am not sure for specific library that does sorry any other questions we are still around for maybe say 5 more minutes and then we will sign off from the live session but you can continue with modules if you want to for people facing problems with the 127 url this has to do something with your network settings in local I am not sure how to solve this I will try to google around and see if I can find a solution for windows and maybe we can discuss it tomorrow if you still face the same problem no this is not about wifi so 127.0.0 is an IP that points to your own how can you say your own public address of your computer it is sort of a loopback address for the public facing interface of your computer if it is not accessible there is sometimes an issue with your network settings somebody is saying there is a port already in use then you are already running the server somewhere else Rohan can you go to the terminals all the terminals that are open yeah so okay so previously you were able to run this server right 127 yeah so it is somewhere running in the background so what you can do try pressing ctrl c again couple of things you can press up arrow and run the command again yeah press up arrow means like the same run server command again yeah press enter yeah so it is already running so what you can do control c is there any other terminal that is open somewhere no sir okay what you do close this session so get out of this exit okay then this won't work this won't work you need to again open the terminal from the anaconda navigator yeah you can go to yeah cd to your project library management so ls what is there is that library management yeah you can no it's library so what is the folder you had created do you remember library management sorry what library management yeah but in which directly you had created don't know sir okay press ls space yeah so what you do is you go yeah back I'm going to say undo that ls and type cd space library management yeah tap you can use tap to autocomplete tap will help you not r it's not r tap do tap so you have to do the entire life library management underscore management now python space space runs out runs out of spelling okay press up arrow space type 8080 8080 8080 yeah 8080 so what we are doing is we are running this in on different port we can do something what we can do but later okay you just close everything restart your system the 8000 port that message will go the port is already now you go to the browser web browser yeah instead of 8000 you can do 8080 the port number only you have to change it was already there no no no 8080 8080 no no no 8080 yeah enter now slash admin also you can do um the yeah you are uh control z nice after yeah yes sir so we have only changed the port currently it is used somewhere that you can figure out it's operating for something you can close a shut your thing restart it will just finish not a problem okay okay thank you thank you sir I have a a little bit of thought so after logging through my username and password well I'm trying to create or fill some data it's not responding due to some because I have not added code or where are you trying to add information after logging in the administration yeah in the admin panel yes sir in the admin panel so inside which option in the users groups where uh both sir I have tried on both options so what is the error like what happened you couldn't save what what went wrong it's not opening basically it's uh going around no so it is possible that you shut off your server maybe can you please check in your console if your server is running go back to your admin interface refresh it should work so it's running sir somebody is running so now it's working sir