title: Django 404 Error: path doesn't go down urls.py
body: <p>So I'm trying to make an index.html for the homepage of my Django project. I made an app called pages.
  <a href="https://i.stack.imgur.com/xRocS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xRocS.png" alt="enter image description here" /></a></p>
  <p>Note that the templates folder is empty (moving index.html to templates did nothing). admin.py and models.py also contain nothing.</p>
  <p>I configured my TEMPLATES settings as such:</p>
  <pre><code>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',
              ],
          },
      },
  ]
  </code></pre>
  <p>In my root project folder, urls.py looks like this.</p>
  <pre><code>from django.contrib import admin
  from django.urls import path
  from django.conf.urls import include
  # from pages.views import home_view
  
  urlpatterns = [
      path('homepage/', include('pages.urls')),
      path('admin/', admin.site.urls),
      path('explorer/', include('explorer.urls')),
  ]
  </code></pre>
  <p>In the views.py file of the pages app:</p>
  <pre><code>from typing import ContextManager
  from django.shortcuts import render
  from django.http import HttpResponse
  
  # Create your views here.
  
  def index(request):
      # Render the HTML template index.html
      return render(request, 'index.html', context=ContextManager)
  </code></pre>
  <p>In the pages app (not project root folder), urls.py looks like this (I created this file myself):</p>
  <pre><code>from django.urls import path
  from . import views
  urlpatterns = [
  path('', views.index, name='index'),
  ]
  </code></pre>
  <p>And index.html:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;title&gt;Test&lt;/title&gt;
  &lt;p&gt;Test&lt;/p&gt;
  </code></pre>
  <p>Here is the full file structure.</p>
  <p><a href="https://i.stack.imgur.com/x2JJA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x2JJA.png" alt="enter image description here" /></a></p>
  <p>Here is what happens when I run the server:</p>
  <p><a href="https://i.stack.imgur.com/LjBPi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LjBPi.png" alt="enter image description here" /></a></p>
  <p>Where <a href="http://127.0.0.1:8000/" rel="nofollow noreferrer">http://127.0.0.1:8000/</a> is the root directory of the localhost.</p>