when I change admin URL, my project API URL not found. how can I solve it? #4016
Replies: 2 comments
-
Can you show us all your paths please? |
Beta Was this translation helpful? Give feedback.
-
+1 it depends in which order the paths are defined. That might be because the admin has a catch-all URL. It's it's located before the API one, then the catchall URL would match before the API. Note that this view always matches, whether or not the URL exists on the admin:
Generally speaking, I would strongly advise against defining your admin path without prefix: |
Beta Was this translation helpful? Give feedback.
-
Hi
path("admin/", admin.site.urls),
topath("", admin.site.urls),
That much is fine.but API Not Found
or i need
path("api/", include("config.api_router")),
Note: when I use it
path("admin/", admin.site.urls),
API is workedBeta Was this translation helpful? Give feedback.
All reactions