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 DocumentationTroubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 608 6 API Reference 611 6.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617 ii 6.3 Built-in class-based views API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626 6.4 Clickjacking Protection . . . . . . . . . . . . . . . . . . . . . . . 1317 7 Meta-documentation and miscellany 1321 7.1 API stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 1685 页 | 6.01 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 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635 ii 6 API Reference 637 6.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 643 6.3 Built-in class-based views API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654 6.4 Clickjacking Protection . . . . . . . . . . . . . . . . . . . . . . . 1418 7 Meta-documentation and miscellany 1421 7.1 API stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 1.10.x DocumentationTroubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627 6 API Reference 629 ii 6.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635 6.3 Built-in class-based views API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646 6.4 Clickjacking Protection . . . . . . . . . . . . . . . . . . . . . . . 1384 7 Meta-documentation and miscellany 1387 7.1 API stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 1817 页 | 6.19 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 官方教程翻译项目可以开始翻译咯。 6. PR。 README - 5 - 本文档使用 书栈(BookStack.CN) 构建 初识 Django 初识 Django 设计模型 创建模型 享用便捷的 API 动态生成的管理页面:并非徒有其表 规划 URL 编写视图 设计模板 这只是冰山一角 Django 最初被设计用于具有快速开发需求的新闻类站点,目的是要实现简单快捷的网站开发。以下 内容简要介绍了如何使用 migrate 命令会查找所有可用的模型,如果数据库中没有与之对应的表,则会为其自动创建。 Django 也提供了其他更丰富的控制方式。 接下来,你就可以使用一套便捷而丰富的 Python API 用于访问你的数据。这些 API 是自动即时 创建的,你不用编写其他任何代码。 1. # 从我们的 news 应用里导入模型(译注:记者和文章模型)。 2. >>> from news.models import Python 对象中的属性。 23. >>> r.full_name 创建模型 享用便捷的 API 初识 Django - 7 - 本文档使用 书栈(BookStack.CN) 构建 24. 'John Smith' 25. 26. # Django 提供了一套丰富的数据库查找 API。 27. >>> Reporter.objects.get(id=1) 28.0 码力 | 103 页 | 1.86 MB | 1 年前3
Django 2.1.x DocumentationTroubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627 6 API Reference 629 6.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635 6.3 Built-in class-based views API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647 6.4 Clickjacking Protection . . . . . . . . . . . . . . . . . . . . . . . 1418 7 Meta-documentation and miscellany 1421 7.1 API stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 2.0.x DocumentationTroubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627 6 API Reference 629 6.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635 6.3 Built-in class-based views API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646 6.4 Clickjacking Protection . . . . . . . . . . . . . . . . . . . . . . . 1406 7 Meta-documentation and miscellany 1409 7.1 API stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 1880 页 | 6.41 MB | 1 年前3
共 69 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













