Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
選択した行間隔からデータベースから行を取得する方法は? 例: 1. 2. 3. 4. 5. 6. 7.
3から6までの行を返すようにdjangoに指示する方法は?
リストで使用するものと同様のスライス構文を使用できます。
YourModel.objects.order_by('column_name')[2:6]