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
>
>
>
> 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
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
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
4 matches
Mail list logo