2 ms·
I recently upgraded a Python 2 + Django 1.x project with no tests to Python 3 and latest Django. Using 2to3, the most trouble I had were db migrations, which I
by senko 4y ago
I recently upgraded a Python 2 + Django 1.x project with no tests to Python 3 and latest Django.
Using 2to3, the most trouble I had were db migrations, which I just squashed. The rest were ferreting out str() problems that 2to3 didn't find (eg. redis package happily taking strings but returning bytes by default), Django regexp url changes, and trivial stuff like that.
It took a couple of days work.
I also wanted to upgrade the frontend part (webpack build of Vue). I stopped after a few hours od going nowhere and am still apprehensive of approaching that particular thing.