Mercurial > public > sg101
annotate antispam/apps.py @ 1017:21c592cac71c
ManifestStaticFilesStorage: stop using form Media.
It's okay for the admin, but not for user facing stuff.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Dec 2015 14:48:30 -0600 |
parents | 886234943aed |
children |
rev | line source |
---|---|
bgneal@918 | 1 from django.apps import AppConfig |
bgneal@918 | 2 import django.contrib.auth.views |
bgneal@918 | 3 |
bgneal@918 | 4 from antispam.decorators import log_auth_failures |
bgneal@918 | 5 |
bgneal@918 | 6 |
bgneal@918 | 7 class AntiSpamConfig(AppConfig): |
bgneal@918 | 8 name = 'antispam' |
bgneal@918 | 9 verbose_name = 'Anti-Spam' |
bgneal@918 | 10 |
bgneal@918 | 11 def ready(self): |
bgneal@918 | 12 import antispam.receivers |
bgneal@918 | 13 |
bgneal@918 | 14 # Install rate limiting on auth login |
bgneal@918 | 15 django.contrib.auth.views.login = log_auth_failures('Login')( |
bgneal@918 | 16 django.contrib.auth.views.login) |