Per Django's Python 3 porting guide, this should be `isinstance(site_url, six.string_types)`.