Tall models.py with a common prefix

Taller models.py with many Models may be more difficult to maintain than shorter models.py with fewer Models.

There is a limit to how many items a developer can consider when forming a mental model of source code.

It may be time to split an application if models.py is very long.

A good starting point would be to move models with the same prefix to a sub-application.

Are you affected by this? Audit your codebase in seconds to find out.

Configuring this check

Django Doctor will run this check by default. No configuration is needed but the check can be turned on/off using check code model-common-prefix in your pyproject.toml file.

Read more about configuring Django Doctor.