def basic_challenge(realm = None):
    if realm is None:
        try:
            realm = Site.objects.get_current().name
        except:
            realm = "Secured Area"
    response = HttpResponse('Authorization Required', mimetype="text/plain")
    response['WWW-Authenticate'] = (realm) % 'Basic realm="%s"'
    response.status_code = 401
    return response
dataset/ETHPy150Open fp7-ofelia/ocf/vt_manager/src/python/vt_manager/common/middleware/basicauth.py/basic_challenge/swapped operands of `%`