Re: Dynamically Altering Settings

2008-12-04 Thread Kyle Fox
@Dj Gilcrease: We had some issues altering settings only with middleware -- basically what happened was when apache got hammered, the settings object would get totally mangled with incorrect data. I'm not an apache expert but we suspect it was because multiple threads were modifying settings at th

Re: Dynamically Altering Settings

2008-12-04 Thread Robert Coup
On Fri, Dec 5, 2008 at 4:12 AM, Kyle Fox <[EMAIL PROTECTED]> wrote: > > Thanks again. At this point I'm considering removing the Sites & > CurrentSiteManager from all of our apps entirely. Maybe I was overly- > optimistic about how Sites could be used; having to write a static > file just to get

Re: Dynamically Altering Settings

2008-12-04 Thread Dj Gilcrease
If I am reading the code right you should be able to set all three settings directly in your middleware. You just need to define TEMPLATE_DIRS = [] in your settings file and make sure the other two are not defined at all. http://dpaste.com/hold/96109/ And as long as that middleware is set as the

Re: Dynamically Altering Settings

2008-12-04 Thread Kyle Fox
Thanks again. At this point I'm considering removing the Sites & CurrentSiteManager from all of our apps entirely. Maybe I was overly- optimistic about how Sites could be used; having to write a static file just to get Sites/CurrentSiteManager working properly is basically a deal-breaker. --~--

Re: Dynamically Altering Settings

2008-12-03 Thread Graham Dumpleton
On Dec 3, 4:52 pm, Kyle Fox <[EMAIL PROTECTED]> wrote: > Yes, we're using mod_wsgi  But I'm not sure that approach saves us > much because I'd still need to write a WSGI file for every site. > > (This might be because of my lack of mod_wsgi-fu, but wouldn't I also > need a VirtualHost directive

Re: Dynamically Altering Settings

2008-12-02 Thread Kyle Fox
Yes, we're using mod_wsgi But I'm not sure that approach saves us much because I'd still need to write a WSGI file for every site. (This might be because of my lack of mod_wsgi-fu, but wouldn't I also need a VirtualHost directive for each site, pointing it to the appropriate WSGI file?) Kyle. -

Re: Dynamically Altering Settings

2008-12-02 Thread Graham Dumpleton
On Dec 2, 4:28 pm, Kyle Fox <[EMAIL PROTECTED]> wrote: > I needed a way to alter settings at runtime, based on the current > Site.  The method I came up with appears to work, but certainly > doesn't feel elegant and (I'm sure) could use improvement.  I'm going > to share my reasoning behind dyna

Dynamically Altering Settings

2008-12-01 Thread Kyle Fox
I needed a way to alter settings at runtime, based on the current Site. The method I came up with appears to work, but certainly doesn't feel elegant and (I'm sure) could use improvement. I'm going to share my reasoning behind dynamic settings in the hopes that it sparks some discussion about ho