I am trying to implement SayHello app page. This is my urls.py content
from django.urls import path
from hello.views import myView
urlpatterns = [
path('admin/', admin.site.urls),
path('sayHello/',myView),
]
After adding this app to the URL, 'http://127.0.0.1:8000/sayHello/' works fine.
But 'http://127.0.0.1:8000/' reports me the following 404 error page.
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/
Using the URLconf defined in editdojo_project.urls, Django tried these URL patterns, in this order:
admin/
sayHello/
The empty path didn't match any of these.
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.
How can I fix this bug?