As we seen in last post, the application shows default Django page and not the “Hello World!” string. Isn’t it sad?
In this post we will see how to create a “Hello World!” page inside Django application.
Step1: Create View
Create a new file named views.py inside HelloWorld directory and use this code :
Step2: Set the URL Pattern
Open the urls.py file and use this code :
Final Step: Run the server
python manage.py runserver
To terminate/stop the server, press CTRL+c key