Re: Login/ Logout user details
On Thu, Aug 9, 2012 at 1:19 PM, Pervez Mulla <mullapervez@gmail.com> wrote:
> Please tell me how can I know ,the details about user login and logout
> details , and how can I store that data in DB in Django.
User model (auth.models.User) has last_login and if you need custom
data stored you can try using:
https://docs.djangoproject.com/en/1.4/topics/signals/
it will enable you to "catch" events on models and get data from
request/response.
based on that you should have enough data to start.
Aljosa
--
https://twitter.com/maljosa
https://github.com/aljosa
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home