def apply(settings):
    """Modify settings."""
    if 'DATABASE_ROUTERS' not in settings:
        settings['DATABASE_ROUTERS'] = []
    settings['DATABASE_ROUTERS'] += ['kalabash_amavis.dbrouter.AmavisRouter']
    if 'SILENCED_SYSTEM_CHECKS' not in settings:
        settings['SILENCED_SYSTEM_CHECKS'] = []
    settings['SILENCED_SYSTEM_CHECKS'] += ['fields.W342']
    settings['AMAVIS_DEFAULT_DATABASE_ENCODING'] = 'LATIN1'
