Re: how to scale (was: how to do something at startup)

2007-10-03 Thread Udi
Check out: http://ant.apache.org/ These types of deployment & initialization tasks should be handled by the surrounding environment, not Django itself. I suggest you use ant or something similar to set up some scripts for yourself that coordinate everything. --~--~-~--~~--

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 scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 20:37 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > I'm not sure what drove me to call it "fragment caching". > > What I really meant to point at are the little things (such as > > form_for_model()) that would likely benefit from some obj

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 20:29 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > My question was really only about the former, a much simpler problem: > > How to keep a tcp connection persistent and re-use it across requests? > > By using a pooling connection manage

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread James Bennett
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > I'm not sure what drove me to call it "fragment caching". > What I really meant to point at are the little things (such as > form_for_model()) that would likely benefit from some object > caching instead of burning cycles for each request. You c

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread James Bennett
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > My question was really only about the former, a much simpler problem: > How to keep a tcp connection persistent and re-use it across requests? By using a pooling connection manager external to Django. Again, complicating the application layer wi

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
oss requests". Further problems arise when you need to integrate with a remote peer that simply depends on persistent connections. My current candidate is the spread toolkit (http://www.spread.org) but it's certainly not the only piece of "environmental software" working that way.

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread James Bennett
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > Hm, this raises some serious scalabity questions for me. > >From your description it sounds like there is no template > fragment caching, not even db connection pooling possible > with django? You can cache anything you want to cache; read the c

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 scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Fri, 2007-09-28 at 22:29 -0500, 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

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

how to do something at startup

2007-09-28 Thread Mark Green
hi all, i'm looking for a way to perform a bunch of initialization tasks right after django startup. where would i put such things and how/when are they called? -mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro