2008/8/20 Julien Phalip <[EMAIL PROTECTED]>:
>
>> If the view is running a loop -  how would you provide a variable to another
>> view (that Ajax is calling) about the situation? Let's say a percentage
>> complete -- I immediately think of a global variable, but am not sure how
>> this works in a multi-user web situation.
>
> You could use the cache by setting a key that the other view can look
> up.

The (arguably) right way to store / share data in a webapp is to use
the session. Django provides good session management as explained in
http://www.djangoproject.com/documentation/sessions/

Good luck !

  MrG


> Julien
> >
>



-- 
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.ledcom.ch/
* http://trock.ch/
Others :
* http://kiva.org/

--~--~---------~--~----~------------~-------~--~----~
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