记录下常见错误
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注掉就好了