title: I have an error in django views.py file, httpresponse
body: <p>This is my views.py file, in which i have create a small function.</p>
  <blockquote>
  </blockquote>
  <pre><code>from django.shortcuts import render, HttpResponse
  &gt; 
  &gt; # Create your views here.
  &gt; 
  &gt; 
  &gt; def Index(request):
  &gt;     return HttpResponse(&quot;Danial&quot;)
  </code></pre>
  <p>This is my urls.py file</p>
  <pre><code>from django.contrib import admin
  from django.urls import path
  from api.views import Index
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('', Index),
  ]
  </code></pre>
  <p><strong>This is Error</strong></p>
  <p>Page not found (404)
  Request Method: GET
  Request URL:    <a href="http://127.0.0.1:8000/It%20is%20working..." rel="nofollow noreferrer">http://127.0.0.1:8000/It%20is%20working...</a>!
  Using the URLconf defined in firstProject.urls, Django tried these URL patterns, in this order:</p>
  <p>admin/
  The current path, It is working...!, 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>