Any particular reason you can't just use User.objects.count() ?
On Sep 29, 7:16 pm, gustavo Cardoso <gnasce...@gmail.com> wrote:
> Hello Folks,
>
> I need to implement a Counter.
> One variable to store the number of users in my site.
> This variable can't be access in the same time for more than one user.
> How I do this in django. How I create a method that only one user can access
> in the same time?
> Is there some API to lock and release that variable?
> Thanks!
>
> --
> Gustavo Nascente Cardoso
> Ciência da Computação - UFES
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---