Application scope variable

2012-05-10 Thread vamsy krishna
Hi, I'm using an IMAP connection in my application and want to use the same connection across sessions to fetch the relevant data. I added the below snippet in my settings.py file and importing connection in my view function where I need this. However this is instantiating the variable each time f

Re: Application scope variable

2009-11-23 Thread Christophe Pettus
On Nov 22, 2009, at 9:58 PM, aurphir wrote: > 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. I also forgot to mention: If the variable is more or less read-only, and does no

Re: Application scope variable

2009-11-22 Thread Christophe Pettus
On Nov 22, 2009, at 9:58 PM, aurphir wrote: > 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. Django applications do not really "start" or "stop"; they'

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