The “settings.html” template has an else branch that shows Outlook Mail. That link assumes the Outlook integration app/urls are installed. Incase they aren’t, the reverse fails.
Using {% url 'outlook_view_records' as outlook_url %} makes the {% url %} tag not raise if the name doesn’t exist; it just sets an empty string. Then the {% if outlook_url %} hides the link.