django Url层级分发

from django.conf.urls import url

urlpatterns = [
    path('admin/', admin.site.urls),
    path('login/', views.login),
    path('index/', views.index),
    url(r'^myurl/',([
        url(r'^test01$/',test01),#一层分发
        url(r'^test02/',([
            url(r'^test04/',test04),#二层分发
            url(r'^test05/',test05),#二层分发
                          ],None,None)),),
        url(r'^test03/$',test03,#一层分发
                    ],None,None)),#后面两个None是必带的两个参数None
]