title: Django routing - The empty path didn't match any of these
body: <p>Very basic question and I was surprised I wasn't able to find an answer. I'm just starting looking at django and did an out-of-box intallation. Created a project and created an app.
  The default content of urls.py is very simple:</p>
  
  <pre><code>urlpatterns = [
      path('admin/', admin.site.urls),
  ]
  </code></pre>
  
  <p>And if I open the django site home page, I get the content with a rocket picture. However, like I said, I have created another app in the project, let's say called '<strong>bboard</strong>'. And I have created a simple 'hello world' function in <strong>bboard/views.py</strong></p>
  
  <pre><code>def index(request):
      return HttpResponse('Hello world')
  </code></pre>
  
  <p>to enable it for access through browser, I have modified the original <strong>urls.py</strong> file in the following way:</p>
  
  <pre><code>from bboard.views import index
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('bboard/', index),
  ]
  </code></pre>
  
  <p>This way I can access <strong>localhost:port/admin</strong> and <strong>localhost:port/bboard</strong> URLs, but if I try to open the home page with <strong>localhost:port</strong> now, I get <strong>Page not found</strong> error.</p>
  
  <p><strong>Using the URLconf defined in samplesite.urls, Django tried these URL patterns, in this order:
      admin/
      bboard/
  The empty path didn't match any of these.</strong></p>
  
  <p>if I comment out the second item in urlpatterns list, everything works. So why does the additional pattern impact this and what needs to be done to fix it?</p>