summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-04-01 20:46:34 -0400
committerTim Graham <timograham@gmail.com>2014-04-03 07:28:10 -0400
commitd73d0e071c1b4c86d57994a0ab55a74cfe80cdf5 (patch)
treef36eebaf1cdd8bd07503b3a538e7d875ff8d29b4 /tests/admin_scripts
parente6ced2bb086396b57601d04ad5b3ba347d1eb785 (diff)
Fixed #22218 -- Deprecated django.conf.urls.patterns.
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/urls.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/admin_scripts/urls.py b/tests/admin_scripts/urls.py
index a45dc3e9a6..ab17990322 100644
--- a/tests/admin_scripts/urls.py
+++ b/tests/admin_scripts/urls.py
@@ -1,11 +1,10 @@
import os
-from django.conf.urls import patterns
+from django.conf.urls import url
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'),
- }),
-)
+urlpatterns = [
+ url(r'^custom_templates/(?P<path>.*)$', 'django.views.static.serve', {
+ 'document_root': os.path.join(here, 'custom_templates')}),
+]