Did I find the right examples for you? yes no

All Samples(128)  |  Call(0)  |  Derive(0)  |  Import(128)
Provides a set of pluggable permission policies.

src/d/j/django-websocket-request-example-HEAD/snippets/views.py   django-websocket-request-example(Download)
from rest_framework import viewsets, permissions, renderers
from rest_framework.decorators import link
from rest_framework.response import Response
from rest_framework.throttling import AnonRateThrottle
from snippets.models import Snippet

src/d/j/django-api-rest-and-angular-HEAD/example/api/api.py   django-api-rest-and-angular(Download)
from rest_framework import generics, permissions
 
 
from .serializers import UserSerializer, PostSerializer, PhotoSerializer
from .models import User, Post, Photo

src/d/j/django-api-rest-and-angular-HEAD/example/api/permissions.py   django-api-rest-and-angular(Download)
from rest_framework import permissions
 
 
class SafeMethodsOnlyPermission(permissions.BasePermission):
    """Only can access non-destructive methods (like GET and HEAD)"""

src/s/h/shareabouts-api-HEAD/src/sa_api_v2/views.py   shareabouts-api(Download)
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
from rest_framework import (views, permissions, mixins, authentication,
                            generics, exceptions, status)
from rest_framework.negotiation import DefaultContentNegotiation

src/n/e/newfies-dialer-HEAD/newfies/agent/api_views.py   newfies-dialer(Download)
from rest_framework import viewsets
# from django.contrib.auth.models import User
from rest_framework import permissions
from rest_framework.authentication import (TokenAuthentication,
    SessionAuthentication)

src/o/n/onepercentclub-site-HEAD/apps/vouchers/views.py   onepercentclub-site(Download)
import logging
from apps.fund.models import DonationStatuses, Donation
from apps.fund.views import CurrentOrderMixin
from rest_framework import exceptions, status, permissions, response, generics
from django.utils.translation import ugettext as _

src/o/n/onepercentclub-site-HEAD/apps/fund/views.py   onepercentclub-site(Download)
from django.db import transaction
from django.http import Http404
from rest_framework import exceptions, status, permissions, response, generics
from django.utils.translation import ugettext as _
from .models import Donation, Order, OrderStatuses, DonationStatuses, RecurringDirectDebitPayment

src/a/r/ara2-HEAD/ara2/ara2/views/account.py   ara2(Download)
from django.utils.crypto import get_random_string
from django.shortcuts import get_object_or_404
from rest_framework import generics, status, mixins, viewsets, permissions
from rest_framework.permissions import IsAuthenticated
from rest_framework.decorators import api_view, action, link

src/d/j/django-fiber-0.13/fiber/rest_api/views.py   django-fiber(Download)
from rest_framework import views
from rest_framework import status
from rest_framework import permissions
 
from fiber.models import Page, PageContentItem, ContentItem, File, Image

src/n/o/nodeshot-HEAD/nodeshot/open311/views.py   nodeshot(Download)
from django.conf import settings
 
from rest_framework import generics, permissions, authentication, status
from rest_framework.views import APIView
from rest_framework.response import Response

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next