Results of 111 - 120 of about 239 for example (0.133 sec.)
- クラスベースのビューでミックスインを使用する — Django 4.0.6 ドキュメント 4842
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
があるでしょう。この例については、 JSONResponseMixin example の例を参照してください。 render_to_response() itse ...
used with all other mixins. Here we present a few examples that do work; if you want to bring together other ...
foreign key) to another object. In our publishing example, you might want to paginate through all the books ...
her . The paginate_by is deliberately small in the example so you don't have to create lots of books to see t ...
-
https://man.plustar.jp/django/topics/class-based-views/mixins.html
- [similar]
- フォームを使う — Django 4.0.6 ドキュメント 4842
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
cleaned_data [ 'cc_myself' ] recipients = [ 'info@example.com' ] if cc_myself : recipients . append ( sender ...
rors, because that's taken care of for us. In this example we have had to make sure we take care of any error ...
p distinguish them from field-specific errors. For example, {{ form.non_field_errors }} would look like: < ul ...
です。 {{ field.value }} フィールドの値。例: someone@example.com {{ field.html_name }} input要素のnameフィールド ...
-
https://man.plustar.jp/django/topics/forms/index.html
- [similar]
- GeoDjango Management Commands — Django 4.0.6 ドキュメント 4791
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
odel with the given model name. There's a detailed example of using ogrinspect in the tutorial . --blank BLAN ...
etry field, treat it as a geometry collection. For example, if this setting is enabled then a MultiPolygonFie ...
-
https://man.plustar.jp/django/ref/contrib/gis/commands.html
- [similar]
- ウィジェット — Django 4.0.6 ドキュメント 4791
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e the widget argument on the field definition. For example: from django import forms class CommentForm ( form ...
other widget-specific attributes. This means, for example, that all TextInput widgets will appear the same o ...
ァイルにいくつか記述を追加する必要もあります)。 For example, take the following form: from django import forms ...
s ¶ An iterable containing the widgets needed. For example: >>> from django.forms import MultiWidget , TextIn ...
-
https://man.plustar.jp/django/ref/forms/widgets.html
- [similar]
- Django 1.3 release notes — Django 4.0.6 ドキュメント 4791
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
tion management functions as context managers. For example: with transaction . autocommit (): # ... Configura ...
nse after it has been constructed by the view. For example, you may want to change the template that is used, ...
s behavior) must now explicitly indicate this. For example: class LoginForm ( forms . Form ): username = form ...
ary the FormSet will raise a ValidationError . For example with a FormSet : >>> class ArticleForm ( Form ): . ...
-
https://man.plustar.jp/django/releases/1.3.html
- [similar]
- Django 1.6.11 release notes — Django 4.0.6 ドキュメント 4791
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
a strip_tags() call without escaping it first, for example with escape() . Mitigated possible XSS attack via ...
URLs prefixed with control characters such as %08//example.com as relative paths so redirection to an unsafe ...
-
https://man.plustar.jp/django/releases/1.6.11.html
- [similar]
- モデル — Django 4.0.6 ドキュメント 4791
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
or globally in the DEFAULT_AUTO_FIELD setting. For example: id = models . BigAutoField ( primary_key = True ) ...
サンプルのコードは、 Many-to-one relationship model example を参照してください。 多対多 (many-to-many) 関係 ¶ ...
参考 完全な実装例は Many-to-many relationship model example を参照してください。 ManyToManyField フィールドは多 ...
ey to the source model (this would be Group in our example), or you must explicitly specify the foreign keys ...
-
https://man.plustar.jp/django/topics/db/models.html
- [similar]
- GeoDjango Database API — Django 4.0.6 ドキュメント 4750
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
nd Saving Models with Geometry Fields ¶ Here is an example of how to create a geometry object (assuming the Z ...
accepted by the GDALRaster constructor. Here is an example of how to create a raster object from a raster fil ...
ntains = ( rst , 1 )) On the left hand side of the example, rast is the geographic raster field and contains ...
tting geography=True in your field definition. For example, let's say we have a SouthTexasCity model (from th ...
-
https://man.plustar.jp/django/ref/contrib/gis/db-api.html
- [similar]
- Django 1.7.7 release notes — Django 4.0.6 ドキュメント 4750
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
a strip_tags() call without escaping it first, for example with escape() . Mitigated possible XSS attack via ...
URLs prefixed with control characters such as %08//example.com as relative paths so redirection to an unsafe ...
-
https://man.plustar.jp/django/releases/1.7.7.html
- [similar]
- Simple mixins — Django 4.0.6 ドキュメント 4709
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ient way of specifying some context in as_view() . Example usage: from django.views.generic import TemplateVi ...
uments provided will make up the returned context. Example usage: def get_context_data ( self , ** kwargs ): ...
-
https://man.plustar.jp/django/ref/class-based-views/mixins-simple.html
- [similar]