Monday, October 20, 2014

Re: robots.txt 404 errors are not ignored, even though I put it in my settings file

Hi Sabine,

IGNORABLE_404_URLS = (
    re
.compile(r'^/apple-touch-icon.*\.png$'),
    re
.compile(r'^/favicon\.ico$'),
    re
.compile(r'^/robots\.txt$'),
)
remove the slash at the beginning:
IGNORABLE_404_URLS = (
    re
.compile(r'^apple-touch-icon.*\.png$'),
    re
.compile(r'^favicon\.ico$'),
    re
.compile(r'^robots\.txt$'),
)

Collin

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/52dc85db-db9a-4f5a-9d3d-501ab6e17191%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment