I've been looking into Django more. I was wondering the best way to automatically return the correct response format for any given type of request. Specifically, I'm interested in distinguishing between html and json requests.
In the past I've just appended '/json' to a given url to get json data, but then I was curious how Rails seems to automatically know what the request format was. According to this:
"Rails determines the desired response format from the HTTP Accept header submitted by the client."
It looks like there is similar functionality in Django, but the routing is not as built in as in Rails.
More details are available here: