Hi - see my comments below.
-- 2018-03-30 8:44 GMT+02:00 Haroon Ahmed <haroon70a@gmail.com>:
Hi,I want to update my Django version from Django 1.9.8 to Django 2.0.3 because it is mentioned in the Django 1.9.8 official document that this version has security issues.'This document is for an insecure version of Django that is no longer supported. Please upgrade to a newer release!'This is my first time to upgrade Django version for my project.I simply upgraded Django in my virtual environment to Django 2.0.3, now i am facing errors about url resolver etc. At the moment i haven't changed my code.
You should be able to upgrade most of your code pretty simply and get it working in django 2.0 with not that much problems. There are a couple of places where the packages have moved (for exmaple the urlresolvers package) - but if you have a good editor with code completion, you should be able to find those places pretty quickly.
I have some questions in my mind:
- Do we have to upgrade Django whenever the new Django version is released?
You have actually 2 different approaches to this depending on what you want to do:
1. Every now and then django releases an LTS version (current LTS is 1.11). That version will receive security updates - but no new features - for its entire lifetime (usually around 3 years). Running on a LTS version can be a good idea, all you then need to do is update the patch versions, which shouldn't require you to update any of your code. This also might be needed if you are running on legacy Python (Python 2.7.x)
2. Always upgrade to the latest version when possible - this will require changing things from time to time in your code. The reason being new features that are implemented - However upgrading minor versions should always "just work".
- At the moment if i am able to upgrade my Project with Django 2 and after some time this version also become insecure then i have to repeat the Django version updates again?
This is the same question as above, but the short answer is that you should maintain your code running on either the latest LTS version or the latest version of django. The reason being security updates - you don't want to fall behind on changes that mean that your users are vulnerable to security issues.
- Is there any blog written or any helpful materiel for me that How to upgrade Django Version so that my project comes in working state?
I think what you should do is check the release notes for each version that you are upgrading through. In your case that would be 1.10, 1.11 and finally version 2.0.
See here:
https://docs.djangoproject.com/en/2.0/releases/1.10/
https://docs.djangoproject.com/en/2.0/releases/1.11/
https://docs.djangoproject.com/en/2.0/releases/1.11/
--Any kind of help will be appreciated, Thanks in advance.
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 https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/72b7acd8- .f8a5-4c50-87b5-fb9b6e4c9e63% 40googlegroups.com
For more options, visit https://groups.google.com/d/optout .
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK4qSCdU8%3D-m2gWu2tDbS8kmUDoqpyHRvLAWNEXrGeLQFTG1Yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment