Re: Signal emitted after successful login?
On Jun 29, 9:51 pm, Daniel Hiltonwrote: > On 29 June 2010 20:07, Andy McKay 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 Dan - do you have URL for that "account app" module? Thanks! -- 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.
Re: Signal emitted after successful login?
On 29 June 2010 20:07, Andy McKaywrote: > 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.
Re: Signal emitted after successful login?
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. 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.
Signal emitted after successful login?
Is a signal emitted after a successful login? I need to hook a particular piece of code into that point in the application. -- 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.