def METHOD_NAME(request):
    domain = "%s://%s" % (request.scheme, request.META.get('HTTP_HOST'))
    return render(request, 'packages/opensearch.xml',
                  {'domain': domain},
                  content_type='application/opensearchdescription+xml')