Upgrading Django from 1.11 to 2.2

已查看 628 次
跳至第一个未读帖子

אורי

未读,
2019年3月29日 04:52:102019/3/29
收件人 django...@googlegroups.com
Hi,

I want to upgrade Django from 1.11 to 2.2. Do I have to upgrade first to 2.0 and then to 2.1, or can I upgrade directly from 1.11 to 2.2?

By the way, we use many third-party packages and I'm not sure which version of Django they support. Maybe not all of them already support Django 2.2.

Thanks!

Anirudh Jain

未读,
2019年3月29日 06:53:192019/3/29
收件人 django...@googlegroups.com
First use 'pip freeze' in your virtual env to see all the packages installed. Then checkout their official, latest documentation to see whether they support django2.1 or not.

 Even if all them do, you might need to make a lot of changes in your code after upgrade. 

And no, you dont need to install django2 install django2.1. 

If you have checked libraries and are sure to upgrade then first uninstall prev version using 'pip uninstall django' and install the latest stable version by sinply using 'pip install django'

--
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/CABD5YeGDTteqPxsxq6rTQ4D8rLX%3D2nER61gBXMueSM088HWuoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ahmed Ishtiaque

未读,
2019年3月29日 06:56:202019/3/29
收件人 django...@googlegroups.com
I'd suggest not worrying too much about upgrading to 2.2 right away. Since it's going to be an LTS release, the projects your project depends on will probably consider adding 2.2 support fairly fast. 

But if you want to give it a shot anyway, I'd suggest taking a look at what changed from 1.11 to 2.0, and trying a version bump and checking which of your tests fail. As far as I'm concerned, there shouldn't be too many differences between the django 2.x versions. 

There's also a guide provided by the official docs here: https://docs.djangoproject.com/en/2.1/howto/upgrade-version/

Hope this helps.

--

Balkesh Choudhary

未读,
2019年3月29日 07:37:032019/3/29
收件人 django...@googlegroups.com
you can upgrade directly from 1.11 to 2.2, but some of third party packages may not support Django 2.2

--

Tim Graham

未读,
2019年3月30日 09:36:482019/3/30
收件人 Django users
Consider the "Upgrading Django to a newer version" guide.

Derek

未读,
2019年4月1日 04:16:372019/4/1
收件人 Django users
The upgrade doc has good, general advice but does not specifically address the issue of LTS-to-LTS upgrades; I must admit I am a bit disappointed as I thought that there would be explicit, official support for this migration (and its one of the reasons I have stayed on the older LTS up to now).

Tim Graham

未读,
2019年4月1日 22:31:152019/4/1
收件人 Django users
The advice is to go from one the major version to the next. Don't try to skip versions.
已删除帖子

dvij parekh

未读,
2019年4月1日 23:32:142019/4/1
收件人 Django users
always go for 2nd last or 3rd last release of any framework or any language it will be more stable but if you want to go with 2.2 you can because it comes with LTS

Derek

未读,
2019年4月2日 09:44:342019/4/2
收件人 Django users
I agree; and the reason for Django moving to LTS releases was so that you would be able to upgrade from one LTS to the next.  Hence the OP (and others like me I am sure) asking how that can be done - we are looking for specific advice or instructions (and less about "general" guidelines).

אורי

未读,
2019年4月2日 11:58:562019/4/2
收件人 django...@googlegroups.com
I accept Tim's advice to upgrade from one major version to the next. Even if I want to upgrade from 1.11 to 2.2, I have to upgrade first to 2.0 and then 2.1 and only then 2.2. It makes sense.

--
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.

אורי

未读,
2019年4月2日 12:04:172019/4/2
收件人 django...@googlegroups.com
From the page Tim linked:

"If you’re upgrading through more than one feature version (e.g. A.B to A.B+2), it’s usually easier to upgrade through each feature release incrementally (A.B to A.B+1 to A.B+2) rather than to make all the changes for each feature release at once. For each feature release, use the latest patch release (A.B.C).

The same incremental upgrade approach is recommended when upgrading from one LTS to the next."

So it's written there. It's recommended to upgrade through each feature release incrementally and not directly from LTS to the next LTS.

On Tue, Apr 2, 2019 at 5:31 AM Tim Graham <timog...@gmail.com> wrote:
The advice is to go from one the major version to the next. Don't try to skip versions.

--
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.
回复全部
回复作者
转发
0 个新帖子