<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_settings(editor_override=None):
 """Utility function to retrieve settings.py values with defaults"""

    flavor = getattr(settings, "DJANGO_WYSIWYG_FLAVOR", "yui")

    if editor_override is not None:
        flavor = editor_override

    return {
        "DJANGO_WYSIWYG_MEDIA_URL": getattr(settings, "DJANGO_WYSIWYG_MEDIA_URL", urljoin(settings.STATIC_URL, flavor) + '/'),
        "DJANGO_WYSIWYG_FLAVOR":    flavor,
    }