検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 239 for example (0.088 sec.)
Django のショートカット関数 — Django 4.0.6 ドキュメント 6642
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ading the template. カスタマイズ例 ¶ The following example renders the template myapp/index.html with the MIM ... , }, content_type = 'application/xhtml+xml' ) This example is equivalent to: from django.http import HttpResp ... y_view ( request ): ... return redirect ( 'https://example.com/' ) By default, redirect() returns a temporary ... et() and filter() . カスタマイズ例 ¶ The following example gets the object with the primary key of 1 from MyM ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
モデルフィールドリファレンス — Django 4.0.6 ドキュメント 6601
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... single list (such as the 'unknown' option in this example). choices がセットされているモデルフィールドごとに ... ll be a (value, label) two-tuple. See below for an example of subclassing choices using a more complex data t ... mmon, Django provides an IntegerChoices class. For example: class Card ( models . Model ): class Suit ( model ... stead, wrap the desired default in a callable. For example, if you want to specify a default dict for JSONFie ...
https://man.plustar.jp/django/ref/models/fields.html - [similar]
contenttypes フレームワーク — Django 4.0.6 ドキュメント 6378
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... hon import path; django.contrib.contenttypes , for example, becomes an app_label of contenttypes . model ¶ Th ... bose_name attribute of the model. Let's look at an example to see how this works. If you already have the con ... lass represented by this ContentType instance. For example, we could look up the ContentType for the User mod ... applications make use of the latter technique. For example, the permissions system in Django's authentication ...
https://man.plustar.jp/django/ref/contrib/contenttypes.html - [similar]
How to create custom model fields — Django 4.0.6 ドキュメント 6327
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nd``属性は``Hand``インスタンスだと想定しています) example = MyModel . objects . get ( pk = 1 ) print ( examp ... ) new_hand = Hand ( north , east , south , west ) example . hand = new_hand example . save () 他のPythonクラ ... or return name , path , args , kwargs More complex examples are beyond the scope of this document, but rememb ... class attribute of your custom field. In the above example, the description displayed by the admindocs applic ...
https://man.plustar.jp/django/howto/custom-model-fields.html - [similar]
URL ディスパッチャ — Django 4.0.6 ドキュメント 6327
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... alues can optionally include a converter type. For example, use <int:name> to capture an integer parameter. I ... d a leading slash, because every URL has that. For example, it's articles , not /articles . Example requests: ... rs, plus the hyphen and underscore characters. For example, building-your-1st-django-site . uuid - Matches a ... ust be included and letters must be lowercase. For example, 075194d3-6885-417e-a8a8-6c931e272f00 . Returns a ...
https://man.plustar.jp/django/topics/http/urls.html - [similar]
Admin actions — Django 4.0.6 ドキュメント 6286
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ected objects" action available to all models. For example, here's the user module from Django's built-in dja ... hich does deletion in your preferred manner -- for example, by calling Model.delete() for each of the selecte ... actions ¶ The easiest way to explain actions is by example, so let's dive in. A common use case for admin act ... anced options. Actions as ModelAdmin methods ¶ The example above shows the make_published action defined as a ...
https://man.plustar.jp/django/ref/contrib/admin/actions.html - [similar]
GEOS API — Django 4.0.6 ドキュメント 6286
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... n using ctypes . Loosely-coupled to GeoDjango. For example, GEOSGeometry objects may be used outside of a Dja ... object on some spatial input -- the following are examples of creating the same geometry from WKT, HEX, WKB, ... pecific geometry type that you wish to create. For example, a Point object may be created by passing in the X ... constructors take the keyword argument srid . For example: >>> from django.contrib.gis.geos import GEOSGeome ...
https://man.plustar.jp/django/ref/contrib/gis/geos.html - [similar]
The Django template language: for Python programmers — Django 4.0.6 ドキュメン... 6235
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... or provide alternate labels for existing ones. For example: Engine ( libraries = { 'myapp_tags' : 'path.to.my ... of template tag modules to add to built-ins . For example: Engine ( builtins = [ 'myapp.builtins' ], ) Tags ... llowing lookups, in this order: Dictionary lookup. Example: foo["bar"] Attribute lookup. Example: foo.bar Lis ... t-index lookup. Example: foo[bar] Note that "bar" in a template expression ...
https://man.plustar.jp/django/ref/templates/api.html - [similar]
Full text search — Django 4.0.6 ドキュメント 6194
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... of PostgreSQL's full text search engine . For the examples in this document, we'll use the models defined in ... term against a single column in the database. For example: >>> Entry . objects . filter ( body_text__search ... combined together, allowing you to reuse them. For example: >>> Entry . objects . annotate ( ... search = Sea ... Search docs to learn about differences and syntax. Examples: >>> from django.contrib.postgres.search import S ...
https://man.plustar.jp/django/ref/contrib/postgres/search.html - [similar]
クエリを作成する — Django 4.0.6 ドキュメント 6154
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... t of the right type to the field in question. This example updates the blog attribute of an Entry instance en ... ar LIMIT 1 ), use an index instead of a slice. For example, this returns the first Entry in the database, aft ... l will not necessarily refer to the same item. For example, the following query would exclude blogs that cont ... any joins needed to access the related object. For example, to retrieve all the entries where the author's na ...
https://man.plustar.jp/django/topics/db/queries.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 NEXT