Skip to content

Commit 4285265

Browse files
author
Josh Owen
committed
don't use urlpatterns
1 parent 12d58f0 commit 4285265

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

robots/tests/urls_profile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#coding=utf-8
22

3-
from django.conf.urls import patterns
43

54
from robots.utils import url
65

7-
urlpatterns = patterns('',
6+
urlpatterns = [
87
url(r'^s$', 'view', name='profiles', robots_allow=True),
98
url(r'^/(?P<nick>\w+)$', 'view'),
109
url(r'^/(?P<nick>\w+)/private', 'view', name='profile_private', robots_allow=False),
1110
url(r'^/(?P<nick>\w+)/public', 'view', name='profile_public', robots_allow=True),
12-
)
11+
]

0 commit comments

Comments
 (0)