diff options
| author | Tim Graham <timograham@gmail.com> | 2014-08-12 10:54:42 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-12 13:15:40 -0400 |
| commit | a9fd740d22bc4fed5fdb280c036618000ee13df1 (patch) | |
| tree | 18a58170b4633f22e5869db2c2ed086245ed415c /tests/admin_scripts/urls.py | |
| parent | 2003cb23d4f1b3be717855d41b562d4d5cfebe99 (diff) | |
Fixed #23276 -- Deprecated passing views as strings to url().
Diffstat (limited to 'tests/admin_scripts/urls.py')
| -rw-r--r-- | tests/admin_scripts/urls.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/admin_scripts/urls.py b/tests/admin_scripts/urls.py index ab17990322..b3f4eef15b 100644 --- a/tests/admin_scripts/urls.py +++ b/tests/admin_scripts/urls.py @@ -1,10 +1,11 @@ import os from django.conf.urls import url from django.utils._os import upath +from django.views.static import serve here = os.path.dirname(upath(__file__)) urlpatterns = [ - url(r'^custom_templates/(?P<path>.*)$', 'django.views.static.serve', { + url(r'^custom_templates/(?P<path>.*)$', serve, { 'document_root': os.path.join(here, 'custom_templates')}), ] |
