How do I update a global variable?

2010-06-18 Thread aurphir
In my django application I have a global variable 'gv' which is accessed by different requests coming from the end users. Now 'gv' holds a data of 2 MB size which needs to be update at regular interval, pulling 2 MB data from the database for every request doesn't make sense. For this I have plan

Django query with related models

2010-03-10 Thread aurphir
For the below models: class Customer(models.Model): id = models.IntegerField(primary_key=True) class OrderA(models.Model): name = models.CharField(max_length=20) foo = models.FloatField() customer = models.ForeignKey(Customer) type = models.IntegerField() class OrderB(models.

Application scope variable

2009-11-22 Thread aurphir
Hi, How can I have an application scope variable which should be loaded everytime the app starts app, be in memory and accessible by all until the app stops. Thanks Vishal -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,