mirror of
https://github.com/django/django.git
synced 2025-10-22 00:02:23 +00:00
Fixed #22218 -- Deprecated django.conf.urls.patterns.
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
This commit is contained in:
parent
e6ced2bb08
commit
d73d0e071c
117 changed files with 1180 additions and 1099 deletions
|
@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
|||
|
||||
import unittest
|
||||
|
||||
from django.conf.urls import patterns, url
|
||||
from django.conf.urls import url
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.db import connection
|
||||
from django.forms import EmailField, IntegerField
|
||||
|
@ -628,11 +628,11 @@ def fake_view(request):
|
|||
|
||||
|
||||
class FirstUrls:
|
||||
urlpatterns = patterns('', url(r'first/$', fake_view, name='first'))
|
||||
urlpatterns = [url(r'first/$', fake_view, name='first')]
|
||||
|
||||
|
||||
class SecondUrls:
|
||||
urlpatterns = patterns('', url(r'second/$', fake_view, name='second'))
|
||||
urlpatterns = [url(r'second/$', fake_view, name='second')]
|
||||
|
||||
|
||||
class OverrideSettingsTests(TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue