Re: proper place to put startup code

2009-09-10 Thread Dj Gilcrease
On Thu, Sep 10, 2009 at 7:54 AM, Andrew Gwozdziewycz wrote: > > Sorry, I mistyped the email address; moving to django-users > > On Sep 10, 7:04 am, Andrew Gwozdziewycz wrote: >> Hello, >> >> What's the recommended place to put code that should be run once upon >> application initialization? I p

Re: proper place to put startup code

2009-09-10 Thread Andrew Gwozdziewycz
Sorry, I mistyped the email address; moving to django-users On Sep 10, 7:04 am, Andrew Gwozdziewycz wrote: > Hello, > > What's the recommended place to put code that should be run once upon > application initialization? I'm currently doing something along the > lines of: > >    1. Create a new s

proper place to put startup code

2009-09-10 Thread Andrew Gwozdziewycz
Hello, What's the recommended place to put code that should be run once upon application initialization? I'm currently doing something along the lines of: 1. Create a new signal post_init 2. Connecting handlers to post_init in a file startup.py 3. Sending the signal at the top of a mode