Re: Empty QueryDict on POST

2010-05-31 Thread Shawn Milochik
Try using django-debug-toolbar. It will show the POST and GET values. Also, you can use request.POST.get('formID') instead, which will return None (or the second, optional argument) if it's empty. What is your json_response middleware doing? Could it have anything to do with this? What if you

Empty QueryDict on POST

2010-05-31 Thread Brian
Hello! I could use some help tracking down a problem here. I have a view that starts as follows: @login_required @json_response def save_exercise_week( request, week_id ): formID = request.POST['formID'] But this returns a 500 error because the QueryDict is empty -- MultiValueDictKeyError at