Re: [Feature Request] Having an middleware to be able to force authentication on views by default

2020-03-20 Thread Adam Johnson
I personally am in favour of including this in Django at this point. It seems like a desirable feature, it has circulated the community since 2008 (!), and there are at least two community packages implementing the pattern. No one on this thread is explicitly against it ever happening. I'm in fav

Re: [Feature Request] Having an middleware to be able to force authentication on views by default

2020-03-20 Thread Tobias Bengfort
Hi Mehmet, On 19/03/2020 09.49, Mehmet Ince wrote: > To be honest, I’m kind a confused about how to proceed. Should I > continue with settings to control it or subclass of Auth middleware ?  Remember that many people on this mailing list (me included) are people just like you, so we can only give

Re: [Feature Request] Having an middleware to be able to force authentication on views by default

2020-03-20 Thread Hanne Moa
The oldest code at https://djangosnippets.org that fixes this is from 2008 so I guess something like this have been considered trivial to build yourself ever since then, and hence why it's never been added. Here are some alternatives: https://djangosnippets.org/search/?q=login+required I've been