这篇文档讲述了如何在你的 Django 应用中使用外部身份验证资源(在web服务器上设置 “REMOTE_USER“的地方)。这种类型的身份验证方法一般用在使用了单点登录方案的内部网站上,比如 IIS 和 Wind...
AI君
3年前 (2019-03-28) 161℃
0喜欢
Here you’ll find short answers to “How do I….?” types of questions. These
how-to guides donR...
AI君
3年前 (2019-03-28) 123℃
0喜欢
系统检查框架是一组验证Django项目的静态检查。 它检测到常见的问题,并提供了如何解决这些问题的提示。 该框架是可扩展的,所以你可以轻松地添加自己的检查。
Checks can be triggered explicitly via...
AI君
3年前 (2019-03-28) 132℃
0喜欢
Django ships with a variety of extra, optional tools that solve common
problems (contrib.*). For easier maintenance and...
AI君
3年前 (2019-03-28) 127℃
0喜欢
Django includes a “signal dispatcher” which helps allow decoupled applications
get notified when actions ...
AI君
3年前 (2019-03-28) 146℃
0喜欢
Django’s serialization framework provides a mechanism for “translating” Django
models into other form...
AI君
3年前 (2019-03-28) 132℃
0喜欢
Django的settings文件包含Django应用的所有配置项。该文档会介绍settings是如何运行,以及有哪些设置项是可用的。
基础¶
配置文件只是一个使用模块级变量的一个Python模块。
一组配置例子:
ALLOWED...
AI君
3年前 (2019-03-28) 116℃
0喜欢
本文档概述了一些技术和工具,这些技术和工具可以帮助您更有效地运行Django代码——更快,并且使用更少的系统资源。
介绍¶
通常,首先要考虑的是编写*工作的*代码,它的逻辑功能与产生预期输出所需的逻辑功能相同。然而,有时,这并不足以使...
AI君
3年前 (2019-03-28) 151℃
0喜欢
This document is an overview of Django’s security features. It includes advice
on securing a Django-powered site....
AI君
3年前 (2019-03-28) 126℃
0喜欢
Django provides a few classes that help you manage paginated data — that is,
data that’s split across sev...
AI君
3年前 (2019-03-28) 124℃
0喜欢
A quick logging primer¶
Django uses Python’s builtin logging module to perform system logging.
The usage of t...
AI君
3年前 (2019-03-28) 124℃
0喜欢
概况¶
The goal of internationalization and localization is to allow a single Web
application to offer its content in ...
AI君
3年前 (2019-03-28) 114℃
0喜欢
Although Python makes sending email relatively easy via the smtplib
module, Django provides a couple of light wrapper...
AI君
3年前 (2019-03-28) 130℃
0喜欢
The golden rule of Web application security is to never trust data from
untrusted sources. Sometimes it can be useful...
AI君
3年前 (2019-03-28) 147℃
0喜欢
HTTP clients can send a number of headers to tell the server about copies of a
resource that they have already seen. Th...
AI君
3年前 (2019-03-28) 127℃
0喜欢
A fundamental trade-off in dynamic websites is, well, they’re dynamic. Each
time a user requests a page, the Web ...
AI君
3年前 (2019-03-28) 140℃
0喜欢
The request factory¶
class RequestFactory[source]¶
The RequestFactory shares the same API as
the test client. How...
AI君
3年前 (2019-03-28) 183℃
0喜欢
Django comes with a user authentication system. It handles user accounts,
groups, permissions and cookie-based user ...
AI君
3年前 (2019-03-28) 121℃
0喜欢
Django provides a small set of tools that come in handy when writing tests.
The test client¶
The test client is a Pyt...
AI君
3年前 (2019-03-28) 243℃
0喜欢
See also
The testing tutorial, the testing tools
reference, and the advanced testing topics.
This document is split...
AI君
3年前 (2019-03-28) 131℃
0喜欢