📜  Plusieurs sites d'administration dans la meme URLconf - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:06.753000             🧑  作者: Mango

代码示例1
# urls.py
from django.urls import path
from myproject.admin import advanced_site, basic_site

urlpatterns = [
    path('basic-admin/', basic_site.urls),
    path('advanced-admin/', advanced_site.urls),
]