title: Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
body: <p>I know this question has been asked before, but I haven't found an answer that solves my situation.</p>
  
  <p>I'm looking at the Django <a href="https://docs.djangoproject.com/en/1.10/intro/tutorial01/#write-your-first-view" rel="noreferrer">tutorial</a>, and I've set up the first URLs exactly as the tutorial has it, word for word, but when I go to <a href="http://http://localhost:8000/polls/" rel="noreferrer">http://http://localhost:8000/polls/</a>, it gives me this error:</p>
  
  <pre><code>Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
  ^polls/ ^% [name='index']
  ^admin/
  The current URL, polls/, didn't match any of these.
  </code></pre>
  
  <p>I'm using Django 1.10.5 and Python 2.7.</p>
  
  <p>Here is the code I have in relevant url and view files:</p>
  
  <p>In mysite/polls/views.py:</p>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  
  # Create your views here.
  def index(request):
    return HttpResponse("Hello, world. You're at the polls index.")
  </code></pre>
  
  <p>In mysite/polls/urls.py:</p>
  
  <pre><code>from django.conf.urls import url
  
  from . import views
  
  urlpatterns = [
    url(r'^%', views.index, name='index'),
  ]
  </code></pre>
  
  <p>In mysite/mysite/urls.py:</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>What's going on? Why am I getting 404s?</p>