Reputation: 53
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
Reputation: 4160
try like below.
path('',include('my_app.urls'))
hope it will solve your problem!
Upvotes: 6