検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 172 for create (0.053 sec.)
Working with Git and GitHub — Django 4.0.6 ドキュメント 6643
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ードのコミット . Below, we are going to show how to create a GitHub pull request containing the changes for T ... count. Setting up local repository ¶ When you have created your GitHub account, with the nick "GitHub_nick", ... and forked Django's repository , create a local copy of your fork: git clone https : // gi ... thub . com / GitHub_nick / django . git This will create a new directory "django", containing a clone of yo ...
https://man.plustar.jp/django/internals/contributing/writing-code/working-with-g... - [similar]
はじめての Django アプリ作成、その 5 — Django 4.0.6 ドキュメント 6643
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... We've built a web-poll application, and we'll now create some automated tests for it. 困ったときは: このチュ ... mezone >>> from polls.models import Question >>> # create a Question instance with pub_date 30 days in the f ... r slightly depending on what questions you already created. You might get unexpected results if your TIME_ZO ... 不要です)。 >>> from django.test import Client >>> # create an instance of the client for our use >>> client = ...
https://man.plustar.jp/django/intro/tutorial05.html - [similar]
多対多 (many-to-many) 関係 — Django 4.0.6 ドキュメント 6643
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... can be performed using the Python API facilities. Create a few Publications : >>> p1 = Publication ( title ... tion ( title = 'Science Weekly' ) >>> p3 . save () Create an Article : >>> a1 = Article ( headline = 'Django ... a Publication : >>> a1 . publications . add ( p1 ) Create another Article , and set it to appear in the Publ ... ): ... TypeError : 'Publication' instance expected Create and add a Publication to an Article in one step us ...
https://man.plustar.jp/django/topics/db/examples/many_to_many.html - [similar]
Related objects reference — Django 4.0.6 ドキュメント 6587
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... hods (the bulk argument doesn't exist), but rather create the relationships using QuerySet.bulk_create() . I ... o execute some custom logic when a relationship is created, listen to the m2m_changed signal, which will tri ... once before creating any intermediate instance(s). create ( through_defaults = None , ** kwargs ) ¶ Creates ... ts it in the related object set. Returns the newly created object: >>> b = Blog . objects . get ( id = 1 ) > ...
https://man.plustar.jp/django/ref/models/relations.html - [similar]
Conditional Expressions — Django 4.0.6 ドキュメント 6531
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... = 'account_type' ) >>> # Complex conditions can be created using Q objects >>> When ( Q ( name__startswith = ... aul" ), ... then = 'name' ) >>> # Condition can be created using boolean expressions. >>> from django.db.mod ... n = Value ( 'non unique' )) >>> # Condition can be created using lookup expressions. >>> from django.db.mode ... import Case , Value , When >>> Client . objects . create ( ... name = 'Jane Doe' , ... account_type = Clien ...
https://man.plustar.jp/django/ref/models/conditional-expressions.html - [similar]
一対一 (one-to-one) 関係 — Django 4.0.6 ドキュメント 6531
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... can be performed using the Python API facilities. Create a couple of Places: >>> p1 = Place ( name = 'Demon ... ' , address = '1013 N. Ashland' ) >>> p2 . save () Create a Restaurant. Pass the "parent" object as this obj ... ce is the primary key on Restaurant, the save will create a new restaurant: >>> r . place = p2 >>> r . save ... = '944 W. Fullerton' ) >>> Restaurant . objects . create ( place = p3 , serves_hot_dogs = True , serves_piz ...
https://man.plustar.jp/django/topics/db/examples/one_to_one.html - [similar]
モデルフィールドリファレンス — Django 4.0.6 ドキュメント 6419
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... default value is used when new model instances are created and a value isn't provided for the field. When th ... the default primary-key behavior. The type of auto-created primary key fields can be specified per app in Ap ... ting object and then save it, a new object will be created alongside the old one. Changed in Django 3.2: In ... older versions, auto-created primary key fields were always AutoField s. uniqu ...
https://man.plustar.jp/django/ref/models/fields.html - [similar]
Django の認証方法のカスタマイズ — Django 4.0.6 ドキュメント 6419
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ername = username ) except User . DoesNotExist : # Create a new user. There's no need to set a password # be ... status as closed" ), ] The only thing this does is create those extra permissions when you run manage.py mig ... rate (the function that creates permissions is connected to the post_migrate sign ... _save def post_save_receiver ( sender , instance , created , ** kwargs ): pass post_save . connect ( post_sa ...
https://man.plustar.jp/django/topics/auth/customizing.html - [similar]
データベースアクセスの最適化 — Django 4.0.6 ドキュメント 6419
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lk methods to reduce the number of SQL statements. Create in bulk ¶ When creating objects, where possible, u ... se the bulk_create() method to reduce the number of SQL queries. For ... example: Entry . objects . bulk_create ([ Entry ( headline = 'This is a test' ), Entry ( ... test' ), ]) ...is preferable to: Entry . objects . create ( headline = 'This is a test' ) Entry . objects . ...
https://man.plustar.jp/django/topics/db/optimization.html - [similar]
Django のインストール方法 — Django 4.0.6 ドキュメント 6295
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... jango's manage.py migrate command to automatically create database tables for your models (after first insta ... ou'll need to ensure that Django has permission to create and alter tables in the database you're using; if ... you plan to manually create the tables, you can grant Django SELECT , INSERT , ... es. The contributing tutorial walks through how to create a virtual environment. After you've created and ac ...
https://man.plustar.jp/django/topics/install.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 NEXT