title: 404 Error in "Writing your first Django App" tutorial
body: <p>I am new to programming and have been working through the "Writing your first Django App" Tutorial for version 1.8.  I'm stuck with an error.</p>
  
  <pre><code>Page not found (404)
  Request Method: GET
  Request URL:    http://localhost:8000/polls
  Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
  ^admin/
  The current URL, polls, didn't match any of these.
  </code></pre>
  
  <p>I've seen others with a similar error but did not see a resolution.  I even went so far as to simply copy and paste what is in the tutorial for the files in this section (the top part of section 3) but still haven't seen a resolution.</p>
  
  <p>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>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/', include(admin.site.urls)),
  ]
  </code></pre>
  
  <p>Mysite\polls\views.py</p>
  
  <pre><code>from django.http import HttpResponse
  
  
  def index(request):
      return HttpResponse("Hello, world. You're at the polls index.")
  </code></pre>
  
  <p>Mysite\settings.py</p>
  
  <pre><code>...
  INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'polls',
  )
  
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'django.middleware.security.SecurityMiddleware',
  )
  
  ROOT_URLCONF = 'mysite.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [os.path.join(BASE_DIR, 'templates')],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'mysite.wsgi.application'
  ...
  </code></pre>
  
  <p>I have no idea where the disconnect is but my guess based on the error is that it is with the urls.py file in the main mysite directory... it doesn't seem to read the urlpatterns for polls?  How could this be resolvd? (I should note I tried this with and without the final "/" after polls for the url in the browser).</p>