1👍
✅
Run python manage.py show_urls
to see is your URL registered properly or not. (It’s part of django-extensions
package, very useful.)
If not, include yours app’s urls into your project urls.py.
Example:
# project urls.py
from django.urls import path, include
urlpatterns = [
path("", include("shop.urls")),
]
# app shop/urls.py
from django.urls import path
from shop.views import catalog
urlpatterns = [
path("", catalog.CatalogueView.as_view(), name="home"),
]
Source:stackexchange.com