In this video, we are going to start building our Web Base Network Automation Application. 2
Okay let’s just start. 3
Let’s open the command prompt. Let’s create a new project. 4
Let’s try to dir. Here we can see that we have a new folder with the same name as our project. 5
Let’s cd to this directory. 6
Now let’s create a new app. 7
Okay now we have a new app. In this video, we are going to display hello world. 8
Let’s open the code editor. First, we need to register our new app to settings.py. 9
Here in the INSTALLED_APPS, let’s register the network_automation apps. 10
Next, let’s edit urls.py file. 11
Let’s remove unnecessary script. 12
And we need to import include here 13
Let’s add a new path. In this case we use root url. And then include network_automation.urls, 14
network_automation is the name of our app. 15
Next, we need to create urls.py file inside network_automation directory. 16
We can just copy and paste from urls.py file inside our project directory. 17
We don’t need admin here. We can just delete it. We also don’t need include. 18
Now let’s change this to views.home. 19
Because we use views here, so we need to import it. 20
Now let’s create home function in views. 21
Let’s import HttpResponse first. 22
Now let’s create the home function 23
We will just return a simple html expression to show hello world here. 24
Let’s run our project. Open the command prompt and type python manage.py runserver 25
Let’s open the browser and navigate to 127.0.0.1:8000. 26
Okay, now we get Hello World! This is the end of this video. 27
In the next video we are going to add a bootstrap to our project. 28
Thankyou for watching and see you on the next video.