I am a newbie to django and I have been stuck here from the past two days please help me
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
The empty path didn't match any of these.
Views.py
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello Chiku")
polls/urls.py
from django.urls import path
from polls import views
urlpatterns = [
path('', views.index, name='index'),
]
mysite/urls.py
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('polls/', include("polls.urls")),
path('admin/', admin.site.urls),
]