検索

phrase: max: clip:
target: order:
Results of 31 - 40 of about 239 for example (0.048 sec.)
The sitemap framework — Django 4.0.6 ドキュメント 6103
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... esents a "section" of entries in your sitemap. For example, one Sitemap class could represent all the entries ... emap . They can live anywhere in your codebase. An example ¶ Let's assume you have a blog system, with an Ent ... made callable as functions, as lastmod was in the example. items() is a method that returns a sequence or Qu ... n a datetime . There is no location method in this example, but you can provide it in order to specify the UR ...
https://man.plustar.jp/django/ref/contrib/sitemaps.html - [similar]
How to manage error reporting — Django 4.0.6 ドキュメント 6062
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... a list of compiled regular expression objects. For example: import re IGNORABLE_404_URLS = [ re . compile ( r ... ' ), re . compile ( r '^/phpmyadmin/' ), ] In this example, a 404 to any URL ending with .php or .cgi will no ... any URL starting with /phpmyadmin/ . The following example shows how to exclude some conventional URLs that b ... are.common.BrokenLinkEmailsMiddleware further (for example to ignore requests coming from web crawlers), you ...
https://man.plustar.jp/django/howto/error-reporting.html - [similar]
テストツール — Django 4.0.6 ドキュメント 6062
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... が、これは間違いです。 >>> c . get ( 'https://www.example.com/login/' ) The test client is not capable of re ... ord arguments to specify some default headers. For example, this will send a User-Agent HTTP header in each r ... s the validate_image_file_extension validator. For example: >>> from io import BytesIO >>> img = BytesIO ( b ... ess the headers through HttpResponse.headers . For example, you could determine the content type of a respons ...
https://man.plustar.jp/django/topics/testing/tools.html - [similar]
Unit tests — Django 4.0.6 ドキュメント 6011
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... st create and provide your own test settings . For example, to run the tests on Python 3.9 using PostgreSQL: ... _SETTINGS_MODULE environment variable, if set. For example, the following is equivalent to the command above: ... st modules to runtests.py on the command line. For example, if you'd like to run tests only for generic relat ... fy a list of paths to individual test classes. For example, to run the TranslationTests of the i18n module, t ...
https://man.plustar.jp/django/internals/contributing/writing-code/unit-tests.htm... - [similar]
Unicode data — Django 4.0.6 ドキュメント 5971
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... -16. If you use a more restrictive encoding -- for example, latin1 (iso8859-1) -- you won't be able to store ... oding parameter specifies the input encoding. (For example, Django uses this internally when processing form ... ers that are otherwise permitted in a URL. So, for example, the character '%' is not further encoded when pas ... mess up the query string or anything like that. An example might clarify things here: >>> from urllib.parse i ...
https://man.plustar.jp/django/ref/unicode.html - [similar]
マネージャ — Django 4.0.6 ドキュメント 5971
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... るのではなく、 モデルメソッド を使ってください。 For example, this custom Manager adds a method with_counts() : ... l , on_delete = models . CASCADE ) # ... With this example, you'd use OpinionPoll.objects.with_counts() to ge ... se QuerySet returns all objects in the system. For example, using this model: from django.db import models cl ... = 'Matilda' ) Book . dahl_objects . count () This example also pointed out another interesting technique: us ...
https://man.plustar.jp/django/topics/db/managers.html - [similar]
The staticfiles app — Django 4.0.6 ドキュメント 5920
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ntroduction to the static files app and some usage examples, see How to manage static files (e.g. images, Jav ... ory_permissions_mode parameters, respectively. For example: from django.contrib.staticfiles import storage cl ... more relative paths with the enabled finders. For example:   $ python manage.py findstatic css/base.css ad ... s app is in your project's INSTALLED_APPS setting. Example usage:   $ django-admin runserver --nostatic ... ...
https://man.plustar.jp/django/ref/contrib/staticfiles.html - [similar]
Django の admin サイト — Django 4.0.6 ドキュメント 5879
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... in.py in your application. Let's take a look at an example of the ModelAdmin : from django.contrib import adm ... rst_name' , 'last_name' , 'colored_name' ) As some examples have already demonstrated, when using a callable, ... a hyphen prefix on the field name. Using the above example, this would look like: @admin . display ( ordering ... lookups to sort by values on related models. This example includes an "author first name" column in the list ...
https://man.plustar.jp/django/ref/contrib/admin/index.html - [similar]
ミドルウェア — Django 4.0.6 ドキュメント 5879
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... d idea to first use a small value for testing, for example, SECURE_HSTS_SECONDS = 3600 for one hour. Each tim ... RL: send the entire URL in the Referer header. For example, if the user is visiting https://example.com/page. ... html , the Referer header would contain "https://example.com/page.html" . Origin only: send only the "origi ... the scheme, host and (optionally) port number. For example, if the user is visiting https://example.com/page. ...
https://man.plustar.jp/django/ref/middleware.html - [similar]
Django Utils — Django 4.0.6 ドキュメント 5879
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... che keys to prevent delivery of wrong content. For example, internationalization middleware would need to dis ... e list/tuple. See decorating class based views for example usage. decorator_from_middleware ( middleware_clas ... rguments to be passed to the middleware_class. For example, the cache_page() decorator is created from the Ca ... ce. You can make cached properties of methods. For example, if you had an expensive get_friends() method and ...
https://man.plustar.jp/django/ref/utils.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 NEXT