Mercurial > public > sg101
diff antispam/apps.py @ 1206:02181fa5ac9d modernize tip
Update to Django 1.9.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 22 Jan 2025 17:58:16 -0600 |
parents | 886234943aed |
children |
line wrap: on
line diff
--- a/antispam/apps.py Sat Jan 04 21:34:31 2025 -0600 +++ b/antispam/apps.py Wed Jan 22 17:58:16 2025 -0600 @@ -1,7 +1,4 @@ from django.apps import AppConfig -import django.contrib.auth.views - -from antispam.decorators import log_auth_failures class AntiSpamConfig(AppConfig): @@ -10,6 +7,8 @@ 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')(