Using the URLconf defined in mysite.urls, Django tried these URL patterns, 
in this order:

polls/ [name='index']

The current path, polls/, didn't match any of these.

My code is... from (app)polls

from django.urls import pathfrom . import views

urlpatterns = [
    path('', views.index, name='index'),]

from (project)mysite

from django.urls import include, pathfrom django.contrib import admin

urlpatterns = [
    path('polls/', include('polls.urls')),

from project file

from django.shortcuts import renderfrom django.http import HttpResponse
def index(request):
    return HttpResponse("Hello world, you are at the polls index.")

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 post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Reply via email to