Django、Vue 和Element UI 前后端原理论述
和 Element UI 前后 端原理论述 作者:M&T. 2 《51 测试天地》七十四 www.51testing.com 后端开发(Django+Rest Framework+MySQL): Django 负责处理 HTTP 请求和响应,以及 URL 路由的配置。它接收来自前端的 HTTP 请求,并根据 URL 将请求分发给相应的视图函数进行处理。 Rest Framework Django 的扩展,用于快速构建 RESTful API 接口。通过 Rest Framework,可以定义 API 视图和序列化器,实现数据的序列化和反序列化,从而方便地 与前端进行数据交互。 MySQL 是一个关系型数据库,用于存储后端的数据。 前端开发(Vue+Element UI): Vue 是一种现代的 JavaScript 框架,用于构建用户界面。Vue 提供了丰富的组件和模 块, Framework:使用 Django Rest Framework 来构建 RESTful API,方便前端 和其他应用调用后端接口。 数据库配置:配置 Django 项目的数据库连接,通常使用 MySQL 作为后端数据库, 可以在 settings.py 中进行配置。 2.2 前端搭建流程 创建工程(模板)->前端依赖(npm install )->前端服务配置启动 简要说明: 创建工程(模板):可以使用0 码力 | 61 页 | 6.84 MB | 1 年前3Django 官方教程翻译项目
"copyright", "credits" or "license" for more information. 4. >>> 只有当你需要使用“大型”数据库例如 PostgreSQL、MySQL 或 Oracle 时,才需要这一步。若要 安装这样的数据库,请参考数据库安装信息。 快速安装指南 安装 Python 配置数据库 快速安装指南 - 13 - 本文档使用 书栈(BookStack 引擎(ENGINE) - ‘django.db.backends.sqlite3’、 ‘django.db.backends.postgresql’、 ‘django.db.backends.mysql’ 或者 ‘django.db.backends.oracle’。 其他的后端 也可以参考。 名字(NAME) - 你数据库的名字。如果你正在使用 SQLite,数据库将以文件形式保存在你的 设置创建一些必要的数据库表和随应用迁移的数据库(我们将会稍后介绍)。你将看到应用于各个迁 移的消息。如果你感兴趣,可以运行一下你的数据库客户端,然后输入(\dt (PostgreSQL), SHOW TABLES; (MySQL), .schema (SQLite), SELECT TABLE_NAME FROM USER_TABLES; (Oracle))来看下 Django 创建的这些表。 给极简主义者 就像我0 码力 | 103 页 | 1.86 MB | 1 年前3Django 5.1 Documentation
Utilities Settings Frequently Asked 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 is only 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 run the command-line client for your database and type \dt (PostgreSQL), SHOW TABLES; (MariaDB, MySQL), .tables (SQLite), or SELECT TABLE_NAME FROM USER_TABLES; (Oracle) to display the tables Django created0 码力 | 3513 页 | 3.17 MB | 1 年前3Django 5.1.2 Documentation
Utilities Settings Frequently Asked 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 is only 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 run the command-line client for your database and type \dt (PostgreSQL), SHOW TABLES; (MariaDB, MySQL), .tables (SQLite), or SELECT TABLE_NAME FROM USER_TABLES; (Oracle) to display the tables Django created0 码力 | 3519 页 | 3.17 MB | 1 年前3Django 5.0.x Documentation
Utilities Settings Frequently Asked 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 is only 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 ENGINE – Either 'django.db.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 database0 码力 | 3407 页 | 3.21 MB | 1 年前3Django 4.2.x Documentation
Utilities Settings Frequently Asked 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 is only 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 ENGINE – Either 'django.db.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 database0 码力 | 3305 页 | 3.16 MB | 1 年前3Django 3.2.x Documentation
apps Settings Frequently Asked 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 is only 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 ENGINE – Either 'django.db.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 database0 码力 | 3121 页 | 3.08 MB | 1 年前3Django 2.2.x Documentation
and reusable apps Settings Frequently Asked Questions Databases General notes PostgreSQL notes MySQL notes SQLite notes Oracle notes Using a 3rd-party database backend django-admin and manage.py Usage This step is only necessary if you’d like to work with a “large” database engine like PostgreSQL, MySQL, or Oracle. To install such a database, consult the database installation information. Install Django ENGINE – Either 'django.db.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 database0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 4.1.x Documentation
Utilities Settings Frequently Asked 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 is only 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 ENGINE – Either 'django.db.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 database0 码力 | 3240 页 | 3.13 MB | 1 年前3Django 3.1.x Documentation
apps Settings Frequently Asked 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 is only 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 ENGINE – Either 'django.db.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 database0 码力 | 3094 页 | 3.03 MB | 1 年前3
共 55 条
- 1
- 2
- 3
- 4
- 5
- 6