[Answered ]-When I change admin URL, my project API URL not found. how can I solve it?

1👍

Django URL dispatcher runs through each URL pattern, in order, and stops at the first one that matches the requested URL. Try switching the order:

urlpatterns = [
    path("api/", include("config.api_router")),
    # other urls
    path("", admin.site.urls)
]

Leave a comment