The empty path didnt match any of these

hi i am doing a course of python. i am creating vidly app in django. i failed to add bootstrap so everytime i load a page it says -

Page not found (404)

Request Method: GET
Request URL:

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

  1. admin/
  2. movies/base.html

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.

how can i fix it?

Check your file to ensure that you have a valid URL pattern for the homepage (/). It should look something like this:

from django.urls import path
from . import views

urlpatterns = [
    path('', views.home, name='home'),
    # other URL patterns

Also make sure that the views.home function exists and returns a valid response.

Is there anything keeping you from adding bootstrap? It’s pretty easy.

pip install django-bootstrap4

Then just add it to your file

Copy code

    # other apps

Here’s a scratch pad showing you what I mean as far as installing goes. Einblick