This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from django.conf import settings | |
from rest_framework import authentication | |
from rest_framework import exceptions | |
class ApiKeyAuthentication(authentication.BaseAuthentication): | |
''' | |
Аутентификация по задаанным в настройках ключам | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from django.http import Http404 | |
from django.conf import settings | |
import mongoengine | |
from rest_framework import viewsets | |
from rest_framework.response import Response | |
from rest_framework import status | |
from sx.apps.schemes import backend | |
from sx.apps.schemes.backends import SchemeNotFoundError |
NewerOlder