When I use this rate limiter http://www.levigross.com/post/1721427025/django-rate-limiting and preform an ajax request I get this error
django/middleware/common.py", line 84, in process_response
if response.status_code == 404:
AttributeError: 'function' object has no attribute 'status_code'
[CODE]
@ratelimit
@never_cache
def ajaxrequester(request):
if request.is_ajax():
stuff = submitform(request.POST)
return HttpResponse("{'ok':200}",content_type="text/xml")
else:
return HttpResponseForbidden("You don't belong here")
[/CODE]
Any thoughts?
--
http://www.goldwatches.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment