Exemplo n.º 1
0
 def process_request(self, request, *args, **kwargs):
     if not request.is_secure():
         return build_ssl_http_response(request)
     return None
Exemplo n.º 2
0
 def _view(request, *args, **kwargs):
     if not request.is_secure():
         return build_ssl_http_response(request, url=redirect_to)
     return view_func(request, *args, **kwargs)