Entries published on December 20, 2023
Use Django’s system checks
This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction.
Check it out
While you can do very minimal Django setups, more typical use cases tend to involve a mix of applications — your own, some third-party, and some from
django.contrib — and associated configuration, and while you can run a lot of “code quality” checks, it still can be daunting to verify you’re using and configuring Django correctly.
Which is where Django’s system-check framework comes in. The system check runs automatically as part of
manage.py runserver and
manage.py migrate, and can be explicitly run any time you like with
The system-check framework consists of a large number of built-in checks which look …