polls app Page not found (404)

I removed the file, and type in the terminal:

python manage.py migrate
python manage.py runserver

but still it doesn’t work:

What are the contents of your mysite/urls.py file?

mysite/mysite/urls.py

from django.contrib import admin
from django.urls import path

urlpatterns = [
path(‘admin/’, admin.site.urls),
]

Thank you very much for your help.
I replace this above by:

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

urlpatterns = [
path(‘polls/’, include(‘polls.urls’)),
path(‘admin/’, admin.site.urls),
]

Now i can see the polls page but i cannot se anymore the index page.
Any clue what to do ?

Your browser submits a request for a url. Django looks up that request in your urlpatterns. When it finds a matching pattern, it calls the view for that pattern.

So if you can’t see a specific view, what do you think the reason might be?

I guess that the view or the urlpattern doesn’t exsist.

Shoud I write the last line with something in replacement of “???”

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

urlpatterns = [
path(‘polls/’, include(‘polls.urls’)),
path(‘admin/’, admin.site.urls),
path(’’, include(’???’)),
]

How did you access the index page previously?

I don’t know.
I tried to do again te tuto and I notice that until I decomment the line with # the index page is no more accessible.

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

urlpatterns = [
#path(‘polls/’, include(‘polls.urls’)),
path(‘admin/’, admin.site.urls),
]