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.

If we spot this issue in your GitHub pull request we give this advice:

Protect your pull requests from over 40 types of common Django technical debts with our GitHub code review bot.

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 tall-models in your pyproject.toml file.

Read more about configuring Django Doctor.