<s> from django . contrib . admindocs . middleware import XViewMiddleware <EOL> from django . http import HttpResponse <EOL> from django . utils . decorators import decorator_from_middleware <EOL> from django . views . generic import View <EOL> xview_dec = decorator_from_middleware ( XViewMiddleware ) <EOL> def xview ( request ) : <EOL> return HttpResponse ( ) <EOL> class XViewClass ( View ) : <EOL> def get ( self , request ) : <EOL> return HttpResponse ( ) </s>
