TESTING = 'test' in sys.argv
if TESTING:


    class DisableMigrations(object):

        def __contains__(self, item):
            return True

def __getitem__(self, item):
    return 'notmigrations'
MIGRATION_MODULES = DisableMigrations()
How do I disable django migration debug logging?