Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-brutebuster-0.1.8/BruteBuster/decorators.py   django-brutebuster(Download)
from BruteBuster.models import FailedAttempt
from BruteBuster.middleware import get_request
def protect_and_serve (auth_func):
            raise ValueError ('BruteBuster cannot work with authenticate functions that do not include "username" as an argument')
        request = get_request()
        if request:
            # try to get the remote address from thread locals