From 043bd709425149b8eff3fb821cba5c23aaebd0df Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 7 Dec 2018 17:52:28 -0500 Subject: Updated test URL patterns to use path() and re_path(). --- tests/admin_scripts/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/admin_scripts') diff --git a/tests/admin_scripts/urls.py b/tests/admin_scripts/urls.py index edb5e1f3b0..b5bb443926 100644 --- a/tests/admin_scripts/urls.py +++ b/tests/admin_scripts/urls.py @@ -1,11 +1,11 @@ import os -from django.conf.urls import url +from django.urls import path from django.views.static import serve here = os.path.dirname(__file__) urlpatterns = [ - url(r'^custom_templates/(?P.*)$', serve, { - 'document_root': os.path.join(here, 'custom_templates')}), + path('custom_templates/', serve, { + 'document_root': os.path.join(here, 'custom_templates')}), ] -- cgit v1.3