How To Order Items From The Database - Django Wednesdays #14

in #diy3 years ago (edited)

In this video I'll show you how to Order Items From the Database using the .order_by() filter for Django and Python.

So we want to pull records from the database and display them on a webpage, but also want to order those records in a specific way. How do we do that? It's easy using the .order_by() filter. We can order by any field in the database, in ascending or descending order.

✅ Watch The Entire Django Wednesdays Playlist
https://bit.ly/35Xo9jD

▶️ Get The Code:
http://bit.ly/3sJpeV6

✅ Subscribe To My YouTube Channel:
http://bit.ly/2IGzvOR

▶️ See More At:
https://Codemy.com

✅ Join My Facebook Group:
http://bit.ly/2GFmOBz

▶️ Learn to Code at https://Codemy.com
Take $22 off with coupon code: youtube

✅ Buy a Codemy T-Shirt!
http://bit.ly/2VC9WUN

Coin Marketplace

STEEM 0.36
TRX 0.12
JST 0.040
BTC 70446.49
ETH 3571.68
USDT 1.00
SBD 4.73