Mercurial > public > sg101
view antispam/apps.py @ 1214:9a011e2de2f6 modernize tip
Add more coverage to antispam utils unit tests.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 10 Feb 2025 19:34:14 -0600 |
parents | 02181fa5ac9d |
children |
line wrap: on
line source
from django.apps import AppConfig class AntiSpamConfig(AppConfig): name = 'antispam' verbose_name = 'Anti-Spam' def ready(self): import antispam.receivers from antispam.decorators import log_auth_failures import django.contrib.auth.views # Install rate limiting on auth login django.contrib.auth.views.login = log_auth_failures('Login')( django.contrib.auth.views.login)