title: how to fix this 404 error in django urlconfig patterns
body: <p>I'm creating a basic app in my Django project. I mapped the views to url. While running this project it is showing</p>
  <blockquote>
  <p>404 page not found.</p>
  </blockquote>
  <h1>in urls.py</h1>
  <pre><code>from django.urls import path
  from . import views
  urlpatterns=[
      path(' ',views.index,name=&quot;index&quot;),
  ]
  </code></pre>
  <h1>in views.py</h1>
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  
  # Create your views here.
  def index(request):
      return HttpResponse(&quot;hello world&quot;);
  </code></pre>
  <h1>in project/urls.py</h1>
  <pre><code>from django.urls import include,path
  from django.contrib import admin
  
  
  urlpatterns = [
      path(&quot;myapp/ &quot;,include('myapp.urls')),
      path('admin/', admin.site.urls),
  ]
  </code></pre>
  <p>I expect the output to be like hello world
  <a href="https://i.stack.imgur.com/IMb7W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IMb7W.png" alt="enter image description here" /></a></p>