Automated testing is an extremely useful bug-killing tool for the modern
Web developer. You can use a collection of tes...
AI君
3年前 (2019-03-28) 139℃
0喜欢
This document describes Django’s file access APIs for files such as those
uploaded by a user. The lower level API...
AI君
3年前 (2019-03-28) 123℃
0喜欢
Migrations are Django’s way of propagating changes you make to your models
(adding a field, deleting a model, e...
AI君
3年前 (2019-03-28) 161℃
0喜欢
Caution
This is an advanced topic. A working knowledge of Django’s
class-based views is advised before exploring...
AI君
3年前 (2019-03-28) 155℃
0喜欢
Form processing generally has 3 paths:
Initial GET (blank or prepopulated form)
POST with invalid data (typically redi...
AI君
3年前 (2019-03-28) 149℃
0喜欢
Writing Web applications can be monotonous, because we repeat certain patterns
again and again. Django tries to take aw...
AI君
3年前 (2019-03-28) 153℃
0喜欢
Class-based views provide an alternative way to implement views as Python
objects instead of functions. They do not rep...
AI君
3年前 (2019-03-28) 142℃
0喜欢
A view is a callable which takes a request and returns a
response. This can be more than just a function, and Django pr...
AI君
3年前 (2019-03-28) 137℃
0喜欢
作为一个Web框架,Django需要一种动态生成HTML的便捷方法。最常用的方法依赖于模板。模板包含所需HTML输出的静态部分以及描述动态内容将被插入的一些特殊语法。有关创建带有模板的HTML页面的示例,请参阅:doc:`Tutori...
AI君
3年前 (2019-03-28) 144℃
0喜欢
关于本页文档
本页文档介绍了Web表单的基本内容以及它们在Django中是如何处理的。想更详细的了解表单的API,参见 The Forms API , Form fields ,以及 Form and field validation ...
AI君
3年前 (2019-03-28) 136℃
0喜欢
Django provides full support for anonymous sessions. The session framework
lets you store and retrieve arbitrary data...
AI君
3年前 (2019-03-28) 233℃
0喜欢
中间件是 Django 请求/响应处理的钩子框架。它是一个轻量级的、低级的“插件”系统,用于全局改变 Django 的输入或输出。
每个中间件组件负责做一些特定的功能。例如,Django 包含一个中间件组件 AuthenticationM...
AI君
3年前 (2019-03-28) 153℃
0喜欢
参考 Built-in class-based views API。
转载请注明:www.ainoob.cn » Django2.0手册:通用视图...
AI君
3年前 (2019-03-28) 223℃
0喜欢
包 django.shortcuts 收集助手函数和“跨”多级mvc的类,换句话说,为了方便起见,这些函数/类引入受控耦合。
render()¶
render(request, template_name, context=N...
AI君
3年前 (2019-03-28) 133℃
0喜欢
Django处理文件上传时, 文件最终会位于:attr:request.FILES <django.http.HttpRequest.FILES> (想了解更多关于“request“ 对象的信息请阅读 ...
AI君
3年前 (2019-03-28) 124℃
0喜欢
Django provides several decorators that can be applied to views to support
various HTTP features.
Allowed HTTP meth...
AI君
3年前 (2019-03-28) 172℃
0喜欢
A view function, or view for short, is simply a Python function that takes a
Web request and returns a Web response. Th...
AI君
3年前 (2019-03-28) 126℃
0喜欢
对于高质量的Web 应用来说,使用简洁、优雅的URL 模式是一个非常值得重视的细节。Django 允许你自由地设计你的URL,不受框架束缚。
不要求有.php 或.cgi,更不会要求类似0,2097,1-1-1928,00 这样无意义的东...
AI君
3年前 (2019-03-28) 140℃
0喜欢
Django 中处理 HTTP 请求的信息:
URL调度器
Writing views
View decorators
文件上传
Django快捷函数
通用视图
中间件
How to use sessions
转载请注明:www....
AI君
3年前 (2019-03-28) 157℃
0喜欢
Many-to-many relationships
Many-to-one relationships
One-to-one relationships
转载请注明:www.ainoob.cn » Django2.0...
AI君
3年前 (2019-03-28) 145℃
0喜欢