Skip to content

Adam Johnson

I'm an author and solo consultant working with Ansible, AWS, Django, and Python.

  • By Adam Johnson
  • Based in United Kingdom
  • Roughly two posts per month
  • First post on

Posts per month

Data for this chart is available in the table below
Posts per month
Month starting Posts
Oct 2022 1
Nov 2022 11
Dec 2022 1
Jan 2023 2
Feb 2023 5
Mar 2023 4
Apr 2023 0
May 2023 1
Jun 2023 3
Jul 2023 5
Aug 2023 5
Sep 2023 5
Oct 2023 7
Nov 2023 9
Dec 2023 8
Jan 2024 5
Feb 2024 2
Mar 2024 2
Apr 2024 6
May 2024 3
Jun 2024 3
Jul 2024 0

Any gaps could be due to errors when fetching the blog’s feed.

Most recent posts

Django: Test for pending migrations
This post is an adapted extract from my book Boost Your Django DX, available now. Django requires every change to model fields and meta classes to be reflected in database migrations. This applies even to …
On , by Adam Johnson, 537 words
Python: Fail in three characters with 1/0
Here’s a code snippet I often type: 1/0 When this runs, Python raises ZeroDivisionError: $ python -c '1/0' Traceback (most recent call last): File "<string>", line 1, in <module> 1/0 ~^~ ZeroDivisionError: division by zero …
On , by Adam Johnson, 282 words
Python: Import by string with pkgutil.resolve_name()
Django and other frameworks often allow you to configure classes, functions, or modules to import using strings. To do the same in your own code, use pkgutil.resolve_name() from the standard library (added in Python 3.9): …
On , by Adam Johnson, 144 words