Django 官方教程翻译项目
编写视图 设计模板 这只是冰山一角 Django 最初被设计用于具有快速开发需求的新闻类站点,目的是要实现简单快捷的网站开发。以下 内容简要介绍了如何使用 Django 实现一个数据库驱动的 Web 应用。 为了让您充分理解 Django 的工作原理,这份文档为您详细描述了相关的技术细节,不过这并不是 一份入门教程或者是参考文档(我们当然也为您准备了这些)。如果您想要马上开始一个项目,可以 - 8 - 本文档使用 书栈(BookStack.CN) 构建 当你的模型完成定义,Django 就会自动生成一个专业的生产级管理页面 - 一个可以让已认证用户 进行添加、更改和删除对象的 Web 站点。你只需简单的在 admin 站点上注册你的模型即可。 1. # mysite/news/models.py 2. 3. from django.db import models 4 应用的典型流程是:先建立数据模型,然后搭建管理站点,尽可能快的跑起来。那样 你的团队(或者客户)就可以向网站里填充数据了。后面我们会谈到如何展示这些数据。 简洁优雅的 URL 规划对于一个高质量 Web 应用来说至关重要。Django 推崇优美的 URL 设计, 所以不要把诸如 .php 和 .asp 之类的冗余的后缀放到 URL 里。 为了设计你自己的 URL,你需要创建一个叫做 URLconf0 码力 | 103 页 | 1.86 MB | 1 年前3Django、Vue 和Element UI 前后端原理论述
视图和序列化器,实现数据的序列化和反序列化,从而方便地 与前端进行数据交互。 MySQL 是一个关系型数据库,用于存储后端的数据。 前端开发(Vue+Element UI): Vue 是一种现代的 JavaScript 框架,用于构建用户界面。Vue 提供了丰富的组件和模 块,可以帮助开发者构建交互式的单页面应用(SPA)。 Element UI 是一个基于 Vue 的 UI 组件库,提供了丰富的预定义组件,用于快速搭建 总体而言,这种前后端分离的开发模式有助于实现前后端开发的解耦,使得各自的 开发工作更加专注和高效。前端负责用户界面的呈现和交互,后端负责数据处理和业务 逻辑,通过 API 接口进行数据传输和交互,从而实现一个完整的 Web 应用。 3 《51 测试天地》七十四 www.51testing.com 二、搭建流程 2.1 后端搭建流程 安装相关包->创建工程->后端依赖(pipenv)创建虚拟环境->后端服务配置启动->后 目打包时的冗余依赖。 3、Django Rest Framework 介绍 Django Rest Framework(简称 DRF)是一个用于构建 Web API 的强大框架,它是基 于 Django(一个流行的 Python Web 框架)开发的。DRF 提供了一系列工具和功能,使得 构建 RESTful API 变得简单、灵活和高效。 DRF 的主要特点和功能包括: 序列化:DRF0 码力 | 61 页 | 6.84 MB | 1 年前3Django 1.8.x Documentation
Django provides an abstraction layer (the “models”) for structuring and manipulating the data of your Web application. Learn more about it below: Models: Introduction to models | Field types | Meta options documentation generator Security Security is a topic of paramount importance in the development of Web applications and Django provides multiple protection tools and mechanisms: Security overview Disclosed multiple languages and world regions: Overview | Internationalization | Localization | Localized Web UI formatting and form input “Local flavor” Time zones Performance and optimization There are a0 码力 | 2454 页 | 2.85 MB | 1 年前3Django 1.8.x Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.14 Common Web application tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.15 Django provides an abstraction layer (the “models”) for structuring and manipulating the data of your Web application. Learn more about it below: 1 Django Documentation, Release 1.8.20.dev20180306181007 documentation generator 1.9 Security Security is a topic of paramount importance in the development of Web applications and Django provides multiple protection tools and mechanisms: • Security overview •0 码力 | 1685 页 | 6.01 MB | 1 年前3Django 1.10.x Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.15 Common Web application tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.16 • Tutorials take you by the hand through a series of steps to create a Web application. Start here if you’re new to Django or Web application development. Also look at the “First steps” below. • Topic Django provides an abstraction layer (the “models”) for structuring and manipulating the data of your Web application. Learn more about it below: • Models: Introduction to models | Field types | Meta options0 码力 | 1817 页 | 6.19 MB | 1 年前3Django 1.10.x Documentation
things: Tutorials take you by the hand through a series of steps to create a Web application. Start here if you’re new to Django or Web application development. Also look at the “First steps” below. Topic guides Django provides an abstraction layer (the “models”) for structuring and manipulating the data of your Web application. Learn more about it below: Models: Introduction to models | Field types | Meta options documentation generator Security Security is a topic of paramount importance in the development of Web applications and Django provides multiple protection tools and mechanisms: Security overview Disclosed0 码力 | 2538 页 | 2.59 MB | 1 年前3Django 2.2.x Documentation
things: Tutorials take you by the hand through a series of steps to create a Web application. Start here if you’re new to Django or Web application development. Also look at the “First steps” below. Topic guides Django provides an abstraction layer (the “models”) for structuring and manipulating the data of your Web application. Learn more about it below: Models: Introduction to models | Field types | Indexes | Meta documentation generator Security Security is a topic of paramount importance in the development of Web applications and Django provides multiple protection tools and mechanisms: Security overview Disclosed0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 1.11.x Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.15 Common Web application tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.16 • Tutorials take you by the hand through a series of steps to create a Web application. Start here if you’re new to Django or Web application development. Also look at the “First steps” below. • Topic Django provides an abstraction layer (the “models”) for structuring and manipulating the data of your Web application. Learn more about it below: • Models: Introduction to models | Field types | Indexes |0 码力 | 1878 页 | 6.40 MB | 1 年前3Django 2.1.x Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.14 Common Web application tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.15 • Tutorials take you by the hand through a series of steps to create a Web application. Start here if you’re new to Django or Web application development. Also look at the “First steps” below. • Topic Django provides an abstraction layer (the “models”) for structuring and manipulating the data of your Web application. Learn more about it below: • Models: Introduction to models | Field types | Indexes |0 码力 | 1910 页 | 6.49 MB | 1 年前3Django 1.11.x Documentation
things: Tutorials take you by the hand through a series of steps to create a Web application. Start here if you’re new to Django or Web application development. Also look at the “First steps” below. Topic guides Django provides an abstraction layer (the “models”) for structuring and manipulating the data of your Web application. Learn more about it below: Models: Introduction to models | Field types | Indexes | Meta documentation generator Security Security is a topic of paramount importance in the development of Web applications and Django provides multiple protection tools and mechanisms: Security overview Disclosed0 码力 | 2747 页 | 2.67 MB | 1 年前3
共 91 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10