summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-12-07 17:52:28 -0500
committerTim Graham <timograham@gmail.com>2018-12-31 10:47:32 -0500
commit043bd709425149b8eff3fb821cba5c23aaebd0df (patch)
tree7624be405a6a6e5a041e2852251ef76e9d28fa7d /tests/admin_scripts
parent1136d57f01ce3e3efab44163ccd7b3b34ec4207f (diff)
Updated test URL patterns to use path() and re_path().
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/urls.py6
1 files changed, 3 insertions, 3 deletions
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<path>.*)$', serve, {
- 'document_root': os.path.join(here, 'custom_templates')}),
+ path('custom_templates/<path:path>', serve, {
+ 'document_root': os.path.join(here, 'custom_templates')}),
]