A simple Django middleware that converts all HTTP 301/302 responses for XHR
requests into HTTP 200 responses with an extra
This is especially helpful when implementing "pjax"-based applications without having to completely change an application's urlconf to avoid redirects.
xredirect.middleware.XRedirectMiddleware to your
your Django application settings.