| Request Method: | GET |
|---|---|
| Request URL: | http://localhost:8000/ |
Using the URLconf defined in pollapp.urls,
Django tried these URL patterns, in this order:
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.
Here is my pollap.urls:
------------------------------------------------------------------------------------------------------------------
$ cat urls.py
"""pollapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('polls/',include('polls.urls')),
path('admin/', admin.site.urls),
]
---------------------------------------------------------------------------------------------------------------
The other relevant files, which I edited myself, following along with Tutorial01 are included as attachments.
I have scoped and squinted, and it still looks to me as though I didn't make any mistakes in editing the source code.
If I missed something, I'll be embarrassed, but I think I followed the instructions entirely the way they were written.