Used request.META['SCRIPT_NAME'] as the site_url if it hasn't been customized from the default value of '/'.