Django Tutorial Help

I’m currently on the Django Course in the ORM section and I’m having trouble getting the URL for the website. I have the file most provided at the beginning of the course but I get this error instead of what mosh has on his screen. The error: Page not found (404)

Request Method: GET
Request URL: http://127.0.0.1:8000/playground/hello

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

  1. admin/

The current path, playground/hello, didn’t match any of these.

Hi, it seems to be an issue with your url configurations: make sure the root urls.py file in the storefront folder looks like below:

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

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

Also make sure the urls.py file in your playground folder is mapped to the right view function like below:

from django.urls import path
from . import views

urlpatterns = [
path(‘hello/’, views.say_hello)
]

Can you try and see if it works?