Re: Upgrading django from 1.8 to 2.2.0

2020-02-02 Thread Maqdum Adewale
i dont know why any time i run my django website with opra_mini browser it always bring source code ‪On Sun, Feb 2, 2020 at 7:49 AM ‫אורי‬‎ wrote:‬ > By the way, each time upgrade to the latest release of each version. So > it's 2.2.9 you should use. And all the latest versions on > https://www.

Re: Upgrading django from 1.8 to 2.2.0

2020-02-02 Thread אורי
When you upgrade Django with pip, you can install the latest version of 1.9 with `pip install --upgrade "Django>=1.8,<1.10"` and then the same for each version, until you want the latest version of 2.2 and then use "Django>=1.8,<3.0". (actually the 1.8 is not needed here, you can also use 2.2 etc.)

Re: Upgrading django from 1.8 to 2.2.0

2020-02-02 Thread אורי
By the way, each time upgrade to the latest release of each version. So it's 2.2.9 you should use. And all the latest versions on https://www.djangoproject.com/download/ (1.9.13 etc.) אורי u...@speedy.net On Fri, Jan 31, 2020 at 12:53 PM Santhosh sridhar wrote: > Hi, > Im upgrading my django pr

Re: Upgrading django from 1.8 to 2.2.0

2020-02-02 Thread אורי
Upgrade Django from 1.8 to 1.9, then 1.10 etc. until 2.2. Each time run makemigratons and migrate and run your tests to see that everything works. And if there is a problem with a specific migration - maybe you have to edit it manually like Mike suggested. >From my experience, it takes time to upg

Re: Upgrading django from 1.8 to 2.2.0

2020-01-31 Thread Mike Dewhirst
On 31/01/2020 9:53 pm, Santhosh sridhar wrote: Hi, Im upgrading my django project from 1.8 to 2.2.0. I have done the below changes. 1. Added on_delete to all the Foreign Key fields 2. Changed the url reverse import as from django.urls import reverse 3. Included path/re_path instead of url in a