検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 29 for polls (0.028 sec.)
はじめての Django アプリ作成、その 3 — Django 4.0.6 ドキュメント 11274
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... もっとビューを書いてみる ¶ それではもう少しviewを polls/views.py に追加していきましょう。これから追加するv ... iewでは引数をとります。 polls/views.py ¶ def detail ( request , question_id ): r ... on_id ) 次の path() コールを追加して、新しいviewを polls.urls モジュールと結びつけます。 polls/urls.py ¶ fr ... rt path from . import views urlpatterns = [ # ex: /polls/ path ( '' , views . index , name = 'index' ), # e ...
https://man.plustar.jp/django/intro/tutorial03.html - [similar]
高度なチュートリアル: 再利用可能アプリの書き方 — Django 4.0.6 ドキュメント 11111
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ンポートできます。パッケージ内のディレクトリ (例えば polls ) は __init__.py という特殊なファイルを、空のファイ ... _ . py settings . py urls . py asgi . py wsgi . py polls / __init__ . py admin . py apps . py migrations / ... nit__ . py 0001 _initial . py models . py static / polls / images / background . gif style . css templates ... / polls / detail . html index . html results . html tests ...
https://man.plustar.jp/django/intro/reusable-apps.html - [similar]
Django 1.4 documentation 11045
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 、 poll アプリケーション内の Python コードは mysite.polls のように参照されることになります。チュートリアルの ... て、以下のようなコマンド: python manage.py startapp polls を入力します。このコマンドは polls というディレクト ... を作成し、その 中に以下のようにファイルを配置します: polls / __init__ . py models . py tests . py views . py ... 、こうした概念を簡単な Python クラスで表現できます。 polls/models.py ファイルを以下のように編集してください: ...
https://man.plustar.jp/django/contents.html - [similar]
はじめての Django アプリ作成、その 6 — Django 4.0.6 ドキュメント 10882
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ださい。 アプリ の構造をカスタマイズする ¶ 最初に、 polls ディレクトリの中に、 static ディレクトリを作成しま ... Django はそこから静的ファイルを探します。Django が polls/templates/ からテンプレートを探す方法と同様です。 ... 書かれた各アプリケーションに対して、ちょうど今作った polls のような "static" サブディレクトリを検索してくれま ... 使われます。 先ほど作成した static ディレクトリ内に polls という名前のディレクトリを作り、その中に style.css ...
https://man.plustar.jp/django/intro/tutorial06.html - [similar]
URL ディスパッチャ — Django 4.0.6 ドキュメント 10458
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... r example, we'll discuss the idea of deploying the polls application from the tutorial in two different loc ... はネストすることもできます。 名前付きの URL 'sports:polls:index' は、トップレベルの名前空間 'sports' 内で定義 ... されている名前空間 'polls' 内で 'index' と名前がつけられたパターンを探します ... 名前空間の URL をリバースする ¶ 名前空間の URL (例: 'polls:index' ) が与えられると、Django 完全修飾名をパーツ ...
https://man.plustar.jp/django/topics/http/urls.html - [similar]
はじめての Django アプリ作成、その 4 — Django 4.0.6 ドキュメント 9985
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 前回のチュートリアルで作成した投票詳細テンプレート ("polls/detail.html") を更新して、HTML の <form> 要素を入れ ... ましょう。 polls/templates/polls/detail.html ¶ < form action = " {% ... url 'polls:vote' question.id %} " method = "post" > {% csrf_t ... 本的な概念です。 We set the form's action to {% url 'polls:vote' question.id %} , and we set method="post" . ...
https://man.plustar.jp/django/intro/tutorial04.html - [similar]
はじめての Django アプリ作成、その2 — Django 4.0.6 ドキュメント 9658
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 、こうした概念を簡単な Python クラスで表現できます。 polls/models.py ファイルを以下のように編集してください: ... のデータベー ス API を作成できます。 でもその前に、 polls アプリケーションをインストールしたことをプロジェク ... 参照を INSTALLED_APPS 設定に追加する必要があります。 PollsConfig クラスは、 polls/apps.py にあるので、ドットつ ... なぎのパスは 'polls.apps.PollsConfig' となります。 mysite/settings.py ...
https://man.plustar.jp/django/intro/tutorial02.html - [similar]
はじめての Django アプリ作成、その 5 — Django 4.0.6 ドキュメント 9495
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 初めてのテスト作成 ¶ バグを見つけたとき ¶ 運よく、 polls のアプリケーションにはすぐに修正可能な小さなバグが ... ime >>> from django.utils import timezone >>> from polls.models import Question >>> # create a Question ins ... ファイルの中から、自動的にテストを見つけてくれます。 polls アプリケーションの tests.py ファイルに次のコードを ... 書きます。 polls/tests.py ¶ import datetime from django.test import ...
https://man.plustar.jp/django/intro/tutorial05.html - [similar]
はじめての Django アプリ作成、その 1 — Django 4.0.6 ドキュメント 9463
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... このような場合はサーバーを再起動する必要があります。 Polls アプリケーションをつくる ¶ さあ、これで自分用の環境 ... マンドを実行します:   $ python manage.py startapp polls ...\> py manage.py startapp polls このコマンドは p ... レクトリを作成します。中身はこのようになっています: polls / __init__ . py admin . py apps . py migrations / ... めてのビュー作成 ¶ 最初のビューを書いてみましょう。 polls/views.py を開いて、以下の Python コードを書いてくだ ...
https://man.plustar.jp/django/intro/tutorial01.html - [similar]
The staticfiles app — Django 4.0.6 ドキュメント 9153
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s/core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /home/polls.com/core/ ... /css/base.css Found 'admin/js/core.js' here: /home/polls.com/src/django/contrib/admin/media/js/core.js ...\ ... s\core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /home/polls.com/core/ ... /css/base.css Found 'admin/js/core.js' here: /home/polls.com/src/django/contrib/admin/media/js/core.js find ...
https://man.plustar.jp/django/ref/contrib/staticfiles.html - [similar]
PREV 1 2 3 NEXT