Multiple decorators for a view in Django: Execution order
Now, the decorators in Python work from the inside out Well I guess that depends on your definition of inside out. In your case, you want @login_required to execute first, and so it should be the “outermost” (top) decorator. As you noted, your last example works, and is indeed the correct way to do this. … Read more