Thomas Loiret

Blog Info Thomas Loiret - Random thoughts
Blog website Link

Django: deleting a large queryset may lead to high memory usage

April 20, 2025 » Thomas Loiret - Random thoughts » [Archived Version]

Calling .delete() on a queryset matching a large number of objects may lead to high memory usage.

Read More

Django: show me the SQL

Feb. 28, 2024 » Thomas Loiret - Random thoughts » [Archived Version]

8 different ways to see the SQL generated by Django

Read More

Django/DRF: how to authenticate a user in tests?

Jan. 8, 2023 » Thomas Loiret - Random thoughts » [Archived Version]

What are the different options to log a user in tests?

Read More

Django model: change field name with no DB impact

March 6, 2021 » Thomas Loiret - Random thoughts » [Archived Version]

How to avoid operations on your database while you change a model field name.

Read More

Django JSON logging

April 4, 2020 » Thomas Loiret - Random thoughts » [Archived Version]

Use python-json-logger package to output JSON log with Django

Read More

Why I love Django

Sept. 7, 2017 » Thomas Loiret - Random thoughts » [Archived Version]

What's the best thing in Django ?

Read More