diff --git a/cas_server/tests/urls.py b/cas_server/tests/urls.py index ac8295f..72a5cb2 100644 --- a/cas_server/tests/urls.py +++ b/cas_server/tests/urls.py @@ -14,15 +14,13 @@ Including another URLconf 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ -import django - try: from django.urls import re_path except ImportError: # re_path is not available in Django 2 - from django.conf.urls import url as re_pa + from django.conf.urls import url as re_path -from django.conf.urls import url, include +from django.conf.urls import include from django.contrib import admin urlpatterns = [ diff --git a/cas_server/urls.py b/cas_server/urls.py index 301157c..63a6067 100644 --- a/cas_server/urls.py +++ b/cas_server/urls.py @@ -11,16 +11,12 @@ # (c) 2015-2016 Valentin Samir """urls for the app""" -import django - - try: from django.urls import re_path except ImportError: # re_path is not available in Django 2 from django.conf.urls import url as re_path -from django.conf.urls import url from django.views.generic import RedirectView from django.views.decorators.debug import sensitive_post_parameters, sensitive_variables