re_path 기호
- r : 이스케이프 기호
- ^ : 정규식 시작 기호
- $ : 정규식 종료 기호
re_path(r'^pages/$', APIView.as_view())
# 종료 기호 $ 가 없다면, 끝 부분에 아무 값이나 오더라도 허용이 된다는 뜻이다!
정규식: (?P\d+)
re_path(r'^questions/(?P<pk>\d+)/$', QuestionDV.as_view(), name='question_detail')
re_path(r'^posts/(?P<slug>[-\w]+)/$', PostDV.as_view(), name='post_detail')re_path(r'^blog/(?P<slug>[-\w]+)-(?P<pk>\d+)/$', PostDV.as_view(), name='blog_post')re_path(r'^profile/(?P<username>[\w.@+-]+)/$', UserProfile.as_view())re_path(r'^articles/(?P<year>[0-9]{4})/$', PostAPIVIew.as_view())re_path(r'^articles/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})$')re_path(r'^articles/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2})/$', PostDAV.as_view(),
name='post_day_archive')