About 11 results
https://rednafi.com/python/sort-by-a-custom-sequence-in-django/ · 9 May 2023
Sort Django querysets by custom attribute sequences using Case and When expressions for database-level ordering with SQL CASE statements.
https://rednafi.com/python/django-and-jupyter-notebook/ · 14 Jan 2023
Connect Jupyter Notebook to Dockerized Django apps using ipykernel and django-extensions for interactive debugging and data exploration.
https://rednafi.com/python/manipulate-text-with-django-query-expression/ · 7 Jan 2023
Use Django query expressions like Replace, Upper, Lower, Concat, and Substr for efficient database-level text manipulation without fetching data.
https://rednafi.com/python/faster-bulk-update-in-django/ · 30 Nov 2022
Accelerate Django bulk_update operations by 4x using multiprocessing to parallelize database writes across chunked record batches.
https://rednafi.com/python/save-with-update-fields-in-django/ · 9 Nov 2022
Optimize Django model saves with update_fields parameter to generate leaner SQL queries and improve performance in tight update loops.
https://rednafi.com/python/outage-caused-by-eager-loading-file/ · 14 Oct 2022
Learn from a production outage caused by loading large CSV files into memory. Stream process files to prevent OOM errors and crashes.
https://rednafi.com/python/django-bulk-operation-with-process-pool/ · 27 Jun 2022
Speed up Django bulk operations with ProcessPoolExecutor while preserving signals and hooks that bulk_create/bulk_update bypass.
https://rednafi.com/python/return-json-error-payload-in-drf/ · 13 Apr 2022
Fix Django REST Framework to return JSON error responses for 403, 404, 500 errors using middleware instead of default HTML pages.
https://rednafi.com/python/uniform-error-response-in-drf/ · 20 Jan 2022
Standardize Django REST Framework error responses using custom exception handlers to match Microsoft's REST API guidelines format.
https://cuducos.me/como-organizar-um-projeto-em-django.html · 24 Nov 2021
Em 2016 começamos a Operação Serenata de Amor e uma das necessidades da nossa equipe de cientistas de dados era ter uma ferramenta fácil para ver os detalhes de qualquer reembolso específico feito pela Câmara dos Deputados a parlamentares. Assim nasc...