2👍
✅
Try:
from appname.views import robots
(r'^robots\.txt$', robots),
Or:
(r'^robots\.txt$', 'projectname.appname.views.robots'),
Django can’t figure out where your 'robots'
function is.
👤Seth
Source:stackexchange.com