Updating the default startapp template

It’s already there: Writing your first Django app, part 1 | Django documentation | Django

This is the simplest view possible in Django. To call the view, we need to map it to a URL - and for this we need a URLconf.
To create a URLconf in the polls directory, create a file called urls.py. Your app directory should now look like:

Then, after the directory listing:

In the polls/urls.py file include the following code: