<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Django on Redowan&#39;s Reflections</title>
    <link>https://rednafi.com/tags/django/</link>
    <description>Recent content in Django on Redowan&#39;s Reflections</description>
    <image>
      <title>Redowan&#39;s Reflections</title>
      <url>https://blob.rednafi.com/static/images/home/cover.png</url>
      <link>https://rednafi.com/</link>
    </image>
    <generator>Hugo -- 0.161.1</generator>
    <language>en</language>
    <lastBuildDate>Wed, 18 Mar 2026 00:24:52 +0100</lastBuildDate>
    <atom:link href="https://rednafi.com/tags/django/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Sorting a Django queryset by a custom sequence of an attribute</title>
      <link>https://rednafi.com/python/sort-by-a-custom-sequence-in-django/</link>
      <pubDate>Tue, 09 May 2023 00:00:00 +0000</pubDate>
      <guid>https://rednafi.com/python/sort-by-a-custom-sequence-in-django/</guid>
      <description>Sort Django querysets by custom attribute sequences using Case and When expressions for database-level ordering with SQL CASE statements.</description>
      <category>Python</category>
      <category>Django</category>
      <category>Database</category>
    </item>
    <item>
      <title>Debugging a containerized Django application in Jupyter Notebook</title>
      <link>https://rednafi.com/python/django-and-jupyter-notebook/</link>
      <pubDate>Sat, 14 Jan 2023 00:00:00 +0000</pubDate>
      <guid>https://rednafi.com/python/django-and-jupyter-notebook/</guid>
      <description>Connect Jupyter Notebook to Dockerized Django apps using ipykernel and django-extensions for interactive debugging and data exploration.</description>
      <category>Python</category>
      <category>Django</category>
      <category>Docker</category>
    </item>
    <item>
      <title>Manipulating text with query expressions in Django</title>
      <link>https://rednafi.com/python/manipulate-text-with-django-query-expression/</link>
      <pubDate>Sat, 07 Jan 2023 00:00:00 +0000</pubDate>
      <guid>https://rednafi.com/python/manipulate-text-with-django-query-expression/</guid>
      <description>Use Django query expressions like Replace, Upper, Lower, Concat, and Substr for efficient database-level text manipulation without fetching data.</description>
      <category>Python</category>
      <category>Django</category>
      <category>Database</category>
    </item>
    <item>
      <title>Faster bulk_update in Django</title>
      <link>https://rednafi.com/python/faster-bulk-update-in-django/</link>
      <pubDate>Wed, 30 Nov 2022 00:00:00 +0000</pubDate>
      <guid>https://rednafi.com/python/faster-bulk-update-in-django/</guid>
      <description>Accelerate Django bulk_update operations by 4x using multiprocessing to parallelize database writes across chunked record batches.</description>
      <category>Python</category>
      <category>Django</category>
      <category>Database</category>
    </item>
    <item>
      <title>Save models with update_fields for better performance in Django</title>
      <link>https://rednafi.com/python/save-with-update-fields-in-django/</link>
      <pubDate>Wed, 09 Nov 2022 00:00:00 +0000</pubDate>
      <guid>https://rednafi.com/python/save-with-update-fields-in-django/</guid>
      <description>Optimize Django model saves with update_fields parameter to generate leaner SQL queries and improve performance in tight update loops.</description>
      <category>Python</category>
      <category>Django</category>
      <category>TIL</category>
      <category>Performance</category>
    </item>
    <item>
      <title>Dissecting an outage caused by eager-loading file content</title>
      <link>https://rednafi.com/python/outage-caused-by-eager-loading-file/</link>
      <pubDate>Fri, 14 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://rednafi.com/python/outage-caused-by-eager-loading-file/</guid>
      <description>Learn from a production outage caused by loading large CSV files into memory. Stream process files to prevent OOM errors and crashes.</description>
      <category>Python</category>
      <category>Incident Post-mortem</category>
      <category>Django</category>
      <category>Performance</category>
    </item>
    <item>
      <title>Bulk operations in Django with process pool</title>
      <link>https://rednafi.com/python/django-bulk-operation-with-process-pool/</link>
      <pubDate>Mon, 27 Jun 2022 00:00:00 +0000</pubDate>
      <guid>https://rednafi.com/python/django-bulk-operation-with-process-pool/</guid>
      <description>Speed up Django bulk operations with ProcessPoolExecutor while preserving signals and hooks that bulk_create/bulk_update bypass.</description>
      <category>Python</category>
      <category>Django</category>
      <category>Concurrency</category>
      <category>Database</category>
    </item>
    <item>
      <title>Return JSON error payload instead of HTML text in DRF</title>
      <link>https://rednafi.com/python/return-json-error-payload-in-drf/</link>
      <pubDate>Wed, 13 Apr 2022 00:00:00 +0000</pubDate>
      <guid>https://rednafi.com/python/return-json-error-payload-in-drf/</guid>
      <description>Fix Django REST Framework to return JSON error responses for 403, 404, 500 errors using middleware instead of default HTML pages.</description>
      <category>Python</category>
      <category>API</category>
      <category>Django</category>
    </item>
    <item>
      <title>Uniform error response in Django Rest Framework</title>
      <link>https://rednafi.com/python/uniform-error-response-in-drf/</link>
      <pubDate>Thu, 20 Jan 2022 00:00:00 +0000</pubDate>
      <guid>https://rednafi.com/python/uniform-error-response-in-drf/</guid>
      <description>Standardize Django REST Framework error responses using custom exception handlers to match Microsoft&amp;#39;s REST API guidelines format.</description>
      <category>Python</category>
      <category>Django</category>
      <category>TIL</category>
      <category>API</category>
    </item>
  </channel>
</rss>

