I had a project that I wrote in Django, 1.4, back in 2012. It’s still in production and there are no problems with it. The only exception being that there are planned changes to the database schema. Weighing my options, I decided to move forward with an upgrade to Django 1.10, because migrations are now “built-in” and data reliability is more important to me than a few extra hours of trouble-shooting the differences between the versions.
Here are the issues that effected me, when moving from Django 1.4 to 1.10.
Changes to settings.py
There are no longer TEMPLATE_* variables in the settings.py file you should remove them
The settings file now uses os and you should setup a variable called BASE_DIR
1
2
importosBASE_DIR="/path/to/your/app"
The TEMPLATES_DIRS now looks very different (example below)
Some internal packages have changed, patterns no longer exists or is not necessary in django.conf.urls.defaults. There is also a newer element called settings that will need to be
You also now have to import your other apps directly if you’re going to reference them in a single urls.py