You’re right, that’s a tricky part about Python. On P14, the full changeset was:
from django.conf.urls import patterns, url
from django.contrib import admin
+from collection import views
urlpatterns = [
+ url(r'^$', views.index, name='home'),
url(r'^admin/', include(admin.site.urls)),
]
Notice the import statement, that says that the “views” we’re referring to was imported from collection. So in effect, it’s collection.views.index
as you deduced. :)