Django Connexion requise des vues basées sur la classe

class MyView(...):
    # this is a generic view
    ...

my_view = login_required(MyView.as_view())

#and using my_view in your URLconf?
#Like so Myview = login_required(MyView.as_view(), login_url='login_url')
Miguel Mehgoss