記錄下常見錯誤
WARNINGS:
?: (urls.W005) URL namespace 'admin' isn't unique. You may not be able to reverse all URLs in this namespace
這個問題是我在路由定義了一個子路由
from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('RBACapp.urls')),
]
給子路由的admin注掉就好了