Estou usando a versão 2.0.5 do django e ao tentar usar o código falado no curso, estou tendo o erro:
from django.conf.urls import patterns, include, url
ImportError: cannot import name 'patterns'
# arquivo connectedin/connectedin/urls.py
from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('perfis.urls'))
)
# arquivo connectedin/perfis/urls.py
from django.conf.urls import url
from perfis.views import index
urlpatterns = [
url(r'^$', index, name='index'),
]