Elektrine lite

← Feed

Adam Johnson :django: :python:

adamchainz@fosstodon.org

<p>:django: <a href="https://fosstodon.org/tags/Django" class="mention hashtag" rel="tag">#<span>Django</span></a> blogger and contributor<br />✍️ Author of three books on Django and Git<br />🍕 Django London co-organizer<br />🇬🇧 London / 🇵🇹 Lisbon</p>

Posts

  • Post #4266641

    ✍️ Introducing django-crawl, a tool for crawling your local Django site, useful for quickly finding what’s broken or performing site-wide checks. https://adamj.eu/tech/2026/07/22/introducing-django-crawl/ #Django #Python

  • Post #4266640

    RE: https://fosstodon.org/@wsvincent/116974491101390855 🐛 let the bugs crawl to you…

  • Post #4266639

    ✍️ Django’s release code words, up to the pending Django 6.1 “mélange”. https://adamj.eu/tech/2026/07/24/django-release-code-words-6.1/ #Python #Django

  • Post #4266638

    ✍️ New post on using unittest.mock to spy on function calls. 🕵️‍♂️ I recently learned how to use the wraps argument to track all calls to a target function for later assertions. Very useful for testing things like “is caching working?” without having to mock the function completely. #Python https://adamj.eu/tech/2026/07/25/python-spy-unittest-mock-wraps/

  • Post #4266637

    ✍️ New post on a Python testing technique: inspecting interleaved calls across multiple mocks with attached mocks. #Python https://adamj.eu/tech/2026/07/27/python-mock-attach-mock/

  • Post #4266636

    What do you see?

  • Post #1673769

    ✍️ New post detailing a workaround I came up with for “leak” beahviour from Python 3.14’s new garbage collection algorithm. Topical as @hugovk recently announced that the algorithm will be reverted in the next patch release! https://adamj.eu/tech/2026/04/20/django-python-3.14-incremental-gc/ #Django #Python

  • Post #1105125

    🚀 Django 6.0 is out! This is a super exciting new release, introducing the tasks framework, template partials, Content Security Policy support, improved email handling, and lots more! Here are my annotated and expanded highlights from the release notes: https://adamj.eu/tech/2025/12/03/django-whats-new-6.0/ #Django

  • Post #1089766

    ✍️ New post introducing profiling-explorer, a tool for exploring Python profiling data (pstats files). Use it with the classic cProfile (now called profiling.tracing) or Python 3.15’s new sampling profiler, Tachyon (profiling.sampling). https://adamj.eu/tech/2026/04/03/python-introducing-profiling-explorer/ #Python

  • Post #818058

    I&amp;#39;ve just done a pass over a client project with deptry, and it worked great for finding unused dependencies! https://deptry.com/ #Python

  • Post #813301

    Wow, thanks @hugovk for making my &amp;quot;import datetime as dt&amp;quot; recommendation official in the Python docs, with a link to my blog! https://github.com/python/cpython/commit/d3b6faf9758dce236d45c708a450437cdc3e97cd#diff-591e6aa401ebcd90f71f28b517b3d4437ba293920787df9ed06e037af0b07175 #Python

  • Post #797416

    This is an amazing opportunity to work on an amazing open source web framework with a lovely community! https://fosstodon.org/@django/114752618650214604

  • Post #782604

    Seen a new weird one today: a long slop blog post generated off a Django PR I recently reviewed. This company&amp;#39;s whole blog is like this, trying to capture attention by getting LLMs to assemble &amp;quot;content&amp;quot; from public PRs and facts about their authors. So bizarre.

  • Post #731447

    ✍️ New post showing how to implement HTTP Bearer authentication in Django. No need for a heavyweight framework: you can write token-based auth for a small API in just a few lines of code, for which this post shows a reusable decorator. https://adamj.eu/tech/2025/11/25/django-bearer-authentication/ #Django