検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 25 for question (0.027 sec.)
はじめての Django アプリ作成、その 5 — Django 4.0.6 ドキュメント 12088
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ーションにはすぐに修正可能な小さなバグがありました。 Question.was_published_recently() のメソッドは Question が昨 ... に作成された場合に True を返すのですが(適切な動作)、 Question の pub_date が未来の日付になっている場合にも True ... utils import timezone >>> from polls.models import Question >>> # create a Question instance with pub_date 30 ... days in the future >>> future_question = Question ( pub_date = timezone . now () + dateti ...
https://man.plustar.jp/django/intro/tutorial05.html - [similar]
はじめての Django アプリ作成、その 3 — Django 4.0.6 ドキュメント 12055
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... をとります。 polls/views.py ¶ def detail ( request , question_id ): return HttpResponse ( "You're looking at que ... stion %s ." % question_id ) def results ( request , question_id ): respon ... se = "You're looking at the results of question %s ." return HttpResponse ( response % question_id ... ) def vote ( request , question_id ): return HttpResponse ( "You're voting on ques ...
https://man.plustar.jp/django/intro/tutorial03.html - [similar]
はじめての Django アプリ作成、その2 — Django 4.0.6 ドキュメント 11524
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... これから開発する簡単な poll アプリケーションでは、 Question と Choice の2つのモデルを作成します。 Poll には qu ... という2つのフィールドがあります。各 Choice は1つの Question に関連づけられています。 Django では、こうした概念 ... lls/models.py ¶ from django.db import models class Question ( models . Model ): question_text = models . CharF ... date published' ) class Choice ( models . Model ): question = models . ForeignKey ( Question , on_delete = mod ...
https://man.plustar.jp/django/intro/tutorial02.html - [similar]
はじめての Django アプリ作成、その 4 — Django 4.0.6 ドキュメント 11274
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... etail.html ¶ < form action = " {% url 'polls:vote' question.id %} " method = "post" > {% csrf_token %} < field ... set > < legend >< h1 > {{ question.question_text }} </ h1 ></ legend > {% if error_me ... }} </ strong ></ p > {% endif %} {% for choice in question.choice_set.all %} < input type = "radio" name = "c ... す。 We set the form's action to {% url 'polls:vote' question.id %} , and we set method="post" . Using method="p ...
https://man.plustar.jp/django/intro/tutorial04.html - [similar]
はじめての Django アプリ作成、その 7 — Django 4.0.6 ドキュメント 10477
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... admin フォームのカスタマイズ ¶ admin.site.register(Question) の呼び出しによって Question モデルを登録したことで ... の並び順を並べ替えてみましょう。 admin.site.register(Question) の行を以下のように置き換えてみてください。 polls/ ... om django.contrib import admin from .models import Question class QuestionAdmin ( admin . ModelAdmin ): fields ... = [ 'pub_date' , 'question_text' ] admin . site . register ( Question , Quest ...
https://man.plustar.jp/django/intro/tutorial07.html - [similar]
Model Meta options — Django 4.0.6 ドキュメント 8867
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ent object. For example, if an Answer relates to a Question object, and a question has more than one answer, a ... you'd do this: from django.db import models class Question ( models . Model ): text = models . TextField () # ... ... class Answer ( models . Model ): question = models . ForeignKey ( Question , on_delete = mod ... CADE ) # ... class Meta : order_with_respect_to = 'question' When order_with_respect_to is set, two additional ...
https://man.plustar.jp/django/ref/models/options.html - [similar]
Django 1.4 documentation 8119
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e) の二つのモデルを作成します。 poll には質問事項 (question) と公開日 (publication date) の情報があります。 ch ... go.db import models class Poll ( models . Model ): question = models . CharField ( max_length = 200 ) pub_date ... o に教えます。 models.*Field` インスタンスの名前 ( question や pub_date ) はフィールドの名前で、計算機にとって ... "polls_poll" ( "id" serial NOT NULL PRIMARY KEY , "question" varchar ( 200 ) NOT NULL , "pub_date" timestamp w ...
https://man.plustar.jp/django/contents.html - [similar]
FAQ: 助けを求める — Django 4.0.6 ドキュメント 8036
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... てくれます。StackOverflow のガイドである asking good question をみてみましょう。 そして、以下のチャンネルの一つに ... annels are volunteers. If nobody has answered your question, it may be because nobody knows the answer, it may ... be because nobody can understand the question, or it may be that everybody that can help is busy ... pment of Django itself. Please don't email support questions to this mailing list. Asking a tech support quest ...
https://man.plustar.jp/django/faq/help.html - [similar]
クエリを作成する — Django 4.0.6 ドキュメント 7821
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... assign an object of the right type to the field in question. This example updates the blog attribute of an Ent ... try ), filtering on multiple attributes raises the question of whether to require each attribute to coincide i ... ル化しています。 from django.db.models import Q Q ( question__startswith = 'What' ) Q オブジェクトは & や | 演算 ... オブジェクトが生まれます。 たとえば、次の文は2つの "question__startswith" の "OR" を表す、1つの Q オブジェクトを ...
https://man.plustar.jp/django/topics/db/queries.html - [similar]
Signals — Django 4.0.6 ドキュメント 7787
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ifying its full application label. For example, an Question model defined in the polls application could be re ... ferenced as 'polls.Question' . This sort of reference can be quite handy when ... _() . For example, the tutorial has this line: q = Question ( question_text = "What's new?" , pub_date = timez ... to a pre_init handler would be: Argument 値 sender Question (the class itself) args [] (an empty list because ...
https://man.plustar.jp/django/ref/signals.html - [similar]
PREV 1 2 3 NEXT