tags:

views:

113

answers:

2

Is there a way I can apply the login_required decorator to an entire app? When I say "app" I mean it in the django sense, which is to say a set of urls and views, not an entire project.

+1  A: 

I think you are looking for this snippet, containing login-required middleware.

Wogan
+3  A: 

Yes, you should use middleware.

Try to look through solutions which have some differences:

Leonid Shvechikov