diff --git a/solumdashboard/applications/forms.py b/solumdashboard/applications/forms.py index 91e59f7..d9b38f5 100644 --- a/solumdashboard/applications/forms.py +++ b/solumdashboard/applications/forms.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from django.core.urlresolvers import reverse +from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/solumdashboard/applications/views.py b/solumdashboard/applications/views.py index 676fe7f..12e8354 100644 --- a/solumdashboard/applications/views.py +++ b/solumdashboard/applications/views.py @@ -13,8 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from django.core.urlresolvers import reverse -from django.core.urlresolvers import reverse_lazy +from django.urls import reverse +from django.urls import reverse_lazy from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/solumdashboard/languagepacks/forms.py b/solumdashboard/languagepacks/forms.py index d921453..4034a3e 100644 --- a/solumdashboard/languagepacks/forms.py +++ b/solumdashboard/languagepacks/forms.py @@ -15,7 +15,7 @@ import json -from django.core.urlresolvers import reverse +from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/solumdashboard/languagepacks/views.py b/solumdashboard/languagepacks/views.py index 49b2478..4a59ed4 100644 --- a/solumdashboard/languagepacks/views.py +++ b/solumdashboard/languagepacks/views.py @@ -13,8 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from django.core.urlresolvers import reverse -from django.core.urlresolvers import reverse_lazy +from django.urls import reverse +from django.urls import reverse_lazy from django.utils.translation import ugettext_lazy as _ import json diff --git a/tox.ini b/tox.ini index 72d83a8..8be145c 100644 --- a/tox.ini +++ b/tox.ini @@ -48,3 +48,9 @@ deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt + +[testenv:py35dj20] +basepython = python3.5 +commands = + pip install django>=2.0,<2.1 + {[testenv]commands}