摘要:
旧项目 直接文件夹移动,点击 apps 右键选择 Make Directory as Sources Root 新项目 建立 apps 文件夹 在 apps 下面创建对应 app, 例如 user python manage.py startapp user apps/user 进入 apps 文件 阅读全文
摘要:
# 装饰器 def auth(view): def wrapper(request: HttpRequest, *args, **kwargs): # 自定义header jwt payload = request.META.get('HTTP_AUTH', None) # 会被加前缀HTTP_且全 阅读全文