[Answered ]-Django: trying to access my robots.txt: "TypeError at /robots.txt 'str' object is not callable"

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

Leave a comment