Re: question about the DEBUG setting

2009-07-17 Thread Shawn Milochik
And as a brief aside, I've found it helpful to have a local_settings.py, which lives outside version control. If you put your database stuff and DEBUG flag there, you never have to fix it when you move to production. --~--~-~--~~~---~--~~ You received this mes

Re: question about the DEBUG setting

2009-07-16 Thread Earl Lapus
> > > > Make the code dependent on checking settings.DEBUG directly? > > Karen > > Oh, I didn't know that my app can get the settings.DEBUG value... I'll try this out, I think this will do. Thanks! -- There are seven words in this sentence. --~--~-~--~~~---~--~~ Y

Re: question about the DEBUG setting

2009-07-16 Thread Karen Tracey
On Thu, Jul 16, 2009 at 8:22 AM, Earl Lapus wrote: > hi all, > > This is a silly newbie question, so please bear with me :D > > Example: > ... > def DoSomethingAwful(request): > if __debug__: > DoDebugStuff() > ProcessRequest() > ... > > In the example above, I want django to call DoDebug

question about the DEBUG setting

2009-07-16 Thread Earl Lapus
hi all, This is a silly newbie question, so please bear with me :D Example: ... def DoSomethingAwful(request): if __debug__: DoDebugStuff() ProcessRequest() ... In the example above, I want django to call DoDebugStuff() *ONLY* if I'm running my app on my development environment. So, my q