Wednesday, April 7, 2021

Finding unsupported bytestring

Hi folks,

We're finally making our move out of 1.x Django and one of the changes we've ran into is the removed support for bytestring in some places: https://docs.djangoproject.com/en/2.0/releases/2.0/#removed-support-for-bytestrings-in-some-places


I'm looking for suggestions on any specific areas to look at when attempting to find places in the codebase we need to update.
So in this case, am I just looking for any strings that are specifically preceded with `b` or encoded, that are being fed into HttpResponse or reverse/redirect objects - or are there other gotchas that I may not be considering?

More or less I'm just looking for some help in finding these areas aside of running python in `-b` mode and hoping for the best.


Thanks in advance,
Benny

No comments:

Post a Comment