Friday, October 9, 2015

Re: Upgrade path for Django 1.4.9 to Django 1.6.0

The docs have some tips (but not much besides what James already offered): https://docs.djangoproject.com/en/dev/howto/upgrade-version/

On Friday, October 9, 2015 at 8:17:21 PM UTC-4, James Schneider wrote:


> In the past when I have upgraded my Django Projects to a new version of Django I have simply Google'd errors that my project produces and fixed them one at a time and ran my unit tests and did the same.
>
> Is there a better path?
>
> So far I appear to be looking in all the wrong places.

Start with the release notes for the next major version, and especially check out the deprecation and backwards incompatible changes.

Upgrade one major version at a time. A version control system and virtualenv are your friends in this case. Repeat as necessary.

Your subject line indicates you want to jump from 1.4.X to 1.6.X. Note that 1.6.X is no longer supported, so you'll need to continue on to at least 1.7.X. Since you are on an LTS version now, I would recommend updating to 1.8.X, which is the current LTS version.

Based on the release notes and other announcements, the Django team will be taking more care to have a direct upgrade path recommendation between versions, and will support jumping from one LTS directly to the next. Unfortunately, that isn't really in place for 1.4, but I'm sure plenty of folks have done it and documented their stumbling blocks.

So, as long as you're keeping up with the announcements and release notes, updating your code and tests us the logical next step. The prices should be less painful in the future. I haven't personally experienced much pain between versions, but plenty of folks have and may have better advice.

-James

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/69ead042-dd19-4467-af87-da19cf0509f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment