📜  django include - Python 代码示例

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

代码示例1
from django.urls import include, path

urlpatterns = [
    path('index/', views.index, name='main-view'),
    path('bio//', views.bio, name='bio'),
    path('articles//', views.article, name='article-detail'),
    path('articles///', views.section, name='article-section'),
    path('weblog/', include('blog.urls')),
    ...
]