Django 官方教程翻译项目安装 Python 配置数据库 删除旧版本的 Django 安装 Django 验证安装 安装完成 你需要先安装 Django 才可以使用它。我们有一份完整安装指南,它涵盖了所有可能遇到的问题。 本指南将会帮助你完成一个简单、最小化的安装。 作为一个 Python Web 框架,Django 依赖 Python。从 Django 适用于哪些版本的 Python可 以获取更多信息。较新版本的 趣,这是最简单的选择。SQLite 内嵌在 Python 里,所以你不用再安装其他东西来支持你的数据 库。但是当你开始做第一个实际的项目时,你也许想使用一个可扩展的数据库,比如 PostgreSQL 来避免令人头痛地切换数据库问题。 如果你希望使用其他数据库,你需要安装合适的 database bingings 和在 DATABASES ‘default’ 默认项里改变一些键值,以匹配你的数据库设置: 引擎(ENGINE) 记录,Django 可以通过滚动更新数据库来匹配你当前的模型。 在这个简单的投票应用中,我们将创建两个模型:问题 Question 和选项 Choice。Question 模 型包括问题描述和发布时间。Choice 模型有两个字段:选项描述和当前票数。每个 选项 属于一个 问题。 这些概念可以通过一个简单的 Python 类来表示。像下面那样编辑 polls/models.py 文件:0 码力 | 103 页 | 1.86 MB | 1 年前3
WeRoBot 1.8.0 微信公众号开发框架文档thumb_media_id, title=None, description=None, kf_account=None) 发送音乐消息。 注意如果你遇到了缩略图不能正常显示的问题, 不要慌 张; 目前来看是微信服务器端的问题。 对此我们也无能为力 ( #197 [https://github.com/whtsky/WeRoBot/issues/197] ) user_id – 用户 ID 。 就是你收到的 WeRoBot QQ 群(283206829) 帮助解答问题 把 WeRoBot 安利给你周围的人 :) 贡献代码 如果你希望为 WeRoBot 贡献代码, 请现在 GitHub 上 Fork [https://github.com/whtsky/WeRoBot] WeRoBot 仓库, 然后在 master 分支上开一个新的 分支。 如果你的贡献的代码是修复 Bug , 请确认这个 Bug 已经有了对应的 可以发 Pull Request 到 develop 分支, 我们会为你的代码 做 Review。同时 CI 也会自动运行测试。 注解 我们只会 Merge 通过了测试的代码。 如果一切没有问题, 我们将合并你的代码到 develop 分支, 并最终发布在 master 分支的稳定版本。 参数: 参数: 参数: 返回: API 应用对象 class werobot.robot0 码力 | 96 页 | 75.79 KB | 1 年前3
WeRoBot 1.12.0 微信公众号开发框架文档thumb_media_id, title=None, description=None, kf_account=None) 发送音乐消息。 注意如果你遇到了缩略图不能正常显示的问题, 不要慌 张; 目前来看是微信服务器端的问题。 对此我们也无能为力 ( #197 [https://github.com/whtsky/WeRoBot/issues/197] ) user_id – 用户 ID 。 就是你收到的 WeRoBot QQ 群(283206829) 帮助解答问题 把 WeRoBot 安利给你周围的人 :) 贡献代码 如果你希望为 WeRoBot 贡献代码, 请现在 GitHub 上 Fork [https://github.com/whtsky/WeRoBot] WeRoBot 仓库, 然后在 master 分支上开一个新的 分支。 如果你的贡献的代码是修复 Bug , 请确认这个 Bug 已经有了对应的 com/offu/WeRoBot/pull/539] ) 停止了对 SAE 相关代码的测试。 ( #539 [https://github.com/offu/WeRoBot/pull/539] ) Version 1.10.1 修复 群发接口 的 docstring 样式。 Version 1.10.0 在 Client 中增加对 上传图文消息素材 的支持 ( #493 [https://github.com/offu/WeRoBot/pull/493]0 码力 | 103 页 | 74.49 KB | 1 年前3
WeRoBot 1.10.1 微信公众号开发框架文档thumb_media_id, title=None, description=None, kf_account=None) 发送音乐消息。 注意如果你遇到了缩略图不能正常显示的问题, 不要慌 张; 目前来看是微信服务器端的问题。 对此我们也无能为力 ( #197 [https://github.com/whtsky/WeRoBot/issues/197] ) user_id – 用户 ID 。 就是你收到的 WeRoBot QQ 群(283206829) 帮助解答问题 把 WeRoBot 安利给你周围的人 :) 贡献代码 如果你希望为 WeRoBot 贡献代码, 请现在 GitHub 上 Fork [https://github.com/whtsky/WeRoBot] WeRoBot 仓库, 然后在 master 分支上开一个新的 分支。 如果你的贡献的代码是修复 Bug , 请确认这个 Bug 已经有了对应的 level='info') 按照配置开启 log 的格式化优化。 logger – 配置的 logger 对象 level – 要为 logger 设置的等级 Changelog Version 1.10.1 修复 群发接口 的 docstring 样式。 Version 1.10.0 在 Client 中增加对 上传图文消息素材 的支持 ( #493 [https://github.com/offu/WeRoBot/pull/493]0 码力 | 102 页 | 73.98 KB | 1 年前3
WeRoBot 1.13.1 微信公众号开发框架文档thumb_media_id, title=None, description=None, kf_account=None) 发送音乐消息。 注意如果你遇到了缩略图不能正常显示的问题, 不要慌 张; 目前来看是微信服务器端的问题。 对此我们也无能为力 ( #197 [https://github.com/whtsky/WeRoBot/issues/197] ) user_id – 用户 ID 。 就是你收到的 WeRoBot QQ 群(283206829) 帮助解答问题 把 WeRoBot 安利给你周围的人 :) 贡献代码 如果你希望为 WeRoBot 贡献代码, 请现在 GitHub 上 Fork [https://github.com/whtsky/WeRoBot] WeRoBot 仓库, 然后在 master 分支上开一个新的 分支。 如果你的贡献的代码是修复 Bug , 请确认这个 Bug 已经有了对应的 com/offu/WeRoBot/pull/539] ) 停止了对 SAE 相关代码的测试。 ( #539 [https://github.com/offu/WeRoBot/pull/539] ) Version 1.10.1 修复 群发接口 的 docstring 样式。 Version 1.10.0 在 Client 中增加对 上传图文消息素材 的支持 ( #493 [https://github.com/offu/WeRoBot/pull/493]0 码力 | 105 页 | 76.25 KB | 1 年前3
WeRoBot 1.11.0 微信公众号开发框架文档thumb_media_id, title=None, description=None, kf_account=None) 发送音乐消息。 注意如果你遇到了缩略图不能正常显示的问题, 不要慌 张; 目前来看是微信服务器端的问题。 对此我们也无能为力 ( #197 [https://github.com/whtsky/WeRoBot/issues/197] ) user_id – 用户 ID 。 就是你收到的 WeRoBot QQ 群(283206829) 帮助解答问题 把 WeRoBot 安利给你周围的人 :) 贡献代码 如果你希望为 WeRoBot 贡献代码, 请现在 GitHub 上 Fork [https://github.com/whtsky/WeRoBot] WeRoBot 仓库, 然后在 master 分支上开一个新的 分支。 如果你的贡献的代码是修复 Bug , 请确认这个 Bug 已经有了对应的 com/offu/WeRoBot/pull/539] ) 停止了对 SAE 相关代码的测试。 ( #539 [https://github.com/offu/WeRoBot/pull/539] ) Version 1.10.1 修复 群发接口 的 docstring 样式。 Version 1.10.0 在 Client 中增加对 上传图文消息素材 的支持 ( #493 [https://github.com/offu/WeRoBot/pull/493]0 码力 | 103 页 | 74.21 KB | 1 年前3
WeRoBot 1.9.0 微信公众号开发框架文档thumb_media_id, title=None, description=None, kf_account=None) 发送音乐消息。 注意如果你遇到了缩略图不能正常显示的问题, 不要慌 张; 目前来看是微信服务器端的问题。 对此我们也无能为力 ( #197 [https://github.com/whtsky/WeRoBot/issues/197] ) user_id – 用户 ID 。 就是你收到的 WeRoBot QQ 群(283206829) 帮助解答问题 把 WeRoBot 安利给你周围的人 :) 贡献代码 如果你希望为 WeRoBot 贡献代码, 请现在 GitHub 上 Fork [https://github.com/whtsky/WeRoBot] WeRoBot 仓库, 然后在 master 分支上开一个新的 分支。 如果你的贡献的代码是修复 Bug , 请确认这个 Bug 已经有了对应的 [https://github.com/offu/WeRoBot/issues/383]) (#412 [https://github.com/offu/WeRoBot/pull/412]) 修复 imp 在 Python3.4 后被废弃的问题 (#411 [https://github.com/offu/WeRoBot/pull/411]) Version 1.7.0 为 werobot.client.Client0 码力 | 99 页 | 76.68 KB | 1 年前3
WeRoBot 1.10.0 微信公众号开发框架文档thumb_media_id, title=None, description=None, kf_account=None) 发送音乐消息。 注意如果你遇到了缩略图不能正常显示的问题, 不要慌 张; 目前来看是微信服务器端的问题。 对此我们也无能为力 ( #197 [https://github.com/whtsky/WeRoBot/issues/197] ) user_id – 用户 ID 。 就是你收到的 WeRoBot QQ 群(283206829) 帮助解答问题 把 WeRoBot 安利给你周围的人 :) 贡献代码 如果你希望为 WeRoBot 贡献代码, 请现在 GitHub 上 Fork [https://github.com/whtsky/WeRoBot] WeRoBot 仓库, 然后在 master 分支上开一个新的 分支。 如果你的贡献的代码是修复 Bug , 请确认这个 Bug 已经有了对应的 [https://github.com/offu/WeRoBot/issues/383]) (#412 [https://github.com/offu/WeRoBot/pull/412]) 修复 imp 在 Python3.4 后被废弃的问题 (#411 [https://github.com/offu/WeRoBot/pull/411]) Version 1.7.0 为 werobot.client.Client0 码力 | 101 页 | 73.89 KB | 1 年前3
WeRoBot 1.10.0 微信公众号开发框架文档thumb_media_id, title=None, description=None, kf_account=None) 发送音乐消息。 注意如果你遇到了缩略图不能正常显示的问题, 不要慌 张; 目前来看是微信服务器端的问题。 对此我们也无能为力 ( #197 [https://github.com/whtsky/WeRoBot/issues/197] ) user_id – 用户 ID 。 就是你收到的 WeRoBot QQ 群(283206829) 帮助解答问题 把 WeRoBot 安利给你周围的人 :) 贡献代码 如果你希望为 WeRoBot 贡献代码, 请现在 GitHub 上 Fork [https://github.com/whtsky/WeRoBot] WeRoBot 仓库, 然后在 master 分支上开一个新的 分支。 如果你的贡献的代码是修复 Bug , 请确认这个 Bug 已经有了对应的 [https://github.com/offu/WeRoBot/issues/383]) (#412 [https://github.com/offu/WeRoBot/pull/412]) 修复 imp 在 Python3.4 后被废弃的问题 (#411 [https://github.com/offu/WeRoBot/pull/411]) Version 1.7.0 为 werobot.client.Client0 码力 | 101 页 | 73.89 KB | 1 年前3
WeRoBot 1.6.0 微信公众号开发框架文档url, hq_url, thumb_media_id, title=None, description=None) 发送音乐消息。 注意如果你遇到了缩略图不能正常显示的问题, 不要慌 张; 目前来看是微信服务器端的问题。 对此我们也无能为力 ( #197 [https://github.com/whtsky/WeRoBot/issues/197] ) 参 数: user_id – 用户 WeRoBot QQ 群(283206829) 帮助解答问题 把 WeRoBot 安利给你周围的人 :) 贡献代码 如果你希望为 WeRoBot 贡献代码, 请现在 GitHub 上 Fork [https://github.com/whtsky/WeRoBot] WeRoBot 仓库, 然后在 master 分支上开一个新的 分支。 如果你的贡献的代码是修复 Bug , 请确认这个 Bug 已经有了对应的 可以发 Pull Request 到 develop 分支, 我们会为你的代码 做 Review。同时 CI 也会自动运行测试。 注解 我们只会 Merge 通过了测试的代码。 如果一切没有问题, 我们将合并你的代码到 develop 分支, 并最终发布在 master 分支的稳定版本。 © 版权所有 2016, whtsky. 由 Sphinx 1.4.5 创建。 索引 模块 | 下一页0 码力 | 85 页 | 89.26 KB | 1 年前3
共 142 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15













