摘要: from rest_framework.authentication import BaseAuthentication from api import models from rest_framework import exceptions class GeneralAuthentication( 阅读全文
posted @ 2021-07-31 11:02 叶青IT爱好者 阅读(59) 评论(0) 推荐(0) 编辑
摘要: import os import sys import django base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(base_dir) # 将配置文件的路径写到 DJANG 阅读全文
posted @ 2021-07-31 10:54 叶青IT爱好者 阅读(63) 评论(0) 推荐(0) 编辑