<s> from django . views . generic . base import TemplateView <EOL> class MochaView ( TemplateView ) : <EOL> template_name = '<STR_LIT>' <EOL> urlname = '<STR_LIT>' <EOL> def dispatch ( self , request , * args , ** kwargs ) : <EOL> config = kwargs . get ( '<STR_LIT>' , None ) <EOL> if config : <EOL> self . template_name = '<STR_LIT>' . format ( kwargs [ '<STR_LIT>' ] , config ) <EOL> else : <EOL> self . template_name = '<STR_LIT>' . format ( kwargs [ '<STR_LIT>' ] ) <EOL> return super ( MochaView , self ) . dispatch ( request , * args , ** kwargs ) </s>
