#NEWLINE# def dispatch( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# if getattr ( settings , 'DEBUG' , False ) : #NEWLINE# #INDENT# return super ( SSLRequiredMixin , self ) . dispatch ( request , * args , ** kwargs ) #NEWLINE# #UNINDENT# if ( not request . is_secure ( ) ) : #NEWLINE# #INDENT# if self . raise_exception : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# return HttpResponsePermanentRedirect ( self . _build_https_url ( request ) ) #NEWLINE# #UNINDENT# return super ( SSLRequiredMixin , self ) . dispatch ( request , * args , ** kwargs )