U
U
un1t2015-04-30 13:02:12
Django
un1t, 2015-04-30 13:02:12

How to override the Content-Type of the response in django-rest-framework?

There is an obvious way to inherit from JSONRenderer and write it in the settings. But maybe there is some setting for this?
PS It would also not hurt to redefine indent.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
marazmiki, 2015-04-30
@marazmiki

It seems to me that the most correct answer is that you don't have to want it. Neither the first, nor, especially, the second.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question