from django.urls import path,re_path
from app1 import views as views

urlpatterns = [
    path('index',views.index), # 精确匹配
    path('article/<int:id>', views.article), # 匹配一个参数
    path('articles/<int:year>/<int:month>/<slug:slug>/', views.article_detail), # 匹配两个参数和一个slug
    re_path('articles/(?P<year>[0-9]{4})/', views.year_archive), # 正则匹配4个字符的年份
    path('get_time',views.current_time)

]
