Answers for "django login required class based views"

0

django login required class based views

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')
Posted by: Guest on April-17-2022

Code answers related to "django login required class based views"

Python Answers by Framework

Browse Popular Code Answers by Language