Did I find the right examples for you? yes no

All Samples(6)  |  Call(1)  |  Derive(0)  |  Import(5)

src/d/j/django-swingers-1.1.1/swingers/sauth/views.py   django-swingers(Download)
from django.utils import timezone
 
from swingers.sauth.models import Token
from swingers.utils.auth import validate_request
 
            token.modified = timezone.now()
        except IndexError:
            token = Token(secret=base64.urlsafe_b64encode(os.urandom(8)),
                          timeout=expires, user=user, link=link)
        if "url" in request.REQUEST:

src/d/j/django-swingers-1.1.1/swingers/sauth/admin.py   django-swingers(Download)
from guardian.admin import GuardedModelAdmin
 
from swingers.sauth.models import Job, ApplicationLink, Token
 
 

src/d/j/django-swingers-1.1.1/swingers/middleware/auth.py   django-swingers(Download)
from datetime import timedelta
 
from swingers.sauth.models import Token
from swingers.models import get_locals
 

src/d/j/django-swingers-1.1.1/swingers/sauth/tests.py   django-swingers(Download)
 
from swingers.sauth.backends import PersonaBackend, EmailBackend
from swingers.sauth.models import ApplicationLink, Token
from swingers.utils.auth import make_nonce
 

src/d/j/django-swingers-1.1.1/swingers/middleware/tests.py   django-swingers(Download)
from swingers.middleware.auth import get_exempt_urls, AuthenticationMiddleware
from swingers.middleware.transaction import ResponseStatusTransactionMiddleware
from swingers.sauth.models import ApplicationLink, Token
from swingers.tests.models import Duck, Counter