from django.conf.urls import patterns, include
from django.contrib import admin

urlpatterns = patterns(
    '',
    (r'^admin/', include(admin.site.urls)),
)

from django.conf.urls import url, include
from django.contrib import admin

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
]

Use url method instead of patterns in test URLs setup.
Use url method instead of patterns in test URLs setup.
