Starting with Django 2.0, you would just write this: path('posts/<int:post_id>') def post_detail_view(request, post_id): .
確定! 回上一頁