Seems a bit hacky actually. But if there's no other way...

Thanks a lot Mackenzie!

2007/8/2, Mackenzie Kearl <[EMAIL PROTECTED]>:
>
> you can just create a profile with a field number of times logged in.
> This could be updated in a custom login view that you write.
>
> check out http://www.djangobook.com/en/beta/chapter12/
>
> def login(request):
>     username = request.POST['username']
>     password = request.POST['password']
>     user = auth.authenticate(username=username, password=password)
>     if user is not None and user.is_active:
>         # Correct password, and the user is marked "active"
>         auth.login(request, user)
>         # Redirect to a success page.
>         return HttpResponseRedirect("/account/loggedin/")
>     else:
>         # Show an error page
>         return HttpResponseRedirect("/account/invalid/")
>
>
> >
>


-- 
Best Regards,
Chris Hoeppner - www.pixware.org // My weblog

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to