What's the difference of ContentType and MimeType

后端 未结 4 2040
我在风中等你
我在风中等你 2020-12-13 02:00

As far as I know, they are absolute equal. However, browsing some django docs, I\'ve found this piece of code:

HttpResponse.__init__(content=\'\', mimetype=Non

4条回答
  •  生来不讨喜
    2020-12-13 02:30

    Why we use 2 different naming for (almost the same) thing?

    Backwards compatibility, based on your quote from the documentation.

提交回复
热议问题