摘要:
from rest_framework.authentication import BaseAuthentication from api import models from rest_framework import exceptions class GeneralAuthentication( 阅读全文
摘要:
import os import sys import django base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(base_dir) # 将配置文件的路径写到 DJANG 阅读全文