I am using the django tutorial to create my first polls app and to learn Django
Here are the files I have created so far:
in mysite/urls.py
I have this:
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path("polls/", include("polls.urls")),
path("admin/", admin.site.urls),
]
In polls/urls.py
I have this:
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
]
And in polls/views.py
I have the following:
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the polls index.")
I have been trying with http://localhost:8000/polls/ and it still doesn’t work! Any thoughts please on why that might be?
I have debugged in every way I can but everything looks correct to me. I am using GitHub’s IDE but I don’t think that should be the problem.