per page, with , order by , clip by
Results of 1 - 10 of about 21 for head (0.007 sec.)
クラスベースのジェネリックビュー: フラットインデックス 14680
クラスベースのジェネリックビュー: フラットインデックス この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューごとに、クラスツリーの有効な属性とメソッドが表されます。動作を定義するクラスの観点から編集された ... シンプルなジェネリックビュー View class View 属性 (とオプションのアクセサ): http_method_names メソッド as_view() dispatch() head() http_method_not_allowed() setup() TemplateView class TemplateView 属性 (とオプションのアクセサ): content_type extra_cont ... response() ] template_engine template_name [ get_template_names() ] メソッド as_view() dispatch() get() get_context_data() head() http_method_not_allowed() render_to_response() setup() RedirectView class RedirectView 属性 (とオプションのアクセサ): ht ... p_method_names pattern_name permanent query_string url [ get_redirect_url() ] メソッド as_view() delete() dispatch() get() head() http_method_not_allowed() options() post() put() setup() 詳細ビュー DetailView class DetailView 属性 (とオプションのアク ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
Sprint quickstart guide 10148
Sprint quickstart guide This document explains how to prepare to contribute to Django. It is intended for use during sprints, or by people who are already familiar with contributing to Python open source projects. This guide assumes you're ... g PRNumber and TicketNumber with the actual pull request and Trac ticket numbers: /  $ git fetch upstream pull/PRNumber/head:ticket_TicketNumber $ git checkout ticket_TicketNumber $ git push origin ticket_TicketNumber ...\> git fetch upstream pull ... /PRNumber/head:ticket_TicketNumber ...\> git checkout ticket_TicketNumber ...\> git push origin ticket_TicketNumber For example, to conti ... nue PR 8000 for ticket 123, run: /  $ git fetch upstream pull/8000/head:ticket_123 $ git checkout ticket_123 $ git push origin ticket_123 ...\> git fetch upstream pull/8000/head:ticket_123 ...\> ...
https://man.mtool.work/django/6.1/internals/contributing/sprint-quickstart.html
Working with Git and GitHub 10148
Working with Git and GitHub This section explains how the community can contribute code to Django via pull requests. If you're interested in how mergers handle them, see プルリクエストの取り扱い . Below, we are going to show how to create a ... commit, use the "reword" option in interactive rebase. For example, to reword one of the last three commits: git rebase -i HEAD~3 This opens an editor listing the three commits, each prefixed with the word "pick". Change "pick" to "reword" (or "r") o ... work. To rework the history of your branch you can squash the commits into one by using interactive rebase: git rebase -i HEAD~2 The HEAD~2 above is shorthand for two latest commits. The above command will open an editor showing the two commits, pre ... "edit" option in rebase. This way you can change a single commit, for example to fix a typo in a docstring: git rebase -i HEAD~3 # Choose edit, pick, pick for the commits # Now you are able to rework the commit (use git add normally to add changes) ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/working-wi...
ビューのデコレータ 10029
ビューのデコレータ Djangoでは、さまざまなHTTP機能をサポートするために、ビューに適用できるいくつかのデコレータが提供されています。 ここで紹介するデコレータをクラスベースのビューで使用する方法については、 クラスをデコレーションする を参照して ... す。 require_POST () ビューがPOSTメソッドのみを受け付けるようにするデコレータです。 require_safe () ビューが GET メソッドと HEAD メソッドのみを受け付けるようにするデコレータです。これらのメソッドは、要求されたリソースを取得する以外の動作をする意図を持 ... たないので、一般的に "安全である" と考えられています。 注釈 Webサーバーは、ヘッダーを変更せずに、レスポンスのコンテンツをHEADリクエストから自動的に削除するべきです。そのため、ビューではHEADリクエストをGETリクエストとまったく同じように処理できます。リ ... ンクチェッカーなどの一部のソフトウェアはHEADリクエストに依存しているため、 require_GET の代わりに require_safe を使用することをお勧めします。 条件付きのビュー処理 djang ...
https://man.mtool.work/django/6.1/topics/http/decorators.html
ベース・ビュー 9217
ベース・ビュー 以下の3つのクラスは、Django のビューの作成に必要な多くの機能を提供します。これらは Django ビューの 親の ビューとみなすことができ、それ自体で使うことも継承して使うこともできます。プロジェクトに必要な全ての機能を提供するわけでは ... es このビューが受け入れる HTTP メソッドの名称のリストです。 デフォルト値: [ "get" , "post" , "put" , "patch" , "delete" , "head" , "options" , "trace" ] メソッド classmethod as_view ( ** initkwargs ) リクエストを受け取ってレスポンスを返す、呼び出し可 ... ドと一致するメソッドに処理を委ねるよう試みます。例えば、 GET は get() に、 POST は post() に委ねられます。 デフォルトでは、 HEAD リクエストは get() に委ねられます。 HEAD リクエストを GET とは違う方法で操作する必要がある場合は、 head() メソッドをオーバ ... ドが呼び出されます。 The default implementation returns HttpResponseNotAllowed with the list of allowed methods in the Allow header, as required by RFC 7231 . The response body is empty. options ( request , * args , ** kwargs ) OPTIONS HTTP 動詞のための ...
https://man.mtool.work/django/6.1/ref/class-based-views/base.html
条件付きのビュー処理 9099
条件付きのビュー処理 HTTP クライアントは、さまざまな HTTPヘッダーを送信することで、受信したリソースについてサーバーに伝えることができます。この方法は、ウェブページを ( GET メソッドを利用して) 取得する際に、すでにクライアントが取得しているデ ... 使用して ETag ヘッダを設定してもらうこともできます。 When the client next requests the same resource, it might send along a header such as either If-Modified-Since or If-Unmodified-Since , containing the date of the last modification time it was sent, ... 04 status code can be sent back, instead of a full response, telling the client that nothing has changed. Depending on the header, if the page has been modified or does not match the ETag sent by the client, a 412 status code (Precondition Failed) ma ... べきです。 デコレータは、それらがビューによってまだ設定されていない場合、そしてリクエストのメソッドが安全なもの( GET または HEAD )である場合に、レスポンスに ETag ヘッダと Last-Modified ヘッダを設定します。 この機能を有効に使う方法は、例を挙げて説明す ...
https://man.mtool.work/django/6.1/topics/conditional-view-processing.html
クラスベースビュー 8287
クラスベースビュー ビューとは、リクエストを受け取り、レスポンスを返す呼び出し可能オブジェクトです。ビューは単なる関数以上のものにもなり得ます。Django ではビューとして使用できるいくつかのクラスを提供しており、これらを利用することで、ビューを ... from django.views.generic import ListView from books.models import Book class BookListView ( ListView ): model = Book def head ( self , * args , ** kwargs ): last_book = self . get_queryset () . latest ( "publication_date" ) response = HttpResponse ... ( # RFC 1123 date format. headers = { "Last-Modified" : last_book . publication_date . strftime ( " %a , %d %b %Y %H:%M:%S GMT" ) }, ) return response If ... a GET request, an object list is returned in the response (using the book_list.html template). But if the client issues a HEAD request, the response has an empty body and the Last-Modified header indicates when the most recent book was published. Ba ...
https://man.mtool.work/django/6.1/topics/class-based-views/
Django テンプレート言語 8169
Django テンプレート言語 このドキュメントはDjangoテンプレートシステムの文法を説明しています。もしあなたがもっと技術者的な観点でどう動かすかやどう拡張するかを知りたい場合は、 Python プログラマーのための Django テンプレート言語 を参照してくださ ... > {{ section.title }} </ h1 > {% for story in story_list %} < h2 > < a href = " {{ story.get_absolute_url }} " > {{ story.headline | upper }} </ a > </ h2 > < p > {{ story.tease | truncatewords :"100" }} </ p > {% endfor %} {% endblock %} 設計思想 な ... バーライドさせることができます。 テンプレートの継承について、まず例を見てみましょう: <!DOCTYPE html> < html lang = "en" > < head > < link rel = "stylesheet" href = "style.css" > < title > {% block title %} My amazing site {% endblock %} </ title > </ ... テンツと差し替えます。 blog_entries の値に応じて、アウトプットは以下のようになります: <!DOCTYPE html> < html lang = "en" > < head > < link rel = "stylesheet" href = "style.css" > < title > My amazing blog </ title > </ head > < body > < div id = "sideb ...
https://man.mtool.work/django/6.1/ref/templates/language.html
Django の概要 7932
Django の概要 Django は変転の激しいニュースルーム環境で開発された経緯から、よくある Web 開発タスクを迅速かつ簡単化するように設計されています。ここでは Django による データベースを使った Web アプリケーション開発をざっと見てみましょう。 このド ... th = 70 ) def __str__ ( self ): return self . full_name class Article ( models . Model ): pub_date = models . DateField () headline = models . CharField ( max_length = 200 ) content = models . TextField () reporter = models . ForeignKey ( Reporter , ... on_delete = models . CASCADE ) def __str__ ( self ): return self . headline モデルのインストール 次に、データベーステーブルを自動で作成する Django のコマンドラインユーティリティを実行します。 / ... query does not exist. # Create an article. >>> from datetime import date >>> a = Article ( ... pub_date = date . today (), headline = "Django is cool" , content = "Yeah." , reporter = r ... ) >>> a . save () # Now the article is in the database. >>> ...
https://man.mtool.work/django/6.1/intro/overview.html
フラットページ (flatpages) アプリ 7932
フラットページ (flatpages) アプリ Django にはオプションで "flatpages" アプリケーションが付属しています。これを使えば、"フラットな" HTML コンテンツをデータベースに保存することができ、 Django のadmin インタフェースや Python API を使って管理で ... キスト変数が渡されます。 以下は、サンプルの flatpages/default.html テンプレートです: <!DOCTYPE html> < html lang = "en" > < head > < title > {{ flatpage.title }} </ title > </ head > < body > {{ flatpage.content }} </ body > </ html > フラットページの ...
https://man.mtool.work/django/6.1/ref/contrib/flatpages.html
PREV 1 2 3 NEXT