Django 官方教程翻译项目"copyright", "credits" or "license" for more information. 4. >>> 只有当你需要使用“大型”数据库例如 PostgreSQL、MySQL 或 Oracle 时,才需要这一步。若要 安装这样的数据库,请参考数据库安装信息。 快速安装指南 安装 Python 配置数据库 快速安装指南 - 13 - 本文档使用 书栈(BookStack.CN) 函数并没有 $(字符串匹配结 束),取而代之的是尾部的一个斜杠。每当 Django 遇到 include(),它就会排除正则匹配的部 分,并将剩下的字符串发送到引用的 URLconf 中做进一步的处理。 include() 背后的想法是想使得 URL 的即插即用变得简单。polls 是在它们自己的 URLconf 中( polls/urls.py ),它们是可以被放在“/polls/”、 “/fun_polls/”、 backends.sqlite3’、 ‘django.db.backends.postgresql’、 ‘django.db.backends.mysql’ 或者 ‘django.db.backends.oracle’。 其他的后端 也可以参考。 名字(NAME) - 你数据库的名字。如果你正在使用 SQLite,数据库将以文件形式保存在你的 电脑;在这种情况下,名字 应该是绝对路径,包括文件名。默认 os0 码力 | 103 页 | 1.86 MB | 1 年前3
Django、Vue 和Element UI 前后端原理论述www.51testing.com 后端开发(Django+Rest Framework+MySQL): Django 负责处理 HTTP 请求和响应,以及 URL 路由的配置。它接收来自前端的 HTTP 请求,并根据 URL 将请求分发给相应的视图函数进行处理。 Rest Framework 是 Django 的扩展,用于快速构建 RESTful API 接口。通过 Rest Framework,可以定义 前端通过 HTTP 请求向后端发送数据请求,后端根据请求进行相应的数据处理,并 返回响应数据给前端。 前端接收到后端返回的数据,并根据数据更新页面展示,实现与用户的交互。 总体而言,这种前后端分离的开发模式有助于实现前后端开发的解耦,使得各自的 开发工作更加专注和高效。前端负责用户界面的呈现和交互,后端负责数据处理和业务 逻辑,通过 API 接口进行数据传输和交互,从而实现一个完整的 Web 数据反序列化为数据对象,便于在后端进行 处理。 视图:DRF 提供了各种视图类,用于处理 API 请求,并返回适当的响应。包括基于 函数的视图和基于类的视图,还有通用视图和视图集等。 路由:DRF 提供了灵活的路由功能,用于将 API 请求映射到相应的视图处理函数上。 认证和权限:DRF 支持各种认证和权限控制方式,可以保护 API 的安全性。 分页和过滤:DRF 提供了分页和过滤功能,便于处理大量数据和筛选查询结果。0 码力 | 61 页 | 6.84 MB | 1 年前3
Django 5.1 DocumentationAsked Questions Databases General notes PostgreSQL notes MariaDB notes MySQL notes SQLite notes Oracle notes Subclassing the built-in database backends Using a 3rd-party database backend django-admin necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult the database installation information. Install Django You’ve (PostgreSQL), SHOW TABLES; (MariaDB, MySQL), .tables (SQLite), or SELECT TABLE_NAME FROM USER_TABLES; (Oracle) to display the tables Django created. For the minimalists Like we said above, the default applications0 码力 | 3513 页 | 3.17 MB | 1 年前3
Django 5.1.2 DocumentationAsked Questions Databases General notes PostgreSQL notes MariaDB notes MySQL notes SQLite notes Oracle notes Subclassing the built-in database backends Using a 3rd-party database backend django-admin necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult the database installation information. Install Django You’ve (PostgreSQL), SHOW TABLES; (MariaDB, MySQL), .tables (SQLite), or SELECT TABLE_NAME FROM USER_TABLES; (Oracle) to display the tables Django created. For the minimalists Like we said above, the default applications0 码力 | 3519 页 | 3.17 MB | 1 年前3
Django 5.0.x DocumentationAsked Questions Databases General notes PostgreSQL notes MariaDB notes MySQL notes SQLite notes Oracle notes Subclassing the built-in database backends Using a 3rd-party database backend django-admin necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult the database installation information. Install Django You’ve backends.sqlite3', 'django.db.backends.postgresql', 'django.db.backends.mysql', or 'django.db.backends.oracle'. Other backends are also available. NAME – The name of your database. If you’re using SQLite, the0 码力 | 3407 页 | 3.21 MB | 1 年前3
Django 4.2.x DocumentationAsked Questions Databases General notes PostgreSQL notes MariaDB notes MySQL notes SQLite notes Oracle notes Subclassing the built-in database backends Using a 3rd-party database backend django-admin necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult the database installation information. Install Django You’ve backends.sqlite3', 'django.db.backends.postgresql', 'django.db.backends.mysql', or 'django.db.backends.oracle'. Other backends are also available. NAME – The name of your database. If you’re using SQLite, the0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x DocumentationAsked Questions Databases General notes PostgreSQL notes MariaDB notes MySQL notes SQLite notes Oracle notes Subclassing the built-in database backends Using a 3rd-party database backend django-admin necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult the database installation information. Install Django You’ve backends.sqlite3', 'django.db.backends.postgresql', 'django.db.backends.mysql', or 'django.db.backends.oracle'. Other backends are also available. NAME – The name of your database. If you’re using SQLite, the0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.0.x DocumentationAsked Questions Databases General notes PostgreSQL notes MariaDB notes MySQL notes SQLite notes Oracle notes Subclassing the built-in database backends Using a 3rd-party database backend django-admin necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult the database installation information. Install Django You’ve backends.sqlite3', 'django.db.backends.postgresql', 'django.db.backends.mysql', or 'django.db.backends.oracle'. Other backends are also available. NAME – The name of your database. If you’re using SQLite, the0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 4.0.x Documentationnecessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult the database installation information. 2.2.3 Install Django backends.sqlite3', 'django.db.backends.postgresql', 'django.db. backends.mysql', or 'django.db.backends.oracle'. Other backends are also available. • NAME – The name of your database. If you’re using SQLite (PostgreSQL), SHOW TABLES; (MariaDB, MySQL), .tables (SQLite), or SELECT TABLE_NAME FROM USER_TABLES; (Oracle) to display the tables Django created. For the minimalists Like we said above, the default applications0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 3.2.x DocumentationAsked Questions Databases General notes PostgreSQL notes MariaDB notes MySQL notes SQLite notes Oracle notes Subclassing the built-in database backends Using a 3rd-party database backend django-admin necessary if you’d like to work with a “large” database engine like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult the database installation information. Install Django You’ve backends.sqlite3', 'django.db.backends.postgresql', 'django.db.backends.mysql', or 'django.db.backends.oracle'. Other backends are also available. NAME – The name of your database. If you’re using SQLite, the0 码力 | 3121 页 | 3.08 MB | 1 年前3
共 32 条
- 1
- 2
- 3
- 4













