{"title":"API の安定性","version":"2.0","locale":"ja","docname":"misc/api-stability","url":"/ja/2.0/misc/api-stability/","canonical":"https://djangodocs.dev/ja/2.0/misc/api-stability/","summary":"Django は、バージョン 1.0 から、API の安定性と前方互換性を保証しています。つまり、あなたが開発対象とした Django のコードは、将来のリリースでも正しく動作するということです。ただし、プロジェクトで使用している Django…","html":"<h1>API の安定性<a class=\"heading-anchor\" href=\"#api-stability\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Django は、バージョン 1.0 から、API の安定性と前方互換性を保証しています。つまり、あなたが開発対象とした Django のコードは、将来のリリースでも正しく動作するということです。ただし、プロジェクトで使用している Django のバージョンを上げるときは、小さな修正が必要になることもあります。詳しくは、バージョンアップしようとしているバージョンの <a class=\"reference internal\" href=\"/ja/2.0/releases/\"><span class=\"doc\">リリースノート</span></a> の「後方互換性を壊す変更点」のセクションを読んでください。</p>\n<section id=\"what-stable-means\">\n<h2>&quot;stable&quot; とは？<a class=\"heading-anchor\" href=\"#what-stable-means\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>現在の文脈では、stable とは次のことを意味します。</p>\n<ul>\n<li><p>すべてのパブリック API (このドキュメントに書かれている全部です) は、基本的に移動や名称の変更が行われることがない。もし行われるとしても、後方互換性のためのエイリアスが必ず提供される。</p></li>\n<li><p>もし新しい機能がこれらの API に追加されるなら (よくあることです)、すでに存在するメソッドの意味を変えたり、壊したりすることがない。別の言い方をすれば、&quot;stable&quot; とは必ずしも &quot;complete&quot; (完全) であることを意味するわけではない。</p></li>\n<li><p>何からの理由により、一度 stable であると宣言された API を削除したり置き換えたりしなければならなくなった場合には、deprecated (廃止) であると明言され、最低でも2つのフィーチャーリリースの間は削除されずに残される。deprecated となったメソッドが呼び出されたときは、警告が出される。</p>\n<p>Django のバージョンナンバリングのスキームの仕組みや、特定の機能の廃止されるプロセスについて詳しく知りたければ、 <a class=\"reference internal\" href=\"/ja/2.0/internals/release-process/#official-releases\"><span class=\"std std-ref\">公式リリース</span></a> を読んでください。</p>\n</li>\n<li><p>これらの API の後方互換性を壊すのは、バグやセキュリティホールを修正するのにやむを得ない場合だけです。</p></li>\n</ul>\n</section>\n<section id=\"stable-apis\">\n<h2>stable な API<a class=\"heading-anchor\" href=\"#stable-apis\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>一般に、ドキュメントに書かれていることは、<a class=\"reference internal\" href=\"/ja/2.0/internals/\"><span class=\"doc\">内部の仕組み</span></a> の部分を除いて、すべて stable だと考えてもらって大丈夫です。</p>\n</section>\n<section id=\"exceptions\">\n<h2>例外<a class=\"heading-anchor\" href=\"#exceptions\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>安定性と後方互換性の保証について、数点だけ例外があります。</p>\n<section id=\"security-fixes\">\n<h3>セキュリティ上の修正<a class=\"heading-anchor\" href=\"#security-fixes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>If we become aware of a security problem -- hopefully by someone following our\n<a class=\"reference internal\" href=\"/ja/2.0/internals/security/#reporting-security-issues\"><span class=\"std std-ref\">security reporting policy</span></a> -- we'll do\neverything necessary to fix it. This might mean breaking backwards\ncompatibility; security trumps the compatibility guarantee.</p>\n</section>\n<section id=\"apis-marked-as-internal\">\n<h3>internal と記された API<a class=\"heading-anchor\" href=\"#apis-marked-as-internal\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>特定の API は、次のような方法で、明示的に &quot;internal&quot; (内部実装) と明記されています。</p>\n<ul class=\"simple\">\n<li><p>ドキュメントの中には内部実装を参照していたり、内部実装であると述べている箇所があります。もし、ドキュメントが「これは内部実装である」と述べている場合、その箇所は変更される場合があります。</p></li>\n<li><p>先頭にアンダースコア( <code class=\"docutils literal notranslate\"><span class=\"pre\">_</span></code> )が付いた関数、メソッド、およびその他のオブジェクトは、プライベートなものであることを示すPythonの標準的な方法です。 いずれかのメソッドが単一の <code class=\"docutils literal notranslate\"><span class=\"pre\">_</span></code> で始まる場合、それは内部APIです。</p></li>\n</ul>\n</section>\n</section>","rootId":"api-stability","toc":[{"title":"\"stable\" とは？","anchor":"what-stable-means","children":[]},{"title":"stable な API","anchor":"stable-apis","children":[]},{"title":"例外","anchor":"exceptions","children":[{"title":"セキュリティ上の修正","anchor":"security-fixes","children":[]},{"title":"internal と記された API","anchor":"apis-marked-as-internal","children":[]}]}],"breadcrumbs":[{"docname":"misc/index","title":"メタドキュメントとその他","url":"/ja/2.0/misc/"}],"prev":{"docname":"misc/index","title":"メタドキュメントとその他","url":"/ja/2.0/misc/"},"next":{"docname":"misc/design-philosophies","title":"設計思想","url":"/ja/2.0/misc/design-philosophies/"},"formats":{"html":"/ja/2.0/misc/api-stability/","markdown":"/ja/2.0/misc/api-stability.md","json":"/ja/2.0/misc/api-stability.json"},"source":"https://github.com/django/django/blob/stable/2.0.x/docs/misc/api-stability.txt","official":"https://docs.djangoproject.com/ja/2.0/misc/api-stability/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11","1.10","1.9"],"inLocales":["en","zh-hans","fr","ja","id","pt-br","ko","es","el","pl"]}