Re: Class-based views & authentication

2011-02-17 Thread Andre Terra
Reported! http://code.djangoproject.com/ticket/15328 Sincerely, André Terra 2011/2/16 Łukasz Rekucki > On 16 February 2011 19:46, Andre Terra wrote: > > I should also add that the functionality described in the docs simply did > > not work for me: > > > http://docs.djangoproject.com/en/dev//

Re: Class-based views & authentication

2011-02-16 Thread Łukasz Rekucki
On 16 February 2011 19:46, Andre Terra wrote: > I should also add that the functionality described in the docs simply did > not work for me: > http://docs.djangoproject.com/en/dev//topics/class-based-views/#decorating-the-class > > My attempt to follow that approach is registered here: > http://dp

Re: Class-based views & authentication

2011-02-16 Thread Andre Terra
I should also add that the functionality described in the docs simply did not work for me: http://docs.djangoproject.com/en/dev//topics/class-based-views/#decorating-the-class My attempt to follow that approach is registered here: http://dpaste.com/hold/423359/ Sincerely, Andre Terra On Wed, F

Re: Class-based views & authentication

2011-02-16 Thread Andre Terra
Thank you for sharing that, Pascal. I'm already using it on my project! I've modified get_login_url to fallback to settings.LOGIN_URL, though. I'll keep an eye open on the development of this, as CBVs really are great to work with. Sincerely, Andre Terra On Wed, Feb 9, 2011 at 4:06 PM, Pascal

Re: Class-based views & authentication

2011-02-09 Thread Pascal Germroth
Hi, >> To make things a bit easier, I'm about to write my own mixin for that so >> I only have to provide a method that checks if credentials are OK. > > As you've noticed, you can override the dispatch to decorate the view > as required, and if you have a common authentication pattern, you can >

Re: Class-based views & authentication

2011-02-08 Thread Russell Keith-Magee
On Tue, Feb 8, 2011 at 11:34 PM, Pascal Germroth wrote: > Hi, > > I'm new to Django, but since this project will take a while I'm already > using 1.3 alpha since it will probably be released when I'm done… > > As I understand it, the preferred method now are class-based views. But > I seem to be m

Class-based views & authentication

2011-02-08 Thread Pascal Germroth
Hi, I'm new to Django, but since this project will take a while I'm already using 1.3 alpha since it will probably be released when I'm done… As I understand it, the preferred method now are class-based views. But I seem to be missing some kind of AuthenticationMixin… right now, have to override