Results of 1 - 10 of about 235 for only (0.028 sec.)
- QuerySet API リファレンス — Django 4.0.6 ドキュメント 10932
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
t one Entry with the headline Test" ) Note: If you only want to determine if at least one result exists (a ...
results that are currently in the database. If you only want to pickle the necessary information to recrea ...
pickles between versions Pickles of QuerySets are only valid for the version of Django that was used to g ...
refer to the expression parts by their aliases and only use annotate() for the final result. order_by() ¶ ...
-
https://man.plustar.jp/django/ref/models/querysets.html
- [similar]
- django.utils.encoding — Django 4.0.6 ドキュメント 9541
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
] def smart_str ( s , encoding = "utf-8" , strings_only = False , errors = "strict" ): """ Return a string ...
bytestrings using the 'encoding' codec. If strings_only is True, don't convert (some) non-string-like obje ...
return s return force_str ( s , encoding , strings_only , errors ) _PROTECTED_TYPES = ( type ( None ), int ...
e preserved as-is when passed to force_str(strings_only=True). """ return isinstance ( obj , _PROTECTED_TY ...
-
https://man.plustar.jp/django/_modules/django/utils/encoding.html
- [similar]
- Unicode data — Django 4.0.6 ドキュメント 8232
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e a UnicodeDecodeError at some point. If your code only uses ASCII data, it's safe to use your normal stri ...
ther encoding in your bytestrings! DEFAULT_CHARSET only applies to the strings generated as the result of ...
ytestrings. smart_str(s, encoding='utf-8', strings_only=False, errors='strict') converts its input to a st ...
ta, which might not be UTF-8 encoded.) The strings_only parameter, if set to True, will result in Python n ...
-
https://man.plustar.jp/django/ref/unicode.html
- [similar]
- Constraints reference — Django 4.0.6 ドキュメント 7997
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
te'], name='unique_booking') ensures each room can only be booked once for each date. name ¶ UniqueConstra ...
ame = 'unique_draft_user' ) ensures that each user only has one draft. These conditions have the same data ...
unique index as non-key columns. This allows index-only scans to be used for queries that select only incl ...
uded fields ( include ) and filter only by unique fields ( fields ). 例: UniqueConstraint ...
-
https://man.plustar.jp/django/ref/models/constraints.html
- [similar]
- データベースアクセスの最適化 — Django 4.0.6 ドキュメント 7915
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
et.values() や values_list() を使用する ¶ When you only want a dict or list of values, and don't need ORM ...
in the template, you are fine. QuerySet.defer() や only() を使用する ¶ Use defer() and only() if there are ...
or a single row in the results, even if it ends up only using a few columns. The defer() and only() method ...
n optimize. Use QuerySet.contains(obj) ¶ ...if you only want to find out if obj is in the queryset, rather ...
-
https://man.plustar.jp/django/topics/db/optimization.html
- [similar]
- Django 2.1.15 リリースノート — Django 4.0.6 ドキュメント 7761
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ith related model inlines, where the user has view-only permissions to a parent model but edit permissions ...
to the inline model, would display a read-only view of the parent model but editable forms for th ...
min interface has been changed. Now, if a user has only the "view" permission for a parent model, the enti ...
of inlines in the admin form of an otherwise view-only parent model. Given the complexity of the Django a ...
-
https://man.plustar.jp/django/releases/2.1.15.html
- [similar]
- ミドルウェア — Django 4.0.6 ドキュメント 7690
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
Strict Transport Security ¶ For sites that should only be accessed over HTTPS, you can instruct modern br ...
that you set the header on. Therefore, you should only use it if your entire domain is served via HTTPS o ...
d contain "https://example.com/page.html" . Origin only: send only the "origin" in the referrer. The origi ...
le also keeping CSRF protection, consider enabling only same-origin referrers. SecurityMiddleware can set ...
-
https://man.plustar.jp/django/ref/middleware.html
- [similar]
- Django Utils — Django 4.0.6 ドキュメント 7690
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
in django.utils are designed for internal use and only the following parts can be considered stable and t ...
er is True (exactly True , not just a true value), only the parameter name is added to the header. All oth ...
ponse object: Expires Cache-Control Each header is only added if it isn't already set. cache_timeout is in ...
that a page should never be cached. Each header is only added if it isn't already set. patch_vary_headers ...
-
https://man.plustar.jp/django/ref/utils.html
- [similar]
- Django 2.2.8 リリースノート — Django 4.0.6 ドキュメント 7690
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ith related model inlines, where the user has view-only permissions to a parent model but edit permissions ...
to the inline model, would display a read-only view of the parent model but editable forms for th ...
min interface has been changed. Now, if a user has only the "view" permission for a parent model, the enti ...
of inlines in the admin form of an otherwise view-only parent model. Given the complexity of the Django a ...
-
https://man.plustar.jp/django/releases/2.2.8.html
- [similar]
- django-admin と manage.py — Django 4.0.6 ドキュメント 7537
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
in a particular category. For example, to perform only models and compatibility checks, run: django - adm ...
deploy ¶ Activates some additional checks that are only relevant in a deployment setting. You can use this ...
om being dumped. If you specify a model name, then only that model will be excluded, rather than the entir ...
ring deserialization. --pks PRIMARY_KEYS ¶ Outputs only the objects specified by a comma separated list of ...
-
https://man.plustar.jp/django/ref/django-admin.html
- [similar]