In Django 2.0, you use the path() method with path converters to capture URL parameters. path('posts/<int:post_id>/', post_detail_view).
確定! 回上一頁