Django 官方教程翻译项目果您在阅读文档获取知识的时候,发现文档内容有不恰当的地方,请向我们反馈,让我们共同携手, 将知识准确、高效且有效地传递给每一个人。 同时,如果您在日常生活、工作和学习中遇到有价值有营养的知识文档,欢迎分享到 书栈 (BookStack.CN) ,为知识的传承献上您的一份力量! 如果当前文档生成时间太久,请到 书栈(BookStack.CN) 获取最新的文档,以跟上知识更新换 代的步伐。 文档地址:http://www Django 1.11 和 Python 3.4 或更高版本。如果 Django 版本不匹配,你 可以通过点击页面右下角的切换版本按钮来转到适合你版本的教程,或者你可以选择将 Django 升 级到最新版本。如果你还在用 Python 2.7,你将需要对教程中的代码作一些微调,微调内容会被写 在代码的注释里。 你可以查看文档 快速安装指南(zh) 来获得关于移除旧版本,安装新版本的建议。 哪里可以获得帮助: mysite/urls.py:该 Django 项目的 URL 声明,就像是你网站的“目录”。阅读 URL dispatcher 文档来获取更多关于 URL 的内容。 mysite/wsgi.py:当你部署项目到一个兼容 WSGI 的服务器上时所需要的入口点。How to deploy with WSGI 文档内有更多关于这个文件的细节。 让我们验证下项目是否可用。 切换到最外层的 mysite 目录下0 码力 | 103 页 | 1.86 MB | 1 年前3
Django、Vue 和Element UI 前后端原理论述命令,可以快速 地执行这些脚本,方便开发和构建项目。 包管理:除了管理项目的依赖外,npm 也可以用来发布和管理自己开发的前端包。 开发者可以将自己的前端库或组件发布到 npm 仓库,供其他开发者使用和共享。 构建工具:npm 可以集成和管理前端构建工具,比如 webpack、gulp、rollup 等。这 些构建工具可以帮助开发者将前端代码进行打包、压缩、优化和处理,以提高前端项目 code”, 则会在 Bito 输出面板中自动生成对于选中代码的按行注解。 2) 以“生成注释”为例 同样的,选中代码,点击 Bito 面板的”generate comment”功能,即可在输出面板看 到对选中代码函数功能的注解。 11 《51 测试天地》七十四 www.51testing.com 除此之外呢?“性能检查”可以帮助开发人员检查出代码中潜藏的性能问题,并且 提出相应的代码修改样 cn/simpleWeather/query key: xxxxxxxxxxxxxxxxxxxxxxxxx city: 上海 测试数据准备好了,小编这里就直接通过 requests 进行将 yaml 读取到的结果放入到 请求参数中。 # coding:utf-8 import yaml import requests file_path = r'D:\test_daily\test.yaml' with 0 码力 | 61 页 | 6.84 MB | 1 年前3
Django Q Documentation
Release 0.7.9com/antirez/disque] server is based on Redis by the same author, but focuses on reliable queues. Currently in Alpha, but highly recommended. You can either build it from source or use it on Heroku through the Tynd with Tynd [https://disque.tynd.co/] Disque addon on Heroku [https://heroku.com] Still considered Alpha software Supports bulk dequeue Requires Redis-py [https://github.com/andymccurdy/redis-py] client functions from a task result instance: from django_q.tasks import fetch task = fetch('winter-speaker-alpha-ceiling') if task.group_count() > 100: print(task.group_result()) task.group_delete() print('Deleted0 码力 | 62 页 | 514.67 KB | 1 年前3
Django Q Documentation
Release 0.7.9Disque server is based on Redis by the same author, but focuses on reliable queues. Currently in Alpha, but highly recommended. You can either build it from source or use it on Heroku through the Tynd framework configured for monitoring • Compatible with Tynd Disque addon on Heroku • Still considered Alpha software • Supports bulk dequeue • Requires Redis-py client library: pip install redis • See the functions from a task result instance: from django_q.tasks import fetch task = fetch('winter-speaker-alpha-ceiling') if task.group_count() > 100: 1.4. Tasks 17 Django Q Documentation, Release 0.7.8 print(task0 码力 | 50 页 | 397.77 KB | 1 年前3
Django Q Documentation
Release 0.7.13Disque server is based on Redis by the same author, but focuses on reliable queues. Currently in Alpha, but highly recommended. You can either build it from source or use it on Heroku through the Tynd framework configured for monitoring • Compatible with Tynd Disque addon on Heroku • Still considered Alpha software • Supports bulk dequeue • Requires Redis-py client library: pip install redis • See the functions from a task result instance: from django_q.tasks import fetch task = fetch('winter-speaker-alpha-ceiling') if task.group_count() > 100: print(task.group_result()) task.group_delete() print('Deleted0 码力 | 56 页 | 416.37 KB | 1 年前3
Django Q Documentation
Release 0.7.11Disque server is based on Redis by the same author, but focuses on reliable queues. Currently in Alpha, but highly recommended. You can either build it from source or use it on Heroku through the Tynd framework configured for monitoring • Compatible with Tynd Disque addon on Heroku • Still considered Alpha software • Supports bulk dequeue • Requires Redis-py client library: pip install redis • See the functions from a task result instance: from django_q.tasks import fetch task = fetch('winter-speaker-alpha-ceiling') if task.group_count() > 100: print(task.group_result()) task.group_delete() print('Deleted0 码力 | 54 页 | 412.45 KB | 1 年前3
Django Q Documentation
Release 0.7.10com/antirez/disque] server is based on Redis by the same author, but focuses on reliable queues. Currently in Alpha, but highly recommended. You can either build it from source or use it on Heroku through the Tynd with Tynd [https://disque.tynd.co/] Disque addon on Heroku [https://heroku.com] Still considered Alpha software Supports bulk dequeue Requires Redis-py [https://github.com/andymccurdy/redis-py] client functions from a task result instance: from django_q.tasks import fetch task = fetch('winter-speaker-alpha-ceiling') if task.group_count() > 100: print(task.group_result()) task.group_delete() print('Deleted0 码力 | 67 页 | 518.39 KB | 1 年前3
Django Q Documentation
Release 0.7.12Disque server is based on Redis by the same author, but focuses on reliable queues. Currently in Alpha, but highly recommended. You can either build it from source or use it on Heroku through the Tynd framework configured for monitoring • Compatible with Tynd Disque addon on Heroku • Still considered Alpha software • Supports bulk dequeue • Requires Redis-py client library: pip install redis • See the functions from a task result instance: from django_q.tasks import fetch task = fetch('winter-speaker-alpha-ceiling') if task.group_count() > 100: print(task.group_result()) task.group_delete() print('Deleted0 码力 | 56 页 | 415.46 KB | 1 年前3
Django Q Documentation
Release 0.7.10Disque server is based on Redis by the same author, but focuses on reliable queues. Currently in Alpha, but highly recommended. You can either build it from source or use it on Heroku through the Tynd framework configured for monitoring • Compatible with Tynd Disque addon on Heroku • Still considered Alpha software • Supports bulk dequeue • Requires Redis-py client library: pip install redis • See the functions from a task result instance: from django_q.tasks import fetch task = fetch('winter-speaker-alpha-ceiling') if task.group_count() > 100: print(task.group_result()) task.group_delete() print('Deleted0 码力 | 52 页 | 406.50 KB | 1 年前3
Django Q Documentation
Release 0.7.17Disque server is based on Redis by the same author, but focuses on reliable queues. Currently in Alpha, but highly recommended. You can either build it from source or use it on Heroku through the Tynd framework configured for monitoring • Compatible with Tynd Disque addon on Heroku • Still considered Alpha software • Supports bulk dequeue • Requires Redis-py client library: pip install redis • See the functions from a task result instance: from django_q.tasks import fetch task = fetch('winter-speaker-alpha-ceiling') if task.group_count() > 100: print(task.group_result()) task.group_delete() print('Deleted0 码力 | 56 页 | 416.84 KB | 1 年前3
共 63 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













