Pagination in Flask-SQLAlchemy

Using pagination in Flask-SQLAlchemy is important because often times you’ll have large datasets in your database that you don’t want to appear in your template all at once. By calling the paginate method on your SQLAlchemy model query, you’ll be able to return only the results you want while still having access to the others by going to a different page. In this video, I show you exactly how to use pagination in Flask-SQLAlchemy, and by the end of it, you should know enough to use paginate the results in your apps.
Source: Pretty Printed (YouTube)

Back to Lesson