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