On Thursday, August 22, 2013 3:09:45 PM UTC-4, 7equiv...@gmail.com wrote:

> My users will not be able to logout by closing a browser because they have 
> no such interaction with the system. They will be passing an RFID tag over 
> a reader to unlock the door and clock in and a python script will handle 
> the loging in and out. So if I can get the logout to time stamp a database 
> entry I'll be good.
>

Am I just missing your point or you are actually defining a website with a 
login function and a logout function? If so, in the view for login, just 
call

    user.userlogin_set.create(timestamp=datetime.datetime.utcnow())

and in the logout view, just call

    user.userlogout_set.create(timestamp=datetime.datetime.utcnow())


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to