@allow_public
@cache_control(public=True, must_revalidate=True, max_age=((3600 * 24) * 7))
def search_plugin(request):
 return render(request, 'phonebook/search_opensearch.xml', content_type='application/opensearchdescription+xml')

@ allow_public @ cache_control ( public = True , must_revalidate = True , max_age = ( ( 3600 * 24 ) * 7 ) ) def search_plugin ( request ) : return render ( request , 'phonebook/search_opensearch.xml' , content_type = 'application/opensearchdescription+xml' )
render an opensearch plugin .