Search code examples
pythondjangodjango-1.6

Does Django 1.6 support the IGNORABLE_404_URLS setting?


I am getting hammered by script kiddies. The IGNORABLE_404_URLS setting doesn't seem to be working.

According to the docs, the IGNORABLE_404_URLS is a list of regular expressions and BrokenLinkEmailsMiddleware is required for it to work.

Here is an example of my setting.

IGNORABLE_404_URLS = (
    r'^wp-login$',
)

Am I missing something?


Solution

  • The docs do say:

    List of compiled regular expression objects

    Try:

    IGNORABLE_404_URLS = (
        re.compile(r'^wp-login$'),
    )