Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dmoho
on Aug 31, 2009
|
parent
|
context
|
favorite
| on:
Tips to a new django developer
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?
jksmith
on Aug 31, 2009
|
next
[–]
Even then, I'd rather see:
DEBUG = socket.gethostname() == 'developmentcomp'
if DEBUG then...
rbanffy
on Aug 31, 2009
|
prev
[–]
It's not
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: