Hacker News new | ask | show | jobs
by Chiron1991 1383 days ago
DRF is for building REST APIs, but OP wants to dump the JSON-representation of an arbitrary object into an HTML template. That's a very different use case for which simple JSON-encoding and the json_script filter should suffice.