Stating defaults add complexity when reading the code but does not change Django's behaviour.

Django defines a set of default values that can be overridden in the settings file.

Explicitly overriding the default values with the same value as the default value is redundant.

Redundant settings increase noise when developers are reading the settings file, making the code harder to maintain.

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 redundant-setting in your pyproject.toml file.

Read more about configuring Django Doctor.