Had the same error in a different context. The problem was caused by changing the urls.py file from
from django.conf.urls.defaults import *
to
from django.conf.urls.defaults import include, patterns
as pylint , but this omits the 404 handler and handler500, which are expected to be imported implicitly using import * .
to either add the ones that imported or just imported * , as django docs suggest solving the problem.
source share