armoredcoding
armoredcoding

Reputation: 53

The empty path didn't match any of these

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")),
]

Upvotes: 3

Views: 1407

Answers (1)

Moon
Moon

Reputation: 4160

try like below.


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

hope it will solve your problem!

Upvotes: 6

Related Questions