<s> from django . http import HttpResponse <EOL> from django . views . generic . base import View <EOL> def sample_view ( request , * args , ** kwargs ) : <EOL> response = HttpResponse ( "<STR_LIT>" ) <EOL> response . args = args <EOL> response . kwargs = kwargs <EOL> return response <EOL> class ClassView ( object ) : <EOL> def __call__ ( self , request , * args , ** kwargs ) : <EOL> return sample_view ( request , * args , ** kwargs ) <EOL> class_view = ClassView ( ) <EOL> class MethodView ( object ) : <EOL> def method ( self , request , * args , ** kwargs ) : <EOL> return sample_view ( request , * args , ** kwargs ) <EOL> method_view = MethodView ( ) . method <EOL> class GenericView ( View ) : <EOL> def get ( self , request , * args , ** kwargs ) : <EOL> return sample_view ( request , * args , ** kwargs ) <EOL> generic_view = GenericView . as_view ( ) </s>
