3 ms·
It uses the client's 'Accept:' header which specifies which media types it prefers for the response (eg. 'text/html', 'application/json') Browsers will indicat
by tomchristie 14y ago
It uses the client's 'Accept:' header which specifies which media types it prefers for the response (eg. 'text/html', 'application/json')
Browsers will indicate that they prefer HTML, so that's what REST framework serves them.
- bmelton 14y agoSo obvious, I'm embarrassed I didn't think of it first. Much thanks!