Updating Django for my web based application

30 views
Skip to first unread message

Haroon Ahmed

unread,
Mar 30, 2018, 7:07:29 AM3/30/18
to Django users
Hi, 

Currently my application is developed with Django 1.9.8 and I want to upgrade it to 2.0.3 because 
Django 1.9.8 is an insecure version of django as mention on it official documentation.


This document is for an insecure version of Django that is no longer supported. Please upgrade to a newer release!


Its my first time to update Django Version for my application,
I have updated the Dango 1.9.8 to Django 2.0.3 in my virtual environment.
I am using Python 3.4.4

I haven't changes any thing in the code yet and facing some error

\virtualEnv\DjangoUp\lib\site-packages\rest_framework\routers.py", line 23, in <module>
from django.core.urlresolvers import NoReverseMatch
ImportError: No module named 'django.core.urlresolvers'

Some question that are coming into my mind:
  • Do i have to update my application according to new Django release every time when new Django version releases?
  • Is there any article or blog written that can help me to upgrade Django version from Django 1.9.8 to Django 2.0.3?
  • What people follow, dose most of the developers upgrade there web application according to new Django version release?
Any kind of help will be appreciated, Thanks in advance.

Jani Tiainen

unread,
Mar 30, 2018, 8:13:21 AM3/30/18
to django...@googlegroups.com
Hi,

Standard procedure to update Django is to upgrade gradually all versions from source version to target.

There is no single document to describe changes needed between versions that are apart more than one release.

Only changelog you can find is at every release which contains changes from previous release.

You can try to combine required changes to directly upgrade.

--
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/1162960f-46e4-4c24-9e36-df1d7edbb2eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Haroon Ahmed

unread,
Mar 31, 2018, 4:46:42 AM3/31/18
to django...@googlegroups.com
Hi,

Thanks for the information!

Should i upgrade to Django 2 for my project? As Django 2 is not Long Time Supported.
Django 1.11 is the latest release that is Long Time Supported yet! 

Should I go for Django 1.11 at the moment rather then Django 2.0? What will  be your suggestion for me? 

What is being followed in the industry, How to decide which Django should be chosen to upgrade the application?


Thanks in advance!



Jani Tiainen

unread,
Mar 31, 2018, 5:34:39 AM3/31/18
to django...@googlegroups.com
Hi,

In most cases, if possible I would upgrade latest release. Main issue with 1.11 to 2.0 upgrade is Python 2 support. 1.11 is the last version to support Python 2.7 and starting from Django 2.0 Python 3 is required.

Of course, if your project is a big that takes long time to upgrade, sticking with LTS isn't bad choice.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.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+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
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...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.



--
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

Haroon Ahmed

unread,
Mar 31, 2018, 5:45:10 AM3/31/18
to django...@googlegroups.com
Hi,

I am using python 3.4 already!
Yes my project is big, it is almost completed now but the requirement is to upgrade it to latest suitable release and that release should  not be insecure. 

when i started this project, it was not written on Django 1.9.8 official document that its an insecure version

Now i am thinking that Django 2 is not LTS so what is the guaranty that it will be a secure Django Version! 


To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.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.

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



--
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

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

Jani Tiainen

unread,
Mar 31, 2018, 6:30:05 AM3/31/18
to django...@googlegroups.com

Babatunde Akinyanmi

unread,
Mar 31, 2018, 11:11:28 AM3/31/18
to Django users
Hi Ahmed, 
I made some inline comments 


On Sat, 31 Mar 2018, 10:44 Haroon Ahmed, <haro...@gmail.com> wrote:
Hi,

I am using python 3.4 already!
Yes my project is big, it is almost completed now but the requirement is to upgrade it to latest suitable release and that release should  not be insecure. 

when i started this project, it was not written on Django 1.9.8 official document that its an insecure version

Django is built with the highest regard for security. Sometimes some security holes might be found but they are always plugged as soon as they are found. 
Now i am thinking that Django 2 is not LTS so what is the guaranty that it will be a secure Django Version! 

If security is your concern, the latest release of django is always your best choice. 
Reply all
Reply to author
Forward
0 new messages