検索

phrase: max: clip:
target: order:
Results of 61 - 70 of about 239 for example (0.094 sec.)
Working with Git and GitHub — Django 4.0.6 ドキュメント 5381
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... upstream You can add other remotes similarly, for example: git remote add akaariai https : // github . com / ... he history of this branch, by using git rebase for example. Other people shouldn't base their work on such a ... istory of these branches should never change. Good examples of public branches are the main and stable/A.B.x ... l finish it themselves. Rebasing branches ¶ In the example above, you created two commits, the "Fixed ticket_ ...
https://man.plustar.jp/django/internals/contributing/writing-code/working-with-g... - [similar]
Model index reference — Django 4.0.6 ドキュメント 5381
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... date field in the default ascending order. Another example: Index ( F ( 'height' ) * F ( 'weight' ), Round ( ... column, add a hyphen before the field's name. For example Index(fields=['headline', '-pub_date']) would crea ... pp label and class name of the concrete model. For example Index(fields=['title'], name='%(app_label)s_%(clas ... must provide one for each field in the index. For example, GinIndex(name='json_index', fields=['jsonfield'], ...
https://man.plustar.jp/django/ref/models/indexes.html - [similar]
Signals — Django 4.0.6 ドキュメント 5381
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... iver by specifying its full application label. For example, an Question model defined in the polls applicatio ... ry of keyword arguments passed to __init__() . For example, the tutorial has this line: q = Question ( questi ... e attributes always have their default values. For example, _state.db is None . 警告 For performance reasons, ... is None . using The database alias being used. For example, if a Pizza can have multiple Topping objects, mod ...
https://man.plustar.jp/django/ref/signals.html - [similar]
クラスベースのビューでフォームを扱う — Django 4.0.6 ドキュメント 5381
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... f you have any special requirements; see below for examples. You don't even need to provide a success_url for ... ruct the template_name based on the model. In this example: CreateView and UpdateView use myapp/author_form.h ... orized users in form_valid() . Content negotiation example ¶ Here is an example showing how you might go abou ... case of CreateView, it will # call form.save() for example). response = super () . form_valid ( form ) if sel ...
https://man.plustar.jp/django/topics/class-based-views/generic-editing.html - [similar]
Advanced testing topics — Django 4.0.6 ドキュメント 5381
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ectly, by calling setup() after instantiation. For example, assuming the following class-based view: views.py ... so is to add the hosts to your settings file. For example, the test suite for docs.djangoproject.com include ... ot static (e.g., subdomains for multitenancy). For example, you could write a test for the domain http://othe ... test mirror . Consider the following (simplified) example database configuration: DATABASES = { 'default' : ...
https://man.plustar.jp/django/topics/testing/advanced.html - [similar]
How to create database migrations — Django 4.0.6 ドキュメント 5340
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... run a migration against a particular database. For example, you may want to only run a migration on a particu ... fore, the following steps should be taken. In this example, we'll add a non-nullable UUIDField with a default ... gration files to give them meaningful names in the examples below. Copy the AddField operation from the auto- ... erField , and add imports of uuid and models . For example: 0006_remove_uuid_null.py ¶ # Generated by Django ...
https://man.plustar.jp/django/howto/writing-migrations.html - [similar]
コードのコミット — Django 4.0.6 ドキュメント 5340
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nd-forth commits, then rewrite those into one. For example, if a commit adds some code and a second commit fi ... . If you absolutely must (for security reasons for example), first discuss the situation with the team. For a ... refix the commit message with the branch name. For example: "[1.4.x] Fixed #xxxxx -- Added support for mind r ... commits rather than infrequent large commits. For example, if implementing feature X requires a small change ...
https://man.plustar.jp/django/internals/contributing/committing-code.html - [similar]
django.urls functions for use in URLconfs — Django 4.0.6 ドキュメント 5340
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... urns an element for inclusion in urlpatterns . For example: from django.urls import include , path urlpattern ... e the type of the variable passed to the view. For example, <int:section> matches a string of decimal digits ... d. See 追加的なオプションをビュー関数に渡す for an example. See Naming URL patterns for why the name argument ... urns an element for inclusion in urlpatterns . For example: from django.urls import include , re_path urlpatt ...
https://man.plustar.jp/django/ref/urls.html - [similar]
Django 1.7 release notes — Django 4.0.6 ドキュメント 5340
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ay to add lookup operators for model fields. As an example it is possible to add day_lte operator for DateFie ... of database values prior to the final lookup. For example it is possible to write a year transform that extr ... s possible to filter on the transformed value, for example qs.filter(author__birthdate__year__lte=1981) . For ... 依存するフィールドをクリーニングして検証する for an example using Form.add_error() . Error metadata ¶ The Vali ...
https://man.plustar.jp/django/releases/1.7.html - [similar]
システムチェックフレームワーク — Django 4.0.6 ドキュメント 5340
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... kind of check you may require. The following is an example stub check function: from django.core.checks impor ... t Error , register @register () def example_check ( app_configs , ** kwargs ): errors = [] # . ... that's loaded when your application is loaded; for example, in the AppConfig.ready() method. register ( *tags ... ows you to run only a certain group of checks. For example, to register a compatibility check, you would make ...
https://man.plustar.jp/django/topics/checks.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 NEXT