summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_scripts/urls.py')
-rw-r--r--tests/admin_scripts/urls.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/admin_scripts/urls.py b/tests/admin_scripts/urls.py
new file mode 100644
index 0000000000..a45dc3e9a6
--- /dev/null
+++ b/tests/admin_scripts/urls.py
@@ -0,0 +1,11 @@
+import os
+from django.conf.urls import patterns
+from django.utils._os import upath
+
+here = os.path.dirname(upath(__file__))
+
+urlpatterns = patterns('',
+ (r'^custom_templates/(?P<path>.*)$', 'django.views.static.serve', {
+ 'document_root': os.path.join(here, 'custom_templates'),
+ }),
+)