I'm not able to find the proper syntax for doing what I want to do. I want to do something if a name/value pair is not present. Here is the code in my view:
if (!request.POST['number']):
# do something
What is the proper way to accomplish something like the above? I am getting a syntax error when I try this.