print_settings: A super simple and useful custom Django management command

A large number of problems that we have with our Django project at work turn out to be because of settings that are not what they should be (note that our settings are not straightforward to see with a glance at settings.py since we use multiple settings files for production, dev, and common settings). I thought that it might be useful to have a Django management command that shows the settings in effect after all the settings files are processed.

It was super easy to write and is a tiny amount of code, but I have a feeling that this will quickly curtail a lot of problems.

Sample invocation:

2 thoughts on “print_settings: A super simple and useful custom Django management command

Leave a Reply

Your email address will not be published. Required fields are marked *