Django、Vue 和Element UI 前后端原理论述路由的配置。它接收来自前端的 HTTP 请求,并根据 URL 将请求分发给相应的视图函数进行处理。 Rest Framework 是 Django 的扩展,用于快速构建 RESTful API 接口。通过 Rest Framework,可以定义 API 视图和序列化器,实现数据的序列化和反序列化,从而方便地 与前端进行数据交互。 MySQL 是一个关系型数据库,用于存储后端的数据。 前端开发(Vue+Element 是一个基于 Vue 的 UI 组件库,提供了丰富的预定义组件,用于快速搭建 美观的用户界面。 前后端交互: 后端通过 Django Rest Framework 提供 API 接口,前端通过 Vue 发起 HTTP 请求调用 这些 API 接口。 前端通过 HTTP 请求向后端发送数据请求,后端根据请求进行相应的数据处理,并 返回响应数据给前端。 前端接收到后端返回的数据,并根据数据更新页面展示,实现与用户的交互。 示,实现与用户的交互。 总体而言,这种前后端分离的开发模式有助于实现前后端开发的解耦,使得各自的 开发工作更加专注和高效。前端负责用户界面的呈现和交互,后端负责数据处理和业务 逻辑,通过 API 接口进行数据传输和交互,从而实现一个完整的 Web 应用。 3 《51 测试天地》七十四 www.51testing.com 二、搭建流程 2.1 后端搭建流程 安装相关包->创建工程-0 码力 | 61 页 | 6.84 MB | 1 年前3
Django 1.8.x Documentationdocumentation contents Getting started Django at a glance Design your model Install it Enjoy the free API A dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write your first Django app, part 1 Creating a project Creating models Activating models Playing with the API Writing your first Django app, part 2 Creating an admin user Start the development server Enter the transactions Multiple databases Tablespaces Database access optimization Examples of model relationship API usage Handling HTTP requests URL dispatcher Writing views View decorators File Uploads Django shortcut0 码力 | 2454 页 | 2.85 MB | 1 年前3
Django 1.11.x Documentationdocumentation contents Getting started Django at a glance Design your model Install it Enjoy the free API A dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write transactions Multiple databases Tablespaces Database access optimization Examples of model relationship API usage Handling HTTP requests URL dispatcher Writing views View decorators File Uploads Django shortcut0 码力 | 2747 页 | 2.67 MB | 1 年前3
Django 1.10.x Documentationdocumentation contents Getting started Django at a glance Design your model Install it Enjoy the free API A dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write transactions Multiple databases Tablespaces Database access optimization Examples of model relationship API usage Handling HTTP requests URL dispatcher Writing views View decorators File Uploads Django shortcut0 码力 | 2538 页 | 2.59 MB | 1 年前3
Django 2.0.x Documentationdocumentation contents Getting started Django at a glance Design your model Install it Enjoy the free API A dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write databases Tablespaces Database access optimization Database instrumentation Examples of model relationship API usage Handling HTTP requests URL dispatcher Writing views View decorators File Uploads Django shortcut0 码力 | 2746 页 | 2.67 MB | 1 年前3
Django 2.1.x Documentationdocumentation contents Getting started Django at a glance Design your model Install it Enjoy the free API A dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write databases Tablespaces Database access optimization Database instrumentation Examples of model relationship API usage Handling HTTP requests URL dispatcher Writing views View decorators File Uploads Django shortcut0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 2.2.x Documentationdocumentation contents Getting started Django at a glance Design your model Install it Enjoy the free API A dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your URLs Write Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin Writing your first Django app, part 3 Overview Writing more views Write databases Tablespaces Database access optimization Database instrumentation Examples of model relationship API usage Handling HTTP requests URL dispatcher Writing views View decorators File Uploads Django shortcut0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 4.0.x DocumentationTroubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 702 6 API Reference 705 6.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712 ii 6.3 Built-in class-based views API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 726 6.4 Clickjacking Protection . . . . . . . . . . . . . . . . . . . . . . . 1629 7 Meta-documentation and miscellany 1633 7.1 API stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 3.2.x DocumentationTroubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 688 6 API Reference 691 6.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 698 6.3 Built-in class-based views API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712 ii 6.4 Clickjacking . . . . . . . . . . . . . . . . . . . . . . . 1598 7 Meta-documentation and miscellany 1601 7.1 API stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 2.2.x DocumentationTroubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664 6 API Reference 667 6.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673 6.3 Built-in class-based views API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686 6.4 Clickjacking Protection . . . . . . . . . . . . . . . . . . . . . . . 1520 7 Meta-documentation and miscellany 1523 7.1 API stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 2060 页 | 7.23 MB | 1 年前3
共 69 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













