Django 官方教程翻译项目以获取更多信息。较新版本的 Python 内置一个轻量级的数据库 SQLite,所以你暂时不需要配置 数据库。 可以从 Python 官网或者系统的包管理工具获取到最新版的 Python。 Jython 上的 Django 如果你使用的是 Jython(一种 Java 平台的 Python 实现),你需要做一些额外的步骤。查看在 Jython 上运行 Django 获 取详细信息。 你可以在终端下输入命令 你可以在终端下输入命令 python 来验证是否已经安装 Python;你应该看到下面的信息: 1. Python 3.4.x 2. [GCC 4.x] on linux 3. Type "help", "copyright", "credits" or "license" for more information. 4. >>> 只有当你需要使用“大型”数据库例如 PostgreSQL、MySQL PostgreSQL、MySQL 或 Oracle 时,才需要这一步。若要 安装这样的数据库,请参考数据库安装信息。 快速安装指南 安装 Python 配置数据库 快速安装指南 - 13 - 本文档使用 书栈(BookStack.CN) 构建 如果你是从旧版本的 Django 升级安装,你将需要在安装新版本之前卸载旧版本的 Django。 你可以按下面三个简单的方式来安装 Django: 安装官方发布版本。对大多数用户来说这是最好的方式。0 码力 | 103 页 | 1.86 MB | 1 年前3
Django、Vue 和Element UI 前后端原理论述的错误。 提高项目可移植性:将项目的依赖放在虚拟环境中,可以使得项目在不同的计算机 或服务器上都能轻松地部署和运行,而不需要担心依赖问题。 简化依赖管理:虚拟环境可以将项目所需的依赖以及其版本信息保存在一个文件中 (例如 Pipfile.lock),这样可以方便地重现项目的开发环境,使得依赖的安装和管理更加 简单和自动化。 2、Pipenv 介绍 Pipenv 是 Python 的一 安装项目依赖时,它会自动创建一个虚拟环境, 确保项目的依赖不会与其他项目冲突。 5 《51 测试天地》七十四 www.51testing.com 管理依赖:Pipenv 会自动地管理项目的依赖关系,并将依赖信息保存在 Pipfile 和 Pipfile.lock 文件中,这样可以确保项目在不同环境中安装相同的依赖版本。 简化依赖安装:使用 Pipenv 安装依赖非常简单,只需要运行一个命令即可,而不需 构建工具和其他相关资源。以下是 npm 在前端开发中的应用介绍: 依赖管理:npm 可以管理前端项目的依赖,开发者可以在项目的 package.json 文件中 声明项目所依赖的第三方模块和库,以及其版本信息。在安装项目时,运行 npm install 命令会自动从 npm 仓库下载并安装这些依赖,使得项目能够在开发和生产环境中正常运 行。 脚本执行:在 package.json 文件中,开发者可以定义各种自定义的脚本命令,比如启0 码力 | 61 页 | 6.84 MB | 1 年前3
Django 1.8.x Documentationfollow, secure and extra arguments act the same as for Client.get(). trace(path, follow=False, secure=False, **extra) Makes a TRACE request on the provided path and returns a Response object. Useful for data is not provided as a keyword parameter in order to comply with RFC 2616, which mandates that TRACE requests should not have an entity-body. The follow, secure, and extra arguments act the same as • It only has access to the HTTP methods get(), post(), put(), delete(), head(), options(), and trace(). • These methods accept all the same arguments except for follow. Since this is just a factory0 码力 | 1685 页 | 6.01 MB | 1 年前3
Django 1.8.x Documentationfollow, secure and extra arguments act the same as for Client.get(). trace(path, follow=False, secure=False, **extra) Makes a TRACE request on the provided path and returns a Response object. Useful for data is not provided as a keyword parameter in order to comply with RFC 2616, which mandates that TRACE requests should not have an entity-body. The follow, secure, and extra arguments act the same as API: It only has access to the HTTP methods get(), post(), put(), delete(), head(), options(), and trace(). These methods accept all the same arguments except for follow. Since this is just a factory for0 码力 | 2454 页 | 2.85 MB | 1 年前3
Django 2.1.x Documentationfollow, secure and extra arguments act the same as for Client.get(). trace(path, follow=False, secure=False, **extra) Makes a TRACE request on the provided path and returns a Response object. Useful for provided as a keyword parameter in order to comply with RFC 7231#section-4.3.8, which mandates that TRACE requests must not have a body. The follow, secure, and extra arguments act the same as for Client • It only has access to the HTTP methods get(), post(), put(), delete(), head(), options(), and trace(). • These methods accept all the same arguments except for follow. Since this is just a factory0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 1.11.x Documentationfollow, secure and extra arguments act the same as for Client.get(). trace(path, follow=False, secure=False, **extra) Makes a TRACE request on the provided path and returns a Response object. Useful for provided as a keyword parameter in order to comply with RFC 7231#section-4.3.8, which mandates that TRACE requests must not have a body. The follow, secure, and extra arguments act the same as for Client • It only has access to the HTTP methods get(), post(), put(), delete(), head(), options(), and trace(). • These methods accept all the same arguments except for follow. Since this is just a factory0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 1.11.x Documentationfollow, secure and extra arguments act the same as for Client.get(). trace(path, follow=False, secure=False, **extra) Makes a TRACE request on the provided path and returns a Response object. Useful for provided as a keyword parameter in order to comply with RFC 7231#section-4.3.8, which mandates that TRACE requests must not have a body. The follow, secure, and extra arguments act the same as for Client API: It only has access to the HTTP methods get(), post(), put(), delete(), head(), options(), and trace(). These methods accept all the same arguments except for follow. Since this is just a factory for0 码力 | 2747 页 | 2.67 MB | 1 年前3
Django 2.1.x Documentationfollow, secure and extra arguments act the same as for Client.get(). trace(path, follow=False, secure=False, **extra) Makes a TRACE request on the provided path and returns a Response object. Useful for provided as a keyword parameter in order to comply with RFC 7231#section-4.3.8, which mandates that TRACE requests must not have a body. The follow, secure, and extra arguments act the same as for Client API: It only has access to the HTTP methods get(), post(), put(), delete(), head(), options(), and trace(). These methods accept all the same arguments except for follow. Since this is just a factory for0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 2.0.x Documentationfollow, secure and extra arguments act the same as for Client.get(). trace(path, follow=False, secure=False, **extra) Makes a TRACE request on the provided path and returns a Response object. Useful for provided as a keyword parameter in order to comply with RFC 7231#section-4.3.8, which mandates that TRACE requests must not have a body. The follow, secure, and extra arguments act the same as for Client • It only has access to the HTTP methods get(), post(), put(), delete(), head(), options(), and trace(). • These methods accept all the same arguments except for follow. Since this is just a factory0 码力 | 1880 页 | 6.41 MB | 1 年前3
Django 2.2.x Documentationfollow, secure and extra arguments act the same as for Client.get(). trace(path, follow=False, secure=False, **extra) Makes a TRACE request on the provided path and returns a Response object. Useful for provided as a keyword parameter in order to comply with RFC 7231#section-4.3.8, which mandates that TRACE requests must not have a body. The follow, secure, and extra arguments act the same as for Client API: It only has access to the HTTP methods get(), post(), put(), delete(), head(), options(), and trace(). These methods accept all the same arguments except for follow. Since this is just a factory for0 码力 | 2915 页 | 2.83 MB | 1 年前3
共 33 条
- 1
- 2
- 3
- 4













