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

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

src/d/j/django-otp-agents-0.2.0/otp_agents/decorators.py   django-otp-agents(Download)
from functools import wraps
 
import django_agent_trust.conf
import django_otp.conf
from django_otp.decorators import otp_required as real_otp_required
                if _login_url is None:
                    _login_url = django_agent_trust.conf.settings.AGENT_LOGIN_URL if accept_trusted_agent else django_otp.conf.settings.OTP_LOGIN_URL
                _decorator = real_otp_required(redirect_field_name=redirect_field_name, login_url=_login_url, if_configured=if_configured)
 
            return _decorator(view_func)(request, *args, **kwargs)

src/d/j/django-two-factor-auth-0.5.0/two_factor/views/core.py   django-two-factor-auth(Download)
from django.views.generic import FormView, DeleteView, TemplateView
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

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

src/i/d/identity.gentoo.org-HEAD/okupy/accounts/views.py   identity.gentoo.org(Download)
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
from django_otp.decorators import otp_required
 
from openid.extensions.ax import FetchRequest, FetchResponse