title: Using the URLconf defined in first_project.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 tutorial, 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://127.0.0.1:8000" rel="nofollow noreferrer">http://127.0.0.1:8000</a>, it gives me this error:</p>
  
  <p>Using the URLconf defined in first_project.urls, Django tried these URL patterns, in this order:</p>
  
  <p>^$ [name='index']
  admin/
  The empty path didn't match any of these.</p>
  
  <p>You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.</p>
  
  <p>I'm using Django 2.2.5 and Python 3.8.</p>
  
  <p>Here is the code I have in relevant url and view files:</p>
  
  <p>In mysite 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!")
  </code></pre>
  
  <p>In mysite urls.py:</p>
  
  <pre><code>from django.contrib import admin
  from django.urls import path
  from first_app import views
  
  urlpatterns = [
      path(r'^$',views.index,name='index'),
      path('admin/', admin.site.urls),
  ]
  </code></pre>
  
  <p>In mysite setting.py</p>
  
  <pre><code>INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'first_app',
  ]
  </code></pre>
  
  <p>What's going on? Why am I getting 404s?</p>