refactor: import from django.urls instead of django.conf.urls

This commit is contained in:
Jennifer Richards 2023-05-12 20:29:11 -03:00
parent 587bc4d730
commit 7ad74c99e4
No known key found for this signature in database
GPG key ID: 9B2BF5C5ADDA6A6E
7 changed files with 10 additions and 11 deletions

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2017, All Rights Reserved
from django.conf import settings
from django.conf.urls import include
from django.urls import include
from django.views.generic import TemplateView
from ietf import api

View file

@ -33,9 +33,9 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from django.conf.urls import include
from django.views.generic import RedirectView
from django.conf import settings
from django.urls import include
from django.views.generic import RedirectView
from ietf.doc import views_search, views_draft, views_ballot, views_status_change, views_doc, views_downref, views_stats, views_help, views_bofreq
from ietf.utils.urls import url

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2013-2020, All Rights Reserved
from django.conf import settings
from django.conf.urls import include
from django.urls import include
from django.views.generic import RedirectView
from ietf.community import views as community_views

View file

@ -1,8 +1,8 @@
# Copyright The IETF Trust 2007-2020, All Rights Reserved
from django.conf.urls import include
from django.views.generic import RedirectView
from django.conf import settings
from django.urls import include
from django.views.generic import RedirectView
from ietf.meeting import views, views_proceedings
from ietf.utils.urls import url

View file

@ -1,4 +1,4 @@
from django.conf.urls import re_path, include
from django.urls import re_path, include
from django.views.generic import TemplateView
urlpatterns = [

View file

@ -1,15 +1,14 @@
# Copyright The IETF Trust 2007-2022, All Rights Reserved
from django.conf import settings
from django.conf.urls import include
from django.conf.urls.static import static as static_url
from django.contrib import admin
from django.contrib.sitemaps import views as sitemap_views
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import include, path
from django.views import static as static_view
from django.views.generic import TemplateView
from django.views.defaults import server_error
from django.urls import path
import debug # pyflakes:ignore

View file

@ -6,9 +6,9 @@ import debug # pyflakes:ignore
from inspect import isclass
from django.conf.urls import re_path
from django.views.generic import View
from django.urls import re_path
from django.utils.encoding import force_str
from django.views.generic import View
def url(regex, view, kwargs=None, name=None):
if callable(view) and hasattr(view, '__name__'):