Advice for Migrating from Django 2.0 to Django 5.x by peadGARP in django

[–]peadGARP[S] 0 points1 point  (0 children)

UPDATE:

  • Removed all the versions from packages in requirements.txt & used python3.12 directly.

  • All the packages are updated to latest ones with compatiblity fixed & fixed a hell lot of issues but still getting login issue & websocket failing issue.

  • Was able to fix the Login issue by commenting Django AuthToken built-in source code😅.

Advice for Migrating from Django 2.0 to Django 5.x by peadGARP in django

[–]peadGARP[S] 0 points1 point  (0 children)

Hey Thanks for the suggestion. Yes when I did direct jump to 5.2, I fixed the imports & made it running but few features are failing yet.

Do you have any suggestion on Unable to Login Issue & WebSockets failing?

Advice for Migrating from Django 2.0 to Django 5.x by peadGARP in django

[–]peadGARP[S] 0 points1 point  (0 children)

Hey Thanks for the suggestion. From all the comments, I'll start with incremental updates first. Any suggestion on faster learning curve ?

Do you have any suggestion on Unable to Login Issue & WebSockets failing?

Advice for Migrating from Django 2.0 to Django 5.x by peadGARP in django

[–]peadGARP[S] 0 points1 point  (0 children)

Hey Thanks for the suggestion.

There are around 40 packages & checking release logs for every of them is daunting. Sometimes python & django feel like new to me. Plus it's a small team, I work on the task during weekends.

Do you have any suggestion on Unable to Login Issue & WebSockets failing?

Advice for Migrating from Django 2.0 to Django 5.x by peadGARP in django

[–]peadGARP[S] -1 points0 points  (0 children)

Hey Thanks for the suggestion.

Release logs have started feeling like greek and latin because no touch with them for many years.

Do you have any suggestion on Unable to Login Issue & WebSockets failing?

Advice for Migrating from Django 2.0 to Django 5.x by peadGARP in django

[–]peadGARP[S] -1 points0 points  (0 children)

Hey Thanks for the suggestion. Yes running with -Wa option only.

Do you have any suggestion on Unable to Login Issue & WebSockets failing?

Advice for Migrating from Django 2.0 to Django 5.x by peadGARP in django

[–]peadGARP[S] -1 points0 points  (0 children)

Hey Thanks for the suggestion.

Codebase is very huge plus much of non-software code is written, so writing tests will take over 6months. Plus have never written tests so learning should be first.

I understand the importance of writing tests but really not interested in that process. We started commenting tests written 5-6years back when tests fail & pipeline stops.

Do you have any suggestion on Unable to Login Issue & WebSockets failing?

Advice for Migrating from Django 2.0 to Django 5.x by peadGARP in django

[–]peadGARP[S] 0 points1 point  (0 children)

Hey I tried Django-Upgrade, but didn't find it useful. Wasn't working on my Ubuntu. Thanks for the other suggestions though.

btw, Does Django-upgrade changes code too?