I'm building a rating system using AJAX (well, maybe AJAJ?) in Django.
I've got it working and am doing some clean up and validation work.  A
few questions:

1. If a request is invalid, what is the appropriate or common thing to
do?  Send a JSON error message?  Send a 404?  Something else?

2. Using the HttpResponse object, what's the correct mimetype for JSON?
 I've seen application/json and also text/javascript.  (Just looked,
the JSON RFC says application/json:
http://www.ietf.org/rfc/rfc4627.txt?number=4627)

Thanks,
Rob


--~--~---------~--~----~------------~-------~--~----~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to