Today I learned that we can use Django Rest Framework Paginator’s .to_html()
function to generate the page links html.
But I wasn’t happy with the default html
code. I wanted a custom implementation. I searched around and I found that it uses rest framwork’s default pagination html
file, which not responsive at all.
So, I spent 30 minutes learned how to use my own and building my own using one of several BulmaCSS pagination html templates .
This insight could help programmers gain back a ton of time in dev-loops. Hope you found this helpful!
You can also find a similar post on X where I’m pretty active.
π βΈ» @TnvMadhav