{"title":"Bagaimana Django Dibentuk?","version":"5.1","locale":"id","docname":"internals/howto-release-django","url":"/id/5.1/internals/howto-release-django/","canonical":"https://djangodocs.dev/id/5.1/internals/howto-release-django/","summary":"Dokumen ini menjelaskan bagaimana menerbitkan Django. Harap, jaga petunjuk-petunjuk ini terbaru jika anda membuat perubahan!","html":"<h1>Bagaimana Django Dibentuk?<a class=\"heading-anchor\" href=\"#how-is-django-formed\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Dokumen ini menjelaskan bagaimana menerbitkan Django.</p>\n<p><strong>Harap, jaga petunjuk-petunjuk ini terbaru jika anda membuat perubahan!</strong> Titiknya disini adalah menjadi lebih menggambarkan, bukan memberi petunjuk, jadi silahkan untuk mempersingkat atau jika tidak buat perubahan, tetapi <strong>perbaharui dokumen ini sesuai dengan itu!</strong></p>\n<section id=\"overview\">\n<h2>Ikhtisar<a class=\"heading-anchor\" href=\"#overview\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Terdapat tiga jenis terbitan yang anda mungkin butuh untuk dibuat:</p>\n<ul class=\"simple\">\n<li><p>Terbitan keamanan: mengungkap dan memperbaiki kerentanan. Ini umumnya melibatkan dua atau lebih terbitan beruntun -- misalnya 3.2.x, 4.0.x, dan, tergatung dari waktu, mungkin 4.1.x.</p></li>\n<li><p>Terbitan versi umum: salah satu terbitan akhir (misalnya 4.1) atau pembaharuan perbaikan kesalahan (misalnya 4.1.1).</p></li>\n<li><p>Pra-terbitan: misalnya 4.2 alpha, beta, atau rc.</p></li>\n</ul>\n<p>Versi pendek dari langkah-langkah bersangkutan adalah:</p>\n<ol class=\"arabic simple\">\n<li><p>Jika ini adalah terbitan keamanan, beritahu daftar penyebaran keamanan satu minggu sebelum terbitan sebenarnya.</p></li>\n<li><p>Proofread catatan terbitan, menacri kesalahan organisasi dan penulisan. Konsep sebuah penempatan blog dan pengumuman surel.</p></li>\n<li><p>Perbaharui angka versi dan buat paket terbitan.</p></li>\n<li><p>Unggah paket ke peladen <code class=\"docutils literal notranslate\">djangoproject.com</code>.</p></li>\n<li><p>Veridikasi tanda tangan paket, periksa jika mereka dapat dipasang, dan dan pastikan kegunaan minimal.</p></li>\n<li><p>Unggah versi terbaru ke PyPI.</p></li>\n<li><p>Nyatakan versi baru di admin pada <code class=\"docutils literal notranslate\">djangoproject.com</code>.</p></li>\n<li><p>Tempatkan masukan blog dan kirim pengumuman surel.</p></li>\n<li><p>Perbaharui angka versi pasca-terbitan.</p></li>\n</ol>\n<p>Ada banyak rincian, jadi silahkan lanjutkan membaca.</p>\n</section>\n<section id=\"prerequisites\">\n<h2>Prasyarat<a class=\"heading-anchor\" href=\"#prerequisites\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>You'll need a few things before getting started. If this is your first release,\nyou'll need to coordinate with another releaser to get all these things lined\nup, and write to the Ops mailing list requesting the required access and\npermissions.</p>\n<ul>\n<li><p>Lingkungan Unix dengan alat alat ini terpasang (dalam urutan abjad):</p>\n<ul class=\"simple\">\n<li><p>bash</p></li>\n<li><p>git</p></li>\n<li><p>GPG</p></li>\n<li><p>membuat</p></li>\n<li><p>pria</p></li>\n<li><p>alat hashing (typically <code class=\"docutils literal notranslate\">md5sum</code>, <code class=\"docutils literal notranslate\">sha1sum</code>, dan <code class=\"docutils literal notranslate\">sha256sum</code> pada Linux, atau <code class=\"docutils literal notranslate\">md5</code> dan <code class=\"docutils literal notranslate\">shasum</code> pada macOS)</p></li>\n<li><p>python</p></li>\n<li><p>ssh</p></li>\n</ul>\n</li>\n<li><p>A GPG key pair. Ensure that the private part of this key is securely stored.\nThe public part needs to be uploaded to your GitHub account, and also to the\nJenkins server running the &quot;confirm release&quot; job.</p>\n<aside class=\"admonition-more-than-one-gpg-key admonition\" role=\"note\">\n<p class=\"admonition-title\">Lebih dari satu kunci GPG</p>\n<p>If the key you want to use is not your default signing key, you'll need to\nadd <code class=\"docutils literal notranslate\">-u you&#64;example.com</code> to every GPG signing command shown below, where\n<code class=\"docutils literal notranslate\">you&#64;example.com</code> is the email address associated with the key you want\nto use.</p>\n</aside>\n</li>\n<li><p>A clean Python virtual environment per Django version being released, with\nthese required Python packages installed:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ python -m pip install build twine\n</code></pre></div>\n</li>\n<li><p>Akses ke <a class=\"reference external\" href=\"https://pypi.org/project/Django/\">Django's project on PyPI</a> untuk mengunggah biner, idealnya dengan perizinan tambahan pada <a class=\"reference external\" href=\"https://pypi.org/help/#yanked\">yank a release</a> jika dibutuhkan. Buat token cakupan-proyek mengikuti berkas <a class=\"reference external\" href=\"https://pypi.org/help/#apitoken\">official documentation</a> dan buat <code class=\"docutils literal notranslate\">$HOME/.pypirc</code> seperti ini:</p>\n<figure class=\"code-block code-block-captioned\" data-language=\"ini\"><figcaption class=\"code-block-caption\"><code class=\"docutils literal notranslate\">~/.pypirc</code></figcaption>\n<div class=\"code-block-toolbar\"><span class=\"code-block-language\">Ini</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Ini code\"><code><span class=\"k\">[distutils]</span>\n  <span class=\"na\">index-servers</span> <span class=\"o\">=</span>\n    <span class=\"na\">pypi</span>\n    <span class=\"na\">django</span>\n\n<span class=\"k\">[pypi]</span>\n  <span class=\"na\">username</span> <span class=\"o\">=</span> <span class=\"s\">__token__</span>\n  <span class=\"na\">password</span> <span class=\"o\">=</span> <span class=\"c1\"># User-scoped or project-scoped token, to set as the default.</span>\n\n<span class=\"k\">[django]</span>\n  <span class=\"na\">repository</span> <span class=\"o\">=</span> <span class=\"s\">https://upload.pypi.org/legacy/</span>\n  <span class=\"na\">username</span> <span class=\"o\">=</span> <span class=\"s\">__token__</span>\n  <span class=\"na\">password</span> <span class=\"o\">=</span> <span class=\"c1\"># A project token.</span>\n</code></pre></figure>\n</li>\n<li><p>Access to <a class=\"reference external\" href=\"https://app.transifex.com/django/django/\">Django's project on Transifex</a>, with a Manager role. Generate\nan API Token in the <a class=\"reference external\" href=\"https://app.transifex.com/user/settings/api/\">user setting section</a> and set up your\n<code class=\"docutils literal notranslate\">$HOME/.transifexrc</code> file like this:</p>\n<figure class=\"code-block code-block-captioned\" data-language=\"ini\"><figcaption class=\"code-block-caption\"><code class=\"docutils literal notranslate\">~/.transifexrc</code></figcaption>\n<div class=\"code-block-toolbar\"><span class=\"code-block-language\">Ini</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Ini code\"><code><span class=\"k\">[https://www.transifex.com]</span>\n  <span class=\"na\">rest_hostname</span> <span class=\"o\">=</span> <span class=\"s\">https://rest.api.transifex.com</span>\n  <span class=\"na\">token</span> <span class=\"o\">=</span> <span class=\"c1\"># API token</span>\n</code></pre></figure>\n</li>\n<li><p>Access to the <code class=\"docutils literal notranslate\">djangoproject.com</code> server to upload files (using <code class=\"docutils literal notranslate\">scp</code>).</p></li>\n<li><p>Access to the Django admin on <code class=\"docutils literal notranslate\">djangoproject.com</code> as a &quot;Site maintainer&quot;.</p></li>\n<li><p>Access to create a post in the <a class=\"reference external\" href=\"https://forum.djangoproject.com/c/announcements/7\">Django Forum - Announcements category</a> and to  send emails to\nthe following mailing lists:</p>\n<ul class=\"simple\">\n<li><p><a class=\"reference external\" href=\"https://groups.google.com/g/django-announce/\">django-announce</a></p></li>\n</ul>\n</li>\n<li><p>Access to the <code class=\"docutils literal notranslate\">django-security</code> repo in GitHub. Among other things, this\nprovides access to the pre-notification distribution list (needed for\nsecurity release preparation tasks).</p></li>\n</ul>\n</section>\n<section id=\"pre-release-tasks\">\n<h2>Tugas-tugas pra terbitan<a class=\"heading-anchor\" href=\"#pre-release-tasks\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A few items need to be taken care of before even beginning the release process.\nThis stuff starts about a week before the release; most of it can be done\nany time leading up to the actual release.</p>\n<section id=\"or-more-days-before-a-security-release\">\n<h3>10 (atau lebih) hari sebelum terbitan keamanan<a class=\"heading-anchor\" href=\"#or-more-days-before-a-security-release\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ol class=\"arabic simple\">\n<li><p>Request the <a class=\"reference external\" href=\"https://cveform.mitre.org/\">CVE IDs</a>  for the security\nissue(s) being released. One CVE ID per issue, requested with\n<code class=\"docutils literal notranslate\">Vendor: djangoproject</code> and <code class=\"docutils literal notranslate\">Product: django</code>.</p></li>\n<li><p>Generate the relevant (private) patch(es) using <code class=\"docutils literal notranslate\">git format-patch</code>, one\nfor the <code class=\"docutils literal notranslate\">main</code> branch and one for each stable branch being patched.</p></li>\n</ol>\n</section>\n<section id=\"a-week-before-a-security-release\">\n<h3>Seminggu sebelum terbitan keamanan<a class=\"heading-anchor\" href=\"#a-week-before-a-security-release\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ol class=\"arabic\">\n<li><p>Send out pre-notification exactly <strong>one week</strong> before the security release.\nThe template for that email and a list of the recipients are in the private\n<code class=\"docutils literal notranslate\">django-security</code> GitHub wiki. BCC the pre-notification recipients and be\nsure to include the relevant CVE IDs. Attach all the relevant patches\n(targeting <code class=\"docutils literal notranslate\">main</code> and the stable branches) and sign the email text with\nthe key you'll use for the release, with a command like:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ gpg --clearsign --digest-algo SHA256 prenotification-email.txt\n</code></pre></div>\n</li>\n<li><p><a class=\"reference internal\" href=\"/id/5.1/internals/security/#security-disclosure\"><span class=\"std std-ref\">Notify django-announce</span></a> dari terbitan keamanan yang akan datang dengan pesan umum seperti:</p>\n<div class=\"code-block\" data-language=\"text\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Text</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Text code\"><code>Notice of upcoming Django security releases (3.2.24, 4.2.10 and 5.0.2)\n\nDjango versions 5.0.2, 4.2.10, and 3.2.24 will be released on Tuesday,\nFebruary 6th, 2024 around 1500 UTC. They will fix one security defect\nwith severity &quot;moderate&quot;.\n\nFor details of severity levels, see:\nhttps://docs.djangoproject.com/en/dev/internals/security/#how-django-discloses-security-issues\n</code></pre></div>\n</li>\n</ol>\n</section>\n<section id=\"a-few-days-before-any-release\">\n<h3>Beberapa hari sebelum terbitan<a class=\"heading-anchor\" href=\"#a-few-days-before-any-release\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ol class=\"arabic\">\n<li><p>As the release approaches, watch Trac to make sure no release blockers are\nleft for the upcoming release. Under exceptional circumstances, such as to\nmeet a pre-determined security release date, a release could still go ahead\nwith an open release blocker. The releaser is trusted with the decision to\nrelease with an open release blocker or to postpone the release date of a\nnon-security release if required.</p></li>\n<li><p>Check with the other mergers to make sure they don't have any uncommitted\nchanges for the release.</p></li>\n<li><p>Proofread the release notes, including looking at the online version to\n<a class=\"reference internal\" href=\"/id/5.1/internals/contributing/writing-documentation/#documentation-link-check\"><span class=\"std std-ref\">catch any broken links</span></a> or reST errors, and\nmake sure the release notes contain the correct date.</p></li>\n<li><p>Periksa kembali itu catatan terbitan menyebutkan linimasa pengusangan untuk setiap API dicatat sebagai diusangkan, dan mereka menyebut bahwa tiap perubahan di Python versi dukungan.</p></li>\n<li><p>Periksa kembali itu catatan terbitan index mempunyai sebuah tautan ke catatan untuk terbitan baru; ini akan ada di <code class=\"docutils literal notranslate\">docs/releases/index.txt</code>.</p></li>\n<li><p>If this is a <a class=\"reference internal\" href=\"/id/5.1/internals/release-process/#term-Feature-release\"><span class=\"xref std std-term\">feature release</span></a>, ensure translations from Transifex\nhave been integrated. This is typically done by a separate translation's\nmanager rather than the releaser, but here are the steps. This process is a\nbit lengthy so be sure to set aside 4-10 hours to do this, and ideally plan\nfor this task one or two days ahead of the release day.</p>\n<p>In addition to having a configured Transifex account, the\n<a class=\"reference external\" href=\"https://developers.transifex.com/docs/cli\">tx CLI</a> should be available in\nyour <code class=\"docutils literal notranslate\">PATH</code>. Then, you can fetch all the translations by running:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ python scripts/manage_translations.py fetch\n</code></pre></div>\n<p>This command takes some time to run. When done, carefully inspect the output\nfor potential errors and/or warnings. If there are some, you will need to\ndebug and resolve them on a case by case basis.</p>\n<p>The recently fetched translations need some manual adjusting. First of all,\nthe <code class=\"docutils literal notranslate\">PO-Revision-Date</code> values must be manually bumped to be later than\n<code class=\"docutils literal notranslate\">POT-Creation-Date</code>. You can use a command similar to this to bulk update\nall the <code class=\"docutils literal notranslate\">.po</code> files (compare the diff against the relevant stable branch):</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git diff --name-only stable/5.0.x <span class=\"p\">|</span> grep <span class=\"s2\">&quot;\\.po&quot;</span>  <span class=\"p\">|</span> xargs sed -ri <span class=\"s2\">&quot;s/PO-Revision-Date: [0-9\\-]+ /PO-Revision-Date: </span><span class=\"k\">$(</span>date -I<span class=\"k\">)</span><span class=\"s2\"> /g&quot;</span>\n</code></pre></div>\n<p>All the new <code class=\"docutils literal notranslate\">.po</code> files should be manually and carefully inspected to\navoid committing a change in a file without any new translations. Also,\nthere shouldn't be any changes in the &quot;plural forms&quot;: if there are any\n(usually Spanish and French report changes for this) those will need\nreverting.</p>\n<p>Lastly, commit the changed/added files (both <code class=\"docutils literal notranslate\">.po</code> and <code class=\"docutils literal notranslate\">.mo</code>) and create\na new PR targeting the stable branch of the corresponding release (example\n<a class=\"reference external\" href=\"https://github.com/django/django/pull/16715\">PR updating translations for 4.2</a>).</p>\n</li>\n<li><p><a class=\"reference internal\" href=\"/id/5.1/internals/contributing/writing-documentation/#django-admin-manpage\"><span class=\"std std-ref\">Update the django-admin manual page</span></a>:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ <span class=\"nb\">cd</span> docs\n$ make man\n$ man _build/man/django-admin.1  <span class=\"c1\"># do a quick sanity check</span>\n$ cp _build/man/django-admin.1 man/django-admin.1\n</code></pre></div>\n<p>dan kemudian perbaiki perubahan halaman panduan.</p>\n</li>\n<li><p>If this is the alpha release of a new series, create a new stable branch\nfrom main. For example, when releasing Django 4.2:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git checkout -b stable/4.2.x origin/main\n$ git push origin -u stable/4.2.x:stable/4.2.x\n</code></pre></div>\n<p>At the same time, update the <code class=\"docutils literal notranslate\">django_next_version</code> variable in\n<code class=\"docutils literal notranslate\">docs/conf.py</code> on the stable release branch to point to the new\ndevelopment version. For example, when creating <code class=\"docutils literal notranslate\">stable/4.2.x</code>, set\n<code class=\"docutils literal notranslate\">django_next_version</code> to <code class=\"docutils literal notranslate\">'5.0'</code> on the new branch.</p>\n</li>\n<li><p>If this is the &quot;dot zero&quot; release of a new series, create a new branch from\nthe current stable branch in the <a class=\"reference external\" href=\"https://github.com/django/django-docs-translations\">django-docs-translations</a> repository. For\nexample, when releasing Django 4.2:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git checkout -b stable/4.2.x origin/stable/4.1.x\n$ git push origin stable/4.2.x:stable/4.2.x\n</code></pre></div>\n</li>\n<li><p>Tulis penempatan blog pengumuman untuk terbitan. Anda dapat memasukkannya kedalam admin kapan pun dan menandainya sebagai tidak aktif. Ini adalah beberapa contoh: <a class=\"reference external\" href=\"https://www.djangoproject.com/weblog/2013/feb/19/security/\">example security release announcement</a>, <a class=\"reference external\" href=\"https://www.djangoproject.com/weblog/2012/mar/23/14/\">example regular release announcement</a>, <a class=\"reference external\" href=\"https://www.djangoproject.com/weblog/2012/nov/27/15-beta-1/\">example pre-release announcement</a>.</p></li>\n</ol>\n</section>\n</section>\n<section id=\"actually-rolling-the-release\">\n<h2>Sebenarnya menggulir terbitan<a class=\"heading-anchor\" href=\"#actually-rolling-the-release\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>OK, this is the fun part, where we actually push out a release! If you're\nissuing <strong>multiple releases</strong>, repeat these steps for each release.</p>\n<ol class=\"arabic\">\n<li><p>Check <a class=\"reference external\" href=\"https://djangoci.com\">Jenkins</a> is green for the version(s) you're putting out. You\nprobably shouldn't issue a release until it's green, and you should make\nsure that the latest green run includes the changes that you are releasing.</p>\n</li>\n<li><p>Cleanup the release notes for this release. Make these changes in <code class=\"docutils literal notranslate\">main</code>\nand backport to all branches where the release notes for a particular\nversion are located.</p>\n<ol class=\"arabic simple\">\n<li><p>For a feature release, remove the <code class=\"docutils literal notranslate\">UNDER DEVELOPMENT</code> header at the top\nof the release notes, remove the <code class=\"docutils literal notranslate\">Expected</code> prefix and update the\nrelease date, if necessary (<a class=\"extlink-commit reference external\" href=\"https://github.com/django/django/commit/1994a2643881a9e3f9fa8d3e0794c1a9933a1831\">example commit</a>).</p></li>\n<li><p>For a patch release, remove the <code class=\"docutils literal notranslate\">Expected</code> prefix and update the\nrelease date for all releases, if necessary (<a class=\"extlink-commit reference external\" href=\"https://github.com/django/django/commit/34a503162fe222033a1cd3249bccad014fcd1d20\">example commit</a>).</p></li>\n</ol>\n</li>\n<li><p>A release always begins from a release branch, so you should make sure\nyou're on an up-to-date stable branch. Also, you should have available a\nclean and dedicated virtual environment per version being released. For\nexample:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git checkout stable/4.1.x\n$ git pull\n</code></pre></div>\n</li>\n<li><p>If this is a security release, merge the appropriate patches from\n<code class=\"docutils literal notranslate\">django-security</code>. Rebase these patches as necessary to make each one a\nplain commit on the release branch rather than a merge commit. To ensure\nthis, merge them with the <code class=\"docutils literal notranslate\">--ff-only</code> flag; for example:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git checkout stable/4.1.x\n$ git merge --ff-only security/4.1.x\n</code></pre></div>\n<p>(This assumes <code class=\"docutils literal notranslate\">security/4.1.x</code> is a branch in the <code class=\"docutils literal notranslate\">django-security</code> repo\ncontaining the necessary security patches for the next release in the 4.1\nseries.)</p>\n<p>If git refuses to merge with <code class=\"docutils literal notranslate\">--ff-only</code>, switch to the security-patch\nbranch and rebase it on the branch you are about to merge it into (<code class=\"docutils literal notranslate\">git\ncheckout security/4.1.x; git rebase stable/4.1.x</code>) and then switch back and\ndo the merge. Make sure the commit message for each security fix explains\nthat the commit is a security fix and that an announcement will follow\n(<a class=\"extlink-commit reference external\" href=\"https://github.com/django/django/commit/bf39978a53f117ca02e9a0c78b76664a41a54745\">example security commit</a>).</p>\n</li>\n<li><p>Update the version number in <code class=\"docutils literal notranslate\">django/__init__.py</code> for the release.\nPlease see <a class=\"reference internal\" href=\"#notes-on-setting-the-version-tuple\">notes on setting the VERSION tuple</a> below for details\non <code class=\"docutils literal notranslate\">VERSION</code> (<a class=\"extlink-commit reference external\" href=\"https://github.com/django/django/commit/2719a7f8c161233f45d34b624a9df9392c86cc1b\">example commit</a>).</p>\n<ol class=\"arabic simple\">\n<li><p>If this is a pre-release package also update the &quot;Development Status&quot;\ntrove classifier in <code class=\"docutils literal notranslate\">pyproject.toml</code> to reflect this. An <code class=\"docutils literal notranslate\">rc</code>\npre-release should not change the trove classifier (<a class=\"extlink-commit reference external\" href=\"https://github.com/django/django/commit/eeeacc52a967234e920c001b7908c4acdfd7a848\">example\ncommit for alpha release</a>,\n<a class=\"extlink-commit reference external\" href=\"https://github.com/django/django/commit/25fec8940b24107e21314ab6616e18ce8dec1c1c\">example commit for beta release</a>).</p></li>\n<li><p>Sebaliknya, pastikan penggolong disetel ke <code class=\"docutils literal notranslate\">Development Status :: 5 - Production/Stable</code>.</p></li>\n</ol>\n</li>\n<li><p>Etiket terbitan menggunakan <code class=\"docutils literal notranslate\">git tag</code>. Sebagai contoh:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git tag --sign --message<span class=\"o\">=</span><span class=\"s2\">&quot;Tag 4.1.1&quot;</span> <span class=\"m\">4</span>.1.1\n</code></pre></div>\n<p>Anda dapat memeriksa pekerjaan berjalan anda <code class=\"docutils literal notranslate\">git tag --verify &lt;tag&gt;</code>.</p>\n</li>\n<li><p>Dorong pekerjaan anda dan tambah etiket baru:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git push\n$ git push --tags\n</code></pre></div>\n</li>\n<li><p>Pastikan anda mempunyai pohon sepenuhnya bersih dengan menjalankan <code class=\"docutils literal notranslate\">git clean -dfx</code>.</p></li>\n<li><p>Run <code class=\"docutils literal notranslate\">python -m build</code> to generate the release packages. This will create\nthe release packages in a <code class=\"docutils literal notranslate\">dist/</code> directory.</p></li>\n<li><p>Bangkitkan hash dari paket terbitan:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ <span class=\"nb\">cd</span> dist\n$ md5sum *\n$ sha1sum *\n$ sha256sum *\n</code></pre></div>\n</li>\n<li><p>Create a &quot;checksums&quot; file, <code class=\"docutils literal notranslate\">Django-&lt;&lt;VERSION&gt;&gt;.checksum.txt</code> containing\nthe hashes and release information. Start with this template and insert the\ncorrect version, date, GPG key ID (from\n<code class=\"docutils literal notranslate\">gpg --list-keys --keyid-format LONG</code>), release manager's GitHub username,\nrelease URL, and checksums:</p>\n<div class=\"code-block\" data-language=\"text\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Text</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Text code\"><code>This file contains MD5, SHA1, and SHA256 checksums for the source-code\ntarball and wheel files of Django &lt;&lt;VERSION&gt;&gt;, released &lt;&lt;DATE&gt;&gt;.\n\nTo use this file, you will need a working install of PGP or other\ncompatible public-key encryption software. You will also need to have\nthe Django release manager&#39;s public key in your keyring. This key has\nthe ID ``XXXXXXXXXXXXXXXX`` and can be imported from the MIT\nkeyserver, for example, if using the open-source GNU Privacy Guard\nimplementation of PGP:\n\n    gpg --keyserver pgp.mit.edu --recv-key XXXXXXXXXXXXXXXX\n\nor via the GitHub API:\n\n    curl https://github.com/&lt;&lt;RELEASE MANAGER GITHUB USERNAME&gt;&gt;.gpg | gpg --import -\n\nOnce the key is imported, verify this file:\n\n    gpg --verify &lt;&lt;THIS FILENAME&gt;&gt;\n\nOnce you have verified this file, you can use normal MD5, SHA1, or SHA256\nchecksumming applications to generate the checksums of the Django\npackage and compare them to the checksums listed below.\n\nRelease packages\n================\n\nhttps://www.djangoproject.com/m/releases/&lt;&lt;MAJOR VERSION&gt;&gt;/&lt;&lt;RELEASE TAR.GZ FILENAME&gt;&gt;\nhttps://www.djangoproject.com/m/releases/&lt;&lt;MAJOR VERSION&gt;&gt;/&lt;&lt;RELEASE WHL FILENAME&gt;&gt;\n\nMD5 checksums\n=============\n\n&lt;&lt;MD5SUM&gt;&gt;  &lt;&lt;RELEASE TAR.GZ FILENAME&gt;&gt;\n&lt;&lt;MD5SUM&gt;&gt;  &lt;&lt;RELEASE WHL FILENAME&gt;&gt;\n\nSHA1 checksums\n==============\n\n&lt;&lt;SHA1SUM&gt;&gt;  &lt;&lt;RELEASE TAR.GZ FILENAME&gt;&gt;\n&lt;&lt;SHA1SUM&gt;&gt;  &lt;&lt;RELEASE WHL FILENAME&gt;&gt;\n\nSHA256 checksums\n================\n\n&lt;&lt;SHA256SUM&gt;&gt;  &lt;&lt;RELEASE TAR.GZ FILENAME&gt;&gt;\n&lt;&lt;SHA256SUM&gt;&gt;  &lt;&lt;RELEASE WHL FILENAME&gt;&gt;\n</code></pre></div>\n</li>\n<li><p>Tandatangi berkas checksum (<code class=\"docutils literal notranslate\">gpg --clearsign --digest-algo SHA256 Django-&lt;version&gt;.checksum.txt</code>). Ini membangkitkan dokumen ditandatangi, <code class=\"docutils literal notranslate\">Django-&lt;version&gt;.checksum.txt.asc</code> yang anda dapat kemudian memeriksa menggunakan <code class=\"docutils literal notranslate\">gpg --verify Django-&lt;version&gt;.checksum.txt.asc</code>.</p></li>\n</ol>\n</section>\n<section id=\"making-the-release-s-available-to-the-public\">\n<h2>Membuat terbitan tesedia ke umum<a class=\"heading-anchor\" href=\"#making-the-release-s-available-to-the-public\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Sekarang anda siap benar-benar menaruh terbitan diluar sana. Untuk melakukan ini:</p>\n<ol class=\"arabic\">\n<li><p>Unggah berkas checksum:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ scp Django-A.B.C.checksum.txt.asc djangoproject.com:/home/www/www/media/pgp/Django-A.B.C.checksum.txt\n</code></pre></div>\n<p>(If this is a security release, what follows should be done 15 minutes\nbefore the announced release time, no sooner.)</p>\n</li>\n<li><p>Unggah terbitan paket ke peladen djangoproject, mengganti A.B. dengan nomor versi sesuai, misalnya 4.1 untuk terbitan 4.1.x:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ scp Django-* djangoproject.com:/home/www/www/media/releases/A.B\n</code></pre></div>\n<p>If this is the alpha release of a new series, you will need to create\n<strong>first</strong> the directory A.B.</p>\n</li>\n<li><p>Test that the release packages install correctly using <code class=\"docutils literal notranslate\">pip</code>. Here's one\nsimple method (this just tests that the binaries are available, that they\ninstall correctly, and that migrations and the development server start, but\nit'll catch silly mistakes):</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ <span class=\"nv\">RELEASE_VERSION</span><span class=\"o\">=</span><span class=\"s1\">&#39;4.1.1&#39;</span>\n$ <span class=\"nv\">MAJOR_VERSION</span><span class=\"o\">=</span><span class=\"sb\">`</span><span class=\"nb\">echo</span> <span class=\"nv\">$RELEASE_VERSION</span><span class=\"p\">|</span> cut -c <span class=\"m\">1</span>-3<span class=\"sb\">`</span>\n\n$ python -m venv django-pip-tarball\n$ . django-pip-tarball/bin/activate\n$ python -m pip install https://www.djangoproject.com/m/releases/<span class=\"nv\">$MAJOR_VERSION</span>/Django-<span class=\"nv\">$RELEASE_VERSION</span>.tar.gz\n$ django-admin startproject test_tarball\n$ <span class=\"nb\">cd</span> test_tarball\n$ ./manage.py --help  <span class=\"c1\"># Ensure executable bits</span>\n$ python manage.py migrate\n$ python manage.py runserver\n&lt;CTRL+C&gt;\n$ deactivate\n$ <span class=\"nb\">cd</span> .. <span class=\"o\">&amp;&amp;</span> rm -rf test_tarball <span class=\"o\">&amp;&amp;</span> rm -rf django-pip-tarball\n\n$ python -m venv django-pip-wheel\n$ . django-pip-wheel/bin/activate\n$ python -m pip install https://www.djangoproject.com/m/releases/<span class=\"nv\">$MAJOR_VERSION</span>/Django-<span class=\"nv\">$RELEASE_VERSION</span>-py3-none-any.whl\n$ django-admin startproject test_wheel\n$ <span class=\"nb\">cd</span> test_wheel\n$ ./manage.py --help  <span class=\"c1\"># Ensure executable bits</span>\n$ python manage.py migrate\n$ python manage.py runserver\n&lt;CTRL+C&gt;\n$ deactivate\n$ <span class=\"nb\">cd</span> .. <span class=\"o\">&amp;&amp;</span> rm -rf test_wheel <span class=\"o\">&amp;&amp;</span> rm -rf django-pip-wheel\n</code></pre></div>\n</li>\n<li><p>Jalankan bangun <a class=\"reference external\" href=\"https://djangoci.com/job/confirm-release/\">confirm-release</a> pada Jenkins untuk verifikasi berkas checksum (misalnya gunakan <code class=\"docutils literal notranslate\">4.2rc1</code> untuk <a class=\"reference external\" href=\"https://media.djangoproject.com/pgp/Django-4.2rc1.checksum.txt\">https://media.djangoproject.com/pgp/Django-4.2rc1.checksum.txt</a>).</p>\n</li>\n<li><p>Upload the release packages to PyPI (for pre-releases, only upload the wheel\nfile):</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ twine upload --repository django dist/*\n</code></pre></div>\n</li>\n<li><p>Go to the <a class=\"reference external\" href=\"https://www.djangoproject.com/admin/releases/release/add/\">Add release page in the admin</a>, enter the new release number\nexactly as it appears in the name of the tarball\n(<code class=\"docutils literal notranslate\">Django-&lt;version&gt;.tar.gz</code>). So for example enter &quot;4.1.1&quot; or &quot;4.2rc1&quot;,\netc. If the release is part of an LTS branch, mark it so.</p>\n<p>If this is the alpha release of a new series, also create a Release object\nfor the <em>final</em> release, ensuring that the <em>Release date</em> field is blank,\nthus marking it as <em>unreleased</em>. For example, when creating the Release\nobject for <code class=\"docutils literal notranslate\">4.2a1</code>, also create <code class=\"docutils literal notranslate\">4.2</code> with the Release date field blank.</p>\n</li>\n<li><p>Buat blog menempatkan pengumuman terbitan langsung.</p></li>\n<li><p>Untuk terbitan versi baru (misalnya 4.1, 4.2), perbaharui versi stabil awal dari dokumen dengan membalikkan bendera <code class=\"docutils literal notranslate\">is_default</code> menjadi <code class=\"docutils literal notranslate\">True</code> pada obyek <code class=\"docutils literal notranslate\">DocumentRelease</code> yang sesuai di basisdata <code class=\"docutils literal notranslate\">docs.djangoproject.com</code> (ini akan otomatis menggantinya menjadi <code class=\"docutils literal notranslate\">False</code> untuk semua lainnya); anda dapat melakukan ini menggunakan admin situs.</p>\n<p>Create new <code class=\"docutils literal notranslate\">DocumentRelease</code> objects for each language that has an entry\nfor the previous release. Update djangoproject.com's <a class=\"reference external\" href=\"https://github.com/django/djangoproject.com/blob/main/djangoproject/static/robots.docs.txt\">robots.docs.txt</a>\nfile by copying the result generated from running the command\n<code class=\"docutils literal notranslate\">manage_translations.py robots_txt</code> in the current stable branch from the\n<a class=\"reference external\" href=\"https://github.com/django/django-docs-translations\">django-docs-translations repository</a>. For example, when releasing Django\n4.2:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git checkout stable/4.2.x\n$ git pull\n$ python manage_translations.py robots_txt\n</code></pre></div>\n</li>\n<li><p>Post the release announcement to the <a class=\"reference internal\" href=\"/id/5.1/internals/mailing-lists/#django-announce-mailing-list\"><span class=\"std std-ref\">django-announce</span></a> mailing list and the\nDjango Forum. This should include a link to the announcement blog post.</p></li>\n<li><p>Jika ini adalah terbitan keamanan, kirim surel terpisah ke <a class=\"reference external\" href=\"mailto:oss-security&#37;&#52;&#48;lists&#46;openwall&#46;com\">oss-security<span>&#64;</span>lists<span>&#46;</span>openwall<span>&#46;</span>com</a>. Sediakan gambaran subjek, sebagai contoh, &quot;Django&quot; ditambah masalah dari catatan terbitan (termasuk ID CVE). Badan pesan harus menyertakan rincian kerentanan, sebagai contoh, pengumuman teks penempatan blog. Sertakan sebauh tautan pada penempatan blog pengumuman</p></li>\n</ol>\n</section>\n<section id=\"post-release\">\n<h2>Pasca-terbitan<a class=\"heading-anchor\" href=\"#post-release\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Anda hampir selesai! Semua yang tersisa untuk dilakukan sekarang adalah:</p>\n<ol class=\"arabic\">\n<li><p>Update the <code class=\"docutils literal notranslate\">VERSION</code> tuple in <code class=\"docutils literal notranslate\">django/__init__.py</code> again,\nincrementing to whatever the next expected release will be. For\nexample, after releasing 4.1.1, update <code class=\"docutils literal notranslate\">VERSION</code> to\n<code class=\"docutils literal notranslate\">VERSION = (4, 1, 2, 'alpha', 0)</code>.</p></li>\n<li><p>Tambahkan terbitan dalam <a class=\"reference external\" href=\"https://code.djangoproject.com/admin/ticket/versions\">Trac's versions list</a> jika dibutuhkan (dan buat sebagai awalan dengan merubah pengaturan <code class=\"docutils literal notranslate\">default_version</code> dalam code.djangoproject.com's <a class=\"reference external\" href=\"https://github.com/django/code.djangoproject.com/blob/main/trac-env/conf/trac.ini\">trac.ini</a>, jika terbitan akhirnya). Versi X.Y baru harus ditambahkan setelah terbitan alfa dan versi awalan harus diperbaharui setelah terbitan &quot;dot zero&quot;.</p>\n</li>\n<li><p>Jika ini adalah terbitan akhir:</p>\n<ol class=\"arabic simple\">\n<li><p>Update the current stable branch and remove the pre-release branch in the\n<a class=\"reference external\" href=\"https://code.djangoproject.com/#Djangoreleaseprocess\">Django release process</a> on Trac.</p></li>\n<li><p>Perbaharui halaman unduh (<a class=\"reference external\" href=\"https://github.com/django/djangoproject.com/pull/1444\">example PR</a>).</p></li>\n</ol>\n</li>\n<li><p>Jika ini adalah terbitan keamanan, perbaharui <a class=\"reference internal\" href=\"/id/5.1/releases/security/\"><span class=\"doc\">Arsip dari masalah keamanan</span></a> dengan rincian dari masalah-masalah yang dialamatkan.</p></li>\n<li><p>If this was a pre-release, the translation catalogs need to be updated:</p>\n<ol class=\"arabic\">\n<li><p>Make a new branch from the recently released stable branch:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>git checkout stable/A.B.x\ngit checkout -b update-translations-catalog-A.B.x\n</code></pre></div>\n</li>\n<li><p>Ensure that the release's dedicated virtual environment is enabled and\nrun the following:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ <span class=\"nb\">cd</span> django\n$ django-admin makemessages -l en --domain<span class=\"o\">=</span>djangojs --domain<span class=\"o\">=</span>django\nprocessing locale en\n</code></pre></div>\n</li>\n<li><p>Review the diff before pushing and avoid committing changes to the\n<code class=\"docutils literal notranslate\">.po</code> files without any new translations (<a class=\"extlink-commit reference external\" href=\"https://github.com/django/django/commit/d2b1ec551567c208abfdd21b27ff6d08ae1a6371\">example commit</a>).</p></li>\n<li><p>Make a pull request against the corresponding stable branch and merge\nonce approved.</p></li>\n<li><p>Forward port the updated source translations to the <code class=\"docutils literal notranslate\">main</code> branch\n(<a class=\"extlink-commit reference external\" href=\"https://github.com/django/django/commit/aed303aff57ac990894b6354af001b0e8ea55f71\">example commit</a>).</p></li>\n</ol>\n</li>\n<li><p>If this was an <code class=\"docutils literal notranslate\">rc</code> pre-release, call for translations for the upcoming\nrelease in the <a class=\"reference external\" href=\"https://forum.djangoproject.com/c/internals/i18n/14\">Django Forum - Internationalization category</a>.</p></li>\n</ol>\n</section>\n<section id=\"new-stable-branch-tasks\">\n<h2>Tugas cabang stabil baru<a class=\"heading-anchor\" href=\"#new-stable-branch-tasks\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Ada beberapa barang untuk dilakukan di waktu mengikuti pembuatan cabang stabil baru (sering mengikuti terbitan alpha). Beberapa dari pekerjaan ini tidak butuh diselesaikan oleh penerbit.</p>\n<ol class=\"arabic simple\">\n<li><p>Create a new <code class=\"docutils literal notranslate\">DocumentRelease</code> object in the <code class=\"docutils literal notranslate\">docs.djangoproject.com</code>\ndatabase for the new version's docs, and update the\n<code class=\"docutils literal notranslate\">docs/fixtures/doc_releases.json</code> JSON fixture, so people without access\nto the production DB can still run an up-to-date copy of the docs site\n(<a class=\"reference external\" href=\"https://github.com/django/djangoproject.com/pull/1446\">example PR</a>).</p></li>\n<li><p>Buat sebuah catatan terbitan rintisan untuk versi fitur baru. Gunakan rintisan dari terbitan fitur sebelumnya atau salin isi dari versi fitur sebelumnya dan hapus kebanyakan isi meninggalkan hanya kepala.</p></li>\n<li><p>Increase the default PBKDF2 iterations in\n<code class=\"docutils literal notranslate\">django.contrib.auth.hashers.PBKDF2PasswordHasher</code> by about 20%\n(pick a round number). Run the tests, and update the 3 failing\nhasher tests with the new values. Make sure this gets noted in the\nrelease notes (see the 4.1 release notes for an example).</p></li>\n<li><p>Pindahkan fitur yang telah mencapai akhir dari siklus pengusangannya. Setiap perpindahan harus selesai di perbaikan terpisah untuk kejelasan. Dalam pesan perbaikan, tambah &quot;refs #XXXX&quot; pada tiket asli dimana pengusangan dimulai jika memungkinkan.</p></li>\n<li><p>Hapus catatan tambahan <code class=\"docutils literal notranslate\">.. versionadded::</code>, <code class=\"docutils literal notranslate\">.. versionchanged::</code>, dan <code class=\"docutils literal notranslate\">.. deprecated::</code> di dokumentasi dari terbitan dua tahun lalu. Sebagai contoh, di Django 4.2, catatan untuk 4.0 akan dihapus.</p></li>\n<li><p>Add the new branch to <a class=\"reference external\" href=\"https://readthedocs.org/projects/django/\">Read the Docs</a>. Since the automatically\ngenerated version names (&quot;stable-A.B.x&quot;) differ from the version names\nused in Read the Docs (&quot;A.B.x&quot;), <a class=\"reference external\" href=\"https://github.com/readthedocs/readthedocs.org/issues/5537\">create a ticket</a> requesting\nthe new version.</p></li>\n<li><p><a class=\"reference external\" href=\"https://github.com/pypa/trove-classifiers/issues/29\">Request the new classifier on PyPI</a>. Sebagai contoh <code class=\"docutils literal notranslate\">Framework :: Django :: 3.1</code>.</p></li>\n<li><p>Update the current branch under active development and add pre-release\nbranch in the <a class=\"reference external\" href=\"https://code.djangoproject.com/#Djangoreleaseprocess\">Django release process</a> on Trac.</p></li>\n</ol>\n</section>\n<section id=\"notes-on-setting-the-version-tuple\">\n<h2>Catatan pada pengaturan tuple VERSION<a class=\"heading-anchor\" href=\"#notes-on-setting-the-version-tuple\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Pelaporan versi Django dikendalikan oleh tuple <code class=\"docutils literal notranslate\">VERSION</code> di <code class=\"docutils literal notranslate\">django/__init__.py</code>. Ini adalah lima-unsur tuple, yang unsurnya adalah:</p>\n<ol class=\"arabic simple\">\n<li><p>Versi utama.</p></li>\n<li><p>Versi kecil.</p></li>\n<li><p>Versi mikro.</p></li>\n<li><p>Keadaan -- dapat menjadi satu dari &quot;alpha&quot;, &quot;beta&quot;, &quot;rc&quot; atau &quot;final&quot;.</p></li>\n<li><p>Rangkaian angka, untuk paket alpha/beta/RC yang berjalan dalam urutan (mengizinkan, sebagai contoh, &quot;beta 1&quot;, &quot;beta 2&quot;, etc.).</p></li>\n</ol>\n<p>Untuk terbitan akhir, keadaan selalu &quot;final&quot; dan rangkaian angka selalu 0. Rangkaian angka dari 0 dengan keadaan &quot;alpha&quot; akan dilaporkan sebagai &quot;pre-alpha&quot;.</p>\n<p>Beberapa contoh:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">(4, 1, 1, &quot;final&quot;, 0)</code> → &quot;4.1.1&quot;</p></li>\n<li><p><code class=\"docutils literal notranslate\">(4, 2, 0, &quot;alpha&quot;, 0)</code> → &quot;4.2 pre-alpha&quot;</p></li>\n<li><p><code class=\"docutils literal notranslate\">(4, 2, 0, &quot;beta&quot;, 1)</code> → &quot;4.2 beta 1&quot;</p></li>\n</ul>\n</section>","rootId":"how-is-django-formed","toc":[{"title":"Ikhtisar","anchor":"overview","children":[]},{"title":"Prasyarat","anchor":"prerequisites","children":[]},{"title":"Tugas-tugas pra terbitan","anchor":"pre-release-tasks","children":[{"title":"10 (atau lebih) hari sebelum terbitan keamanan","anchor":"or-more-days-before-a-security-release","children":[]},{"title":"Seminggu sebelum terbitan keamanan","anchor":"a-week-before-a-security-release","children":[]},{"title":"Beberapa hari sebelum terbitan","anchor":"a-few-days-before-any-release","children":[]}]},{"title":"Sebenarnya menggulir terbitan","anchor":"actually-rolling-the-release","children":[]},{"title":"Membuat terbitan tesedia ke umum","anchor":"making-the-release-s-available-to-the-public","children":[]},{"title":"Pasca-terbitan","anchor":"post-release","children":[]},{"title":"Tugas cabang stabil baru","anchor":"new-stable-branch-tasks","children":[]},{"title":"Catatan pada pengaturan tuple VERSION","anchor":"notes-on-setting-the-version-tuple","children":[]}],"breadcrumbs":[{"docname":"internals/index","title":"Dalam Django","url":"/id/5.1/internals/"}],"prev":{"docname":"internals/git","title":"Gudang sumber kode Django","url":"/id/5.1/internals/git/"},"next":null,"formats":{"html":"/id/5.1/internals/howto-release-django/","markdown":"/id/5.1/internals/howto-release-django.md","json":"/id/5.1/internals/howto-release-django.json"},"source":"https://github.com/django/django/blob/stable/5.1.x/docs/internals/howto-release-django.txt","official":"https://docs.djangoproject.com/id/5.1/internals/howto-release-django/","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","it","pt-br","ko","es","el","pl"]}