سؤال

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?

هل كانت مفيدة؟

المحلول

The docs do say:

List of compiled regular expression objects

Try:

IGNORABLE_404_URLS = (
    re.compile(r'^wp-login$'),
)
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top