Django to send JSON response

Don’t try to be smart.  You must 

 1. Manually convert query sets to dicts

 2. Convert the dicts to JSON  

Other approaches that convert query sets directly to JSON are not robust.  

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.