pakal / django-compat-patcher

A system to improve compatibility between different Django versions, and make upgrading dependencies less painful.
MIT License
13 stars 2 forks source link

Django 4 is out #19

Closed jayvdb closed 2 years ago

jayvdb commented 2 years ago

Lots of deprecations wrt moved functions in Django 3 are now removed and no longer work. e.g. django.conf.urls.url is now gone

pakal commented 2 years ago

Indeed, i'll have to make an update pass on DCP, although I don't know yet when I'll have time for that ^^

jayvdb commented 2 years ago

e.g. django.conf.urls.url is now gone

Another big problem I have encountered is Signal 's provided_args no longer being needed. The next largest problem I have encountered so far is Middleware now needing get_response.

Those three account for nearly all problems I have encountered multiple times.

pakal commented 2 years ago

Thanks for the input, i'm slowly getting back on delayed stuffs so I expect to update my apps + DCP to Django 4 towards April ^^

pakal commented 2 years ago

I've begun adding fixers or Django 4, I've already added most "easy picks" to master branch, now I wonder how to handle NullBooleanField and postgres.JSONField disappearance

pakal commented 2 years ago

The "Middleware now needing get_response." will be some work too, but easier

pakal commented 2 years ago

New version of DCP is out with lots of fixers for Django4.0 : https://pypi.org/project/django-compat-patcher/0.11/

Hope it covers most of the needs of your older applications B-)