Beispiel #1
0
 def redirect_tween(request):
     url = lookup_redirects(redirects, request)
     if url is not None:
         return httpexceptions.HTTPMovedPermanently(location=url)
     return handler(request)
Beispiel #2
0
 def redirect_tween(request):
     url = lookup_redirects(redirects, request)
     if url is not None:
         return httpexceptions.HTTPMovedPermanently(location=url)
     return handler(request)