The first route that is defined under urlpatterns is for django administrtion. You will be asked for your login credentials if you go to this url: http://127.0.0.1:8000/admin/
Second route which has a regex r’^$’ is defined for home. This denotes for an empty string. Therefore if the route is http://127.0.0.1:8000 it calls the home method and renders the view defined in that method.