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)
]
Source:stackexchange.com