title: django rest framework -- redirect to login with next parameter if authentication fails
body: <p>How can I use a Django Rest Framework (v2.3.8) <code>APIView</code> to redirect to a login page with the <code>next</code> url parameter set when a User accesses a page without proper authentication?</p>