Re: how to do something at startup

2007-10-03 Thread Forest Bond
Hi, On Sat, Sep 29, 2007 at 10:06:19PM -0700, pength wrote: > well, I am doing some similiar things, for example, I want to show the > time when this Django/Apache server start, and set some "gloabl > variables" which all of my apps can use, just do like this: > I have a primary app named "city",

Re: how to do something at startup

2007-09-30 Thread Mark Green
On Fri, 2007-09-28 at 22:34 -0600, staff-gmail wrote: > James Bennett wrote: > > On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote: > > > >> i'm looking for a way to perform a bunch of initialization tasks > >> right after django startup. > >> > > > > There really is no such thing as "Djang

Re: how to do something at startup

2007-09-29 Thread pength
well, I am doing some similiar things, for example, I want to show the time when this Django/Apache server start, and set some "gloabl variables" which all of my apps can use, just do like this: I have a primary app named "city", and every other app's views.py will add a line as "from myproject.ci

Re: how to do something at startup

2007-09-28 Thread staff-gmail
James Bennett wrote: > On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote: > >> i'm looking for a way to perform a bunch of initialization tasks >> right after django startup. >> > > There really is no such thing as "Django startup"; remember that > Django is hosted inside a web server, and

Re: how to do something at startup

2007-09-28 Thread James Bennett
On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote: > i'm looking for a way to perform a bunch of initialization tasks > right after django startup. There really is no such thing as "Django startup"; remember that Django is hosted inside a web server, and that server processes will come and go over