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

All Samples(4)  |  Call(1)  |  Derive(0)  |  Import(3)

src/d/j/django-otp-0.2.7/django_otp/plugins/otp_static/management/commands/addstatictoken.py   django-otp(Download)
    get_user_model = lambda: User
 
from django_otp.plugins.otp_static.models import StaticDevice, StaticToken
 
 
            token = StaticToken.random_token()
 
        device.token_set.add(StaticToken(token=token))
 
        print(token, file=self.stdout)

src/d/j/django-two-factor-auth-HEAD/two_factor/views/core.py   django-two-factor-auth(Download)
import django_otp
from django_otp.decorators import otp_required
from django_otp.plugins.otp_static.models import StaticToken, StaticDevice
from django_otp.util import random_hex
from two_factor import signals

src/d/j/django-two-factor-auth-0.5.0/two_factor/views/core.py   django-two-factor-auth(Download)
from django.views.generic.base import View
from django_otp.decorators import otp_required
from django_otp.plugins.otp_static.models import StaticToken
from django_otp.util import random_hex