title: Django Tutorial: unexplained 404 error after completing first page
body: <p>I finished <a href="https://docs.djangoproject.com/en/1.9/intro/tutorial01/" rel="nofollow">https://docs.djangoproject.com/en/1.9/intro/tutorial01/</a></p>
  
  <p>The intended behaviour works. My polls index is showing. But there is one unintended consequence that I don't understand. When I go to <code>localhost:8000</code> I get a page not found. Why? </p>
  
  <p>This is my <code>mysite/mysite/urls.py</code> as the tutorial explained.</p>
  
  <pre><code>from django.conf.urls import include, url
  from django.contrib import admin
  
  urlpatterns = [
      url(r'^polls/', include('polls.urls')),
      url(r'^admin/', admin.site.urls),
  ]
  </code></pre>
  
  <p>The server says:</p>
  
  <pre><code>Not Found: /
  [11/Feb/2016 04:25:46] "GET / HTTP/1.1" 404 2010
  </code></pre>
  
  <p>When I delete the polls line, the 404 disappears. I.e.:</p>
  
  <pre><code>from django.conf.urls import include, url
  from django.contrib import admin
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
  ]
  </code></pre>
  
  <p>Now the server says:</p>
  
  <pre><code>Not Found: /
  [11/Feb/2016 04:24:23] "GET / HTTP/1.1" 200 1767
  </code></pre>
  
  <p>So I guess it is some default quirk but I still don't fully know if I am making a mistake or if this is defined behaviour. My other code is the same as in the code snippets of the tutorial.</p>