Jinja2 Documentation Release 2.10is a useful default for Linux and OS X systems as well as web applications. keep_trailing_newline Preserve the trailing newline when rendering templates. The default is False, which causes a single newline users %} ... {% endfor %} #} 5.6 Whitespace Control In the default configuration: • a single trailing newline is stripped if present • other whitespace (spaces, tabs, newlines etc.) is returned unchanged the beginning of the line. By default, Jinja2 also removes trailing newlines. To keep single trailing newlines, configure Jinja to keep_trailing_newline. Note You must not add whitespace between the tag0 码力 | 148 页 | 475.08 KB | 1 年前3
Django 3.0.x Documentationa group of CSS files are appropriate for multiple output media types, the dictionary key can be a comma separated list of output media types. In the following example, TV’s and projectors will have the take advantage of this feature, include all server addresses in LOCATION, either as a semicolon or comma delimited string, or as a list. In this example, the cache is shared over Memcached instances running contain the comma so that the filter parsing code knows how to split up the arguments. For example, a German translator might translate the string "yes,no" as "ja,nein" (keeping the comma intact). Comments0 码力 | 3085 页 | 2.95 MB | 1 年前3
Django 4.2.x Documentationa group of CSS files are appropriate for multiple output media types, the dictionary key can be a comma separated list of output media types. In the following example, TV’s and projectors will have the take advantage of this feature, include all server addresses in LOCATION, either as a semicolon or comma delimited string, or as a list. In this example, the cache is shared over Memcached instances running Redis servers set up in the replication mode, you can specify the servers either as a semicolon or comma delimited string, or as a list. While using multiple servers, write operations are performed on the0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x Documentationa group of CSS files are appropriate for multiple output media types, the dictionary key can be a comma separated list of output media types. In the following example, TV’s and projectors will have the take advantage of this feature, include all server addresses in LOCATION, either as a semicolon or comma delimited string, or as a list. In this example, the cache is shared over Memcached instances running Redis servers set up in the replication mode, you can specify the servers either as a semicolon or comma delimited string, or as a list. While using multiple servers, write operations are performed on the0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 3.2.x Documentationa group of CSS files are appropriate for multiple output media types, the dictionary key can be a comma separated list of output media types. In the following example, TV’s and projectors will have the take advantage of this feature, include all server addresses in LOCATION, either as a semicolon or comma delimited string, or as a list. In this example, the cache is shared over Memcached instances running "yes,no", not the individual strings "yes" and "no". The translated string will need to contain the comma so that the filter parsing code knows how to 498 Chapter 3. Using Django Django Documentation, Release0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 3.2.x Documentationa group of CSS files are appropriate for multiple output media types, the dictionary key can be a comma separated list of output media types. In the following example, TV’s and projectors will have the take advantage of this feature, include all server addresses in LOCATION, either as a semicolon or comma delimited string, or as a list. In this example, the cache is shared over Memcached instances running contain the comma so that the filter parsing code knows how to split up the arguments. For example, a German translator might translate the string "yes,no" as "ja,nein" (keeping the comma intact). Comments0 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 2.2.x Documentationa group of CSS files are appropriate for multiple output media types, the dictionary key can be a comma separated list of output media types. In the following example, TV’s and projectors will have the take advantage of this feature, include all server addresses in LOCATION, either as a semicolon or comma delimited string, or as a list. In this example, the cache is shared over Memcached instances running contain the comma so that the filter parsing code knows how to split up the arguments. For example, a German translator might translate the string "yes,no" as "ja,nein" (keeping the comma intact). Comments0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 4.0.x Documentationa group of CSS files are appropriate for multiple output media types, the dictionary key can be a comma separated list of output media types. In the following example, TV’s and projectors will have the take advantage of this feature, include all server addresses in LOCATION, either as a semicolon or comma delimited string, or as a list. In this example, the cache is shared over Memcached instances running Redis servers set up in the replication mode, you can specify the servers either as a semicolon or comma delimited string, or as a list. While using multiple servers, write operations are performed on the0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 4.0.x Documentationa group of CSS files are appropriate for multiple output media types, the dictionary key can be a comma separated list of output media types. In the following example, TV’s and projectors will have the take advantage of this feature, include all server addresses in LOCATION, either as a semicolon or comma delimited string, or as a list. In this example, the cache is shared over Memcached instances running Redis servers set up in the replication mode, you can specify the servers either as a semicolon or comma delimited string, or as a list. While using multiple servers, write operations are performed on the0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 1.11.x Documentationexpressions for the include() function doesn’t have a $ (end-of-string match character) but rather a trailing slash. Whenever Django encounters include(), it chops off whatever part of the URL matched up to regular expressions in this example don’t have a $ (end-of-string match character) but do include a trailing slash. Whenever Django encounters include() (django.conf.urls.include()), it chops off whatever a group of CSS files are appropriate for multiple output media types, the dictionary key can be a comma separated list of output media types. In the following example, TV’s and projectors will have the0 码力 | 1878 页 | 6.40 MB | 1 年前3
共 348 条
- 1
- 2
- 3
- 4
- 5
- 6
- 35













