title: django 2.0.4 urls not working
body: <p>Django suddenly does not seem to be processing urls correctly. I followed part 3 of "Writing your first Django app" again with just a polls view and the urlsconf. It isn't working. What am I missing?</p>
  
  <p>Here is my 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>Here is my 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>whyitsnotworking\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>whyitsnotworking\settings.py:</p>
  
  <pre><code>INSTALLED_APPS = [
      'polls',
  </code></pre>
  
  <p>Here is the directory for my polls app:
      migrations
      admin.py
      apps.py
      models.py
      tests.py
      urls.py
      views.py
      <strong>init</strong>.py</p>
  
  <p>I can run the test server:</p>
  
  <pre><code>Run 'python manage.py migrate' to apply them.
  April 08, 2018 - 16:25:27
  Django version 2.0.4, using settings 'whyitsnotworking.settings'
  Starting development server at http://127.0.0.1:8000/
  Quit the server with CTRL-BREAK.
  [08/Apr/2018 16:25:33] "GET / HTTP/1.1" 200 16348
  Not Found: /polls
  [08/Apr/2018 16:25:39] "GET /polls HTTP/1.1" 404 1964
  </code></pre>
  
  <p>But get the following error message:</p>
  
  <pre><code>Page not found (404)
  Request Method:     GET
  Request URL:    http://127.0.0.1:8000/polls
  
  Using the URLconf defined in whyitsnotworking.urls, Django tried these URL     patterns, in this order:
  
      admin/
  
  The current path, polls, didn't match any of these.
  </code></pre>