Re:Tips to a new django developer
by dmoho on Monday August 31, 2009 @03:54PM
(#796589)
What if the assignment to the boolean was only one of the things you wanted to execute based on the result of the if statement?
[ Parent
| on HN ]
Even then, I'd rather see:
DEBUG = socket.gethostname() == 'developmentcomp'
if DEBUG then...