Using RedirectView in urls.py
Posted on Sat 30 January 2016 in Web Development • Tagged with Django • 0 Comments
Django's RedirectView is a generic Class-based View (or CBV for short) that is handy whenever you need to implement redirects. It's especially handy in urls.py
for simple use cases where you don't need conditional redirects or any other business logic. In this post, I will explore a use cases when you can use the view directly in the urls.py
module.