1from django.urls import include, path
2
3urlpatterns = [
4 path('index/', views.index, name='main-view'),
5 path('bio/<username>/', views.bio, name='bio'),
6 path('articles/<slug:title>/', views.article, name='article-detail'),
7 path('articles/<slug:title>/<int:section>/', views.section, name='article-section'),
8 path('weblog/', include('blog.urls')),
9 ...
10]
11