Django rest framework: redirect if unauthenticated for browsable API

Viewed 2007

I'm not sure how to implement a redirect to login if the user is doesn't meet the permissions criteria, as the documentation states: "Before running the main body of the view each permission in the list is checked." - so overriding methods in the view is fruitless. If anyone could point me in the right direction? Thanks!

1 Answers
Related