I maintain orm-lens , a static analyzer for Django models and migrations. It reads source files only: no database, no settings module, no django.setup() . That makes it fast and lets it run on a half-broken checkout. It also means every model, field and migration has to be understood from the text alone.
This month I ran it over 24 open-source Django codebases it had never seen: NetBox, PostHog, authentik, Plane, paperless-ngx, Healthchecks, saleor, wagtail, Label Studio, pretix, Weblate, Taiga, InvenTree, Kiwi TCMS, Mayan EDMS, Misago, CVAT, Ralph, Zulip, Read the Docs, Nautobot, Tandoor Recipes, wger and django-oscar. Then I read every place where its answer didn't match what Django would do.
None of what follows is a bug in those projects. It is all valid Django and most of it is idiomatic. It just isn't the Django you see in the tutorial, where every model is class Foo(models.Model) and every field is models.Something(...) .…