diff options
Diffstat (limited to 'tests/admin_scripts')
| -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')}), ] |
