On 29 June 2010 20:07, Andy McKay <a...@clearwind.ca> wrote:
> On 2010-06-29, at 10:48 AM, tiemonster wrote:
>
>> Is a signal emitted after a successful login? I need to hook a
>> particular piece of code into that point in the application.
>
One easy way is to wrap the login view function and execute your code
once a user has successfully been authorised. If you look at the
account app included in
Pinax, there is an example of how this could work.

HTH,
Dan


>
> Not specifically, if you are using django.contrib.auth last_login is set by 
> some scripts, eg the login django.contrib.auth.login. So you can listen to 
> the save signals on that model.
> --
>  Andy McKay, @andymckay
>  Django Consulting, Training and Support
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>



-- 
Dan Hilton
============================
www.twitter.com/danhilton
www.DanHilton.co.uk
============================

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to