上一页 1 ··· 7 8 9 10 11
摘要: 最近做一个django项目,在设置了 DEBUG=False之后,访问接口,报错400. 何解??? 查资料,得知: 400报错主要有两种: 1、bad request 意思是“错误的请求"; 2、invalid hostname 意思是"不存在的域名”。 解决: settings.py文件中,设置 阅读全文
posted @ 2018-01-05 21:08 口头猿 阅读(1169) 评论(0) 推荐(0)
摘要: 任 务:已有models.py文件中定义了 ad类(用来描述广告数据库表结构)。现在想增加四个新字段:ad_show_type,big_video_url,is_full_screen,video_url。 遇到问题:① 终端输入 python manage.py makemigrations ad 阅读全文
posted @ 2018-01-02 00:14 口头猿 阅读(457) 评论(0) 推荐(0)
摘要: lua语法总结: 1. 导入模块(用require来加载,模块是一个类型为table的全局变量) 导入写好的包,举例如下: 2. lua 数据类型(有8种:nil、boolean、number、string、userdata、function、thread、table) ① 布尔类型,可选值 tru 阅读全文
posted @ 2017-12-14 11:54 口头猿 阅读(392) 评论(0) 推荐(0)
摘要: 先写标题内容后续补充上 官方文档如下 :http://python.usyiyi.cn/documents/django_182/howto/custom-management-commands.html 阅读全文
posted @ 2017-12-14 11:43 口头猿 阅读(122) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11