Pass settings string to `python-django-util-shorten-settings'

This makes the `match-string-no-properties` call safer as it doesn't get
confused with other match-data that may exist from other string matches.