diff options
Diffstat (limited to 'tests/admin_scripts')
| -rw-r--r-- | tests/admin_scripts/urls.py | 6 |
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')}), ] |
