Re:Effective Django
by dmoney on Saturday March 30, 2013 @04:22PM
(#5466554)
Writing the server side of an AJAXy search was pretty straightforward. In your view function, Instead of rendering a template, you call json.dumps() (or the equivalent in XML), and set the content type of the HTTP response (i think "application/json"). Django won't generate your client side JavaScript for you (nor should it IMO), so use jQuery or whatever you want.
[ Parent
| on HN ]
There are no comments on this comment yet.