基本格式
from django.urls import path
from . import views
app_name='posting'
urlpatterns=[
path('posting/',views.index,name='index'),
path('posting/<slug:postTitle>/',views.getPostByTitle), #slug匹配任意字符串到 postTitle 變量(作為函數(shù)參數(shù))
path('posting/<int:name>/',views.getPostByTitle), #匹配任意數(shù)字
]