Upgrade from django 1.4 to django 1.11

870 views
Skip to first unread message

BIJAL MANIAR

unread,
Mar 7, 2017, 6:55:22 AM3/7/17
to Django users

Hi,

Currently we have an application built using django 1.4. 
As the latest LTS release is 1.11, we are planning to upgrade it to 1.11.

Which of the below 3 alternatives is a better option for django version upgrade.
1. Should we take it one release at a time? ie, Make the jump from 1.4 to 1.5 first, then proceed to 1.6, and so on.
2. Upgrade directly to 1.11 
3. Upgrade only to LTS release ie, 1.4 to 1.8 to 1.11

What other things we should consider before upgrading eg, having testcases in place.
Any links/suggestions will be helpful. 

Thanks






Antonis Christofides

unread,
Mar 7, 2017, 7:07:51 AM3/7/17
to django...@googlegroups.com

There is no inherent reason for doing it a step at a time; you can go directly to 1.11 (which, btw, hasn't been released yet, it's in alpha I think, so it may or may not be ok for you).

Doing it in steps might be better if you intend to read the release notes. So you read the release notes for 1.5, you go to 1.5, then you read the release notes for 1.6, you go to 1.6, etc. But I don't think it's worth it (and it's huge work to read the release notes for all these versions, and it will take ages to sink in anyway).

However, you should at least read about the major changes in all the release notes.

What I'd do would be to install Django 1.11 and test. You'll get an error message. Read the relevant part of the release notes. Fix it. Next error message. And so on. It's easier if you have good unit testing. If you don't, it's a great opportunity to start.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8a24c1d5-6dc5-4963-84de-4e67ffbf15fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tim Graham

unread,
Mar 7, 2017, 7:09:07 AM3/7/17
to Django users

ludovic coues

unread,
Mar 7, 2017, 8:31:12 AM3/7/17
to django...@googlegroups.com
By upgrading directly from 1.4 to 1.11, deprecation warning might be
missed, resulting in a non-working project with few indication of what
is wrong.
> https://groups.google.com/d/msgid/django-users/fa9fa0f6-407e-cb96-2e22-795867a58b29%40djangodeployment.com.
>
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42
Reply all
Reply to author
Forward
0 new messages