2👍
✅
The problem is with your urls.py. It should be:
from django.conf.urls import patterns, include, url
from django.contrib import admin
from mysite.school.views import index
admin.autodiscover()
urlpatterns = patterns ('',
url(r'^$', index),
)
To save yourself some typing, I would do:
urlpatterns = patterns ('mysite.school.views',
url(r'^$', 'index'),
)
which is what I think you were attempting to do in the first place. Hence the error ‘str’ object isn’t callable.
Source:stackexchange.com