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:

   1. polls/
   2. admin/

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),
]

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/de9f9d0f-4d88-43ae-9439-dcfed969f247n%40googlegroups.com.

Reply via email to