摘要: 报错信息 Access-Control-Allow-Origin' header is present on the requested resource. 解决: 1,安装 pip install django-cors-headers 2 ,添加配置 # CORS组的配置信息 CORS_ORIG 阅读全文
posted @ 2020-07-10 18:47 丿小贰灬 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 一,使用方式 null = True blank = True null = True,blank = True 二,区别 null 这个选项跟数据库有关: null=True的话,数据库中该字段是NULL,即允许空值 null=False(默认)的话,数据库中该字段是NOT NULL,即不允许空值 阅读全文
posted @ 2020-07-10 10:34 丿小贰灬 阅读(675) 评论(0) 推荐(0) 编辑