The empty path didn't match any of these

Viewed 1186

Using the URLconf defined in personal_portfolio.urls, Django tried these URL patterns, in this order: admin/ projects/ The empty path didn't match any of these.

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

urlpatterns = [
    path("admin/", admin.site.urls),
    path("projects/", include("projects.urls")),
]
1 Answers

try like below.


path('',include('my_app.urls'))

hope it will solve your problem!

Related