`django.utils.deprecation.RemovedInDjango30Warning: The
DEFAULT_CONTENT_TYPE setting is deprecated.`
Although I checked, and we don't use `DEFAULT_CONTENT_TYPE` anywhere in
our project. It's only used in Django.
You can see [https://travis-ci.org/speedy-net/speedy-net/jobs/605598271
this job] for example (with Python 3.5). If you check the jobs for Python
[https://travis-ci.org/speedy-net/speedy-net/jobs/605598272 3.6] and
[https://travis-ci.org/speedy-net/speedy-net/jobs/605598273 3.7], there is
another deprecation warning because of `distutils` which is used by
Django. This is since Django version 2.0. In Django 1.11 there are no
deprecation warnings with Python 3.5 and 3.6 (but there is
[https://code.djangoproject.com/ticket/30078 one] with Python 3.7).
--
Ticket URL: <https://code.djangoproject.com/ticket/30938>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* component: Uncategorized => HTTP handling
* type: Uncategorized => Bug
* resolution: => invalid
Comment:
`DEFAULT_CONTENT_TYPE` is used by `sorl-thumbnail` (see
[https://github.com/jazzband/sorl-thumbnail/issues/589 issues#589]).
Please don't use trac as a support channel.
Closing per TicketClosingReasons/UseSupportChannels.
--
Ticket URL: <https://code.djangoproject.com/ticket/30938#comment:1>
Comment (by אורי):
$ git bisect run python -W error::DeprecationWarning ../speedy-
net/speedy/net/tests_manage.py test
speedy.core.accounts.tests.test_models.UserEnglishTestCase
99d4fc18bdb8110147165531d348be53529eece5 is the first bad commit
commit 99d4fc18bdb8110147165531d348be53529eece5
Author: Jon Dufresne <jon.du...@gmail.com>
Date: Mon Oct 15 11:46:35 2018 -0700
Refs #27829 -- Added warning for settings.DEFAULT_CONTENT_TYPE usage
outside of Django.
:040000 040000 7accc492ad16abdc78e76889906e65d0ed3743b2
16519246f31eabef79895b3c84ea418ffaf5ebc0 M django
:040000 040000 3ced083a23d19172fb1d08d3cf3f0cea12863e02
ec67a170d7a443f8d9c65780c5a6012f8dbf8ad1 M tests
bisect run success
--
Ticket URL: <https://code.djangoproject.com/ticket/30938#comment:2>
Comment (by אורי):
Replying to [comment:1 felixxm]:
> `DEFAULT_CONTENT_TYPE` is used by `sorl-thumbnail` (see
[https://github.com/jazzband/sorl-thumbnail/issues/589 issues#589]).
Please don't use trac as a support channel.
>
> Closing per TicketClosingReasons/UseSupportChannels.
I thought it was a bug of Django and I was not aware that one of our
requirements uses `DEFAULT_CONTENT_TYPE`. Sorry.
--
Ticket URL: <https://code.djangoproject.com/ticket/30938#comment:3>