This pull request will make ms2ldaviz compatible with Python 3.6+ (dropping support for Python 2 which is no longer maintained) and Django 3.0 (Django 1.1 is two years old now).
Non exhaustive list of modications:
Use print as a function
Add on_delete=CASCADE on all ForeignKeys (this was the default in Django 1 but must be specified in Django 2+)
Replace __unicode__ method on models by __str__
Use relative import on to import submodules
Use {% load static %} instead of {% load staticfiles %} in templates
Transform zip and dict_keys objects to list to allow iterating
Import reverse function from django.urls instead of django.core.urlresolvers
Update requirements.txt to use latest versions of libraries
This pull request will make ms2ldaviz compatible with Python 3.6+ (dropping support for Python 2 which is no longer maintained) and Django 3.0 (Django 1.1 is two years old now).
Non exhaustive list of modications:
print
as a functionon_delete=CASCADE
on allForeignKey
s (this was the default in Django 1 but must be specified in Django 2+)__unicode__
method on models by__str__
{% load static %}
instead of{% load staticfiles %}
in templateszip
anddict_keys
objects to list to allow iteratingreverse
function fromdjango.urls
instead ofdjango.core.urlresolvers
requirements.txt
to use latest versions of libraries