Changes between Initial Version and Version 1 of Ticket #11802
- Timestamp:
- Aug 29, 2009, 3:17:27 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11802
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #11802 – Description
initial v1 1 1 Assuming that an AJAX query posts (start, limit) for retrieving Polls (Django tutorial), writing the following code leads to request.POST problem. 2 2 3 {{{ 4 #!python 3 5 from django.core import serializers 4 6 from django.http import HttpResponse … … 20 22 21 23 return respond(rows, totalCount) 22 24 }}} 23 25 24 26 surprisingly, fixing the code to: 25 27 {{{ 28 #!python 26 29 totalCount = Vehicle.objects.aggregate(Count('id'))['id__count'] 27 30 }}} 28 31 fixes the request.POST exception. The issue is that the django error report about request.POST not having a key named 'start' or 'limit' distracts the programmer to debugging the front end AJAX code rather than focusing on the Python bug. It also may indicate a more fundamental issue that exhibits random behavior.