---
title: "How to release Django"
version: 6.0
locale: ga
source: https://docs.djangoproject.com/ga/6.0/internals/howto-release-django/
canonical: https://djangodocs.dev/ga/6.0/internals/howto-release-django/
---
# How to release Django

Míníonn an doiciméad seo conas Django a scaoiltear.

\*\* Coinnigh na treoracha seo cothrom le dáta má dhéanann tú athruithe! \*\* Is é an pointe anseo a bheith tuairisciúil, gan oiriúnaitheach, mar sin bíodh leisce ort athruithe a shruthlíniú nó a dhéanamh ar shlí eile, ach\*\*nuashonrú an doiciméad seo dá réir sin! \*\*

## Forbhreathnú

Tá trí chineál eisiúintí ann a d'fhéadfadh go mbeadh ort a dhéanamh:

- Scaoiltí slándála: leochaileacht a nochtadh agus a shocrú De ghnáth beidh dhá nó trí eisiúint chomhuaineach i gceist leis seo - m.sh. 3.2.x, 4.0.x, agus, ag brath ar an uainiú, b'fhéidir 4.1.x.
- Eisiúintí leagan rialta: scaoileadh deiridh (m.sh. 4.1) nó nuashonrú bugfix (m.sh. 4.1.1).
- Réamh-eisiúintí: m.sh. 4.2 alfa, béite, nó rc.

Is é an leagan gairid de na céimeanna atá i gceist ná:

1. Más scaoileadh slándála é seo, déan an liosta dáilte slándála réamh-fógra seachtain roimh an eisiúint iarbhír.
2. Cruthléigh na nótaí scaoilte, ag lorg earráidí eagraíochta agus scríbhneoireachta. Blagphost agus fógra ríomhphoist a dhréachtú.
3. Update version numbers and create the release artifacts.
4. Create the new `Release` in the admin on `djangoproject.com`.

   1. Set the proper date but ensure the flag `is_active` is disabled.
   2. Upload the artifacts (tarball, wheel, and checksums).
5. Fíoraigh sínithe pacáiste/na pacáistí, seiceáil an féidir iad a shuiteáil, agus cinntigh íosta feidhmiúlacht.
6. Uaslódáil an leagan/na leaganacha nua chuig PyPi.
7. Enable the `is_active` flag for each release in the admin on
   `djangoproject.com`.
8. Postáil iontráil an bhlag agus seol amach na fógraí ríomhphoist.
9. Update version numbers post-release in stable branch(es).
10. Add stub release notes for the next patch release in `main` and backport.

Tá go leor sonraí ann, mar sin léigh ar aghaidh le do thoil.

> **Use the checklists app**
>
> To generate a checklist compiling the tasks described below as relevant to
> the specific release(s) you are issuing, use the checklists app in the
> [project admin](https://www.djangoproject.com/admin/checklists/). This
> populates a lot of boilerplate you will need for announcements, CVE
> publication, and hashes for commit messages. By using this app for preparing
> security issue metadata, your peer releasers can check your entries and
> consult them again in the future. See [example checklist](https://www.djangoproject.com/checklists/release/5.2.4/).

## Riachtanais

Beidh cúpla rud ag teastáil uait sula dtosaíonn tú. Más é seo do chéad eisiúint, beidh ort comhordú a dhéanamh le scaoilteoir eile chun na rudaí seo go léir a líneáil suas, agus scríobh chuig liosta seoltaí Ops ag iarraidh an rochtain agus na ceadanna riachtanacha.

- Timpeallacht Unix leis na huirlisí seo suiteáilte (in ord aibítre):

  - bash
  - git
  - GPG
  - déanamh
  - fear
  - uirlisí hashing (de ghnáth ```md5sum ``, `sha1sum```, agus `sha256sum` ar Linux, nó `md5` agus shasum\` ar macOS)
  - python
- Péire eochair GPG. Cinntigh go bhfuil an chuid príobháideach den eochair seo stóráilte go daingean. Ní mór an chuid poiblí a uaslódáil chuig do chuntas GitHub, agus chuig freastalaí Jenkins a reáchtáil an post “scaoileadh deimhnithe”.

  > **Níos mó ná eochair GPG amháin**
  >
  > Mura bhfuil an eochair is mian leat a úsáid d'eochair shínithe réamhshocraithe, beidh ort -u you@example.com \`\`a chur le gach ordú sínithe GPG a thaispeántar thíos, áit ar\` [you@example.com](mailto:you@example.com) an seoladh ríomhphoist a bhaineann leis an eochair is mian leat a úsáid.
- A clean Python virtual environment (Python 3.9+) to build artifacts, with
  these required Python packages installed:

  ```shell
  $ python -m pip install build twine
  ```
- Access to [Django's project on PyPI](https://pypi.org/project/Django/) to
  upload binaries, ideally with extra permissions to [yank a release](https://pypi.org/help/#yanked) if necessary. Create a project-scoped token
  following the [official documentation](https://pypi.org/help/#apitoken)
  and set up your `$HOME/.pypirc` file like this:

  *`~/.pypirc`*

  ```ini
  [distutils]
    index-servers =
      pypi
      django

  [pypi]
    username = __token__
    password = # User-scoped or project-scoped token, to set as the default.

  [django]
    repository = https://upload.pypi.org/legacy/
    username = __token__
    password = # A project token.
  ```
- Access to [Django's project on Transifex](https://app.transifex.com/django/django/), with a Manager role. Generate
  an API Token in the [user setting section](https://app.transifex.com/user/settings/api/) and set up your
  `$HOME/.transifexrc` file like this:

  *~/.transifexrc \`\`*

  ```ini
  [https://www.transifex.com]
    rest_hostname = https://rest.api.transifex.com
    token = # API token
  ```
- Rochtain ar riarachán Django ar `djangoproject.com` mar “cothabhálaí láithreáin”.
- Access to create a post in the [Django Forum - Announcements category](https://forum.djangoproject.com/c/announcements/7) and to send emails to
  the [django-announce](https://groups.google.com/g/django-announce/)
  mailing list.
- Rochtain ar an repo \`\` django-security\`\` i GitHub. I measc rudaí eile, soláthraíonn sé seo rochtain ar an liosta dáileacháin réamhfhógraí (a theastaíonn le haghaidh tascanna ullmhúcháin um scaoileadh slándála).
- Access to the Django project on [Read the Docs](https://readthedocs.org/projects/django/).

## Tascanna réamhscaoilte

Ní mór aire a thabhairt do chúpla earra sula dtosaíonn tú fiú leis an bpróiseas scaoilte. Tosaíonn an stuif seo thart ar sheachtain roimh an scaoileadh; is féidir an chuid is mó de a dhéanamh am ar bith chun an scaoileadh iarbhír.

### 10 lá (nó níos mó) roimh scaoileadh slándála

1. Reserve one [CVE ID](https://www.cve.org/About/Overview/) per security
   issue as follows. (Or, if you lack CNA credentials, email
   `cna@djangoproject.com` with a request.)

   - Enable virtual environment with [cvelib](https://pypi.org/project/cvelib/) installed.
   - Export user information:

     > ```shell
     > $ export CVE_USER=<user-email>@djangoproject.com CVE_ORG=DSF
     > ```
   - Reserve:

     > ```shell
     > $ cve --interactive reserve <quantity>
     > ```
2. Ginigh an paiste/paistí (príobháideacha) ábhartha ag baint úsáide as `git format-patch`, ceann don bhrainse `príom` agus ceann do gach brainse chobhsaí atá á phaiteáil.

### Seachtain roimh scaoileadh slándála

1. Send out pre-notification exactly **one week** before the security release.
   The template for that email and a list of the recipients are in the private
   `django-security` GitHub wiki. BCC the pre-notification recipients, and be
   sure to include the relevant CVE IDs. Attach all the relevant patches
   (targeting `main` and the stable branches), and sign the email text with
   the key you'll use for the release, with a command like:

   ```shell
   $ gpg --clearsign --digest-algo SHA256 prenotification-email.txt
   ```
2. [Notify django-announce](/ga/6.0/internals/security/#security-disclosure) of the upcoming
   security release with a general message such as:

   ```text
   Notice of upcoming Django security releases (3.2.24, 4.2.10 and 5.0.2)

   Django versions 5.0.2, 4.2.10, and 3.2.24 will be released on Tuesday,
   February 6th, 2024 around 1500 UTC. They will fix one security defect
   with severity "moderate".

   For details of severity levels, see:
   https://docs.djangoproject.com/en/dev/internals/security/#how-django-discloses-security-issues
   ```
3. Prepare issue metadata:
   \* Severity
   \* Short description
   \* Reporter
   \* Remediator
   \* Reported at
   \* Confirmed at (usually date CVE reserved)
   \* CWE Problem Type
   \* CAPEC Impact Type
   \* CVSS (4.0) Score & Vector

### Cúpla lá roimh aon scaoileadh

1. As the release approaches, watch Trac to make sure no release blockers are
   left for the upcoming release. Under exceptional circumstances, such as to
   meet a pre-determined security release date, a release could still go ahead
   with an open release blocker. The releaser is trusted with the decision to
   release with an open release blocker or to postpone the release date of a
   non-security release if required.
2. Seiceáil leis na cumaisc eile chun a chinntiú nach bhfuil aon athruithe neamhthiomanta acu don scaoileadh.
3. Léigh na nótaí scaoilte, lena n-áirítear féachaint ar an leagan ar líne chó:ref: gabháil aon naisc bhriste \<documentation-link-check\>\`nó earráidí REST, agus déan cinnte go bhfuil an dáta ceart sna nótaí scaoilte.
4. Seiceáil faoi dhó go luann na nótaí scaoilte amlínte míshuaimseartha d'aon APIs a tugadh faoi deara mar atá díscothaithe, agus go luann siad aon athruithe i dtacaíocht leagan Python.
5. Seiceáil faoi dhó go bhfuil nasc ag an innéacs nótaí scaoilte leis na nótaí don eisiúint nua; beidh sé seo i docs/releases/index.txt\`.
6. If this is a [feature release](/ga/6.0/internals/release-process/#term-Feature-release), ensure translations from Transifex
   have been integrated.

   In addition to having a configured Transifex account, ensure that the [tx
   CLI](https://developers.transifex.com/docs/cli) is available in your
   `PATH`. You can then fetch all translations since a given date by running:

   ```shell
   $ python scripts/manage_translations.py fetch -v 1 --since=<some date>
   ```

   To determine a good value for `--since`, check the date of the most recent
   commit with wording similar to `Updated translations from Transifex` and
   use a date a few days prior.

   Tógann an t-ordú seo roinnt ama le rith. Nuair a dhéantar é, iniúchadh cúramach ar an aschur le haghaidh earráidí agus/nó rabhaidh Má tá roinnt ann, beidh ort iad a dhífhabhtú agus a réiteach ar bhonn cás ar chás.

   Teastaíonn coigeartú láimhe ó na haistriúcháin a fuarthas le Ar an gcéad dul síos, caithfear na luachanna Po-Revision-Date \`\`a bhualadh de láimh le go mbeidh siad níos déanaí ná \`\`Pot-Creation-Date\`. Is féidir leat ordú cosúil leis seo a úsáid chun na comhaid .po go léir a nuashonrú mórchóir (comparáid idir an diff i gcoinne an bhrainse chobhsaí ábhartha):

   ```shell
   $ git diff --name-only stable/5.0.x | grep "\.po"  | xargs sed -ri "s/PO-Revision-Date: [0-9\-]+ /PO-Revision-Date: $(date -I) /g"
   ```

   Lastly, commit the changed/added files (both `.po` and `.mo`) and create
   a new PR targeting the stable branch of the corresponding release (example
   [PR updating translations for 4.2](https://github.com/django/django/pull/16715)).

   Once merged, forward port the changes into `main` ([example commit](https://github.com/django/django/commit/cb27e5b9c0703fb0edd70b2138e3e53a78c9551d)).
7. \<django-admin-manpage\>:ref: Nuashonraigh an leathanach lámhleabhar django-admin :

   ```shell
   $ cd docs
   $ make man
   $ man _build/man/django-admin.1  # do a quick sanity check
   $ cp _build/man/django-admin.1 man/django-admin.1
   ```

   agus ansin an leathanach fear athraithe a thiomnú.
8. If this is the "dot zero" release of a new series, create a new branch from
   the current stable branch in the [django-docs-translations](https://github.com/django/django-docs-translations) repository. For
   example, when releasing Django 4.2:

   ```shell
   $ git checkout -b stable/4.2.x origin/stable/4.1.x
   $ git push origin stable/4.2.x:stable/4.2.x
   ```
9. Scríobh an bhlagphost fógra don scaoileadh. Is féidir leat é a iontráil isteach sa riarachán ag am ar bith agus é a mharcáil mar neamhghníomhach. Seo cúpla sampla: .

#### A few days before a feature freeze

In preparation for the alpha release, the directory
`/home/www/www/media/releases/A.B` must be created on the djangoproject
server.

Before the feature freeze, a branch targeting `main` must be created to
prepare for the next feature release. It should be reviewed and approved a few
days before the freeze, allowing it to be merged after the stable branch is
cut. The following items should be addressed in this branch:

1. Update the `VERSION` tuple in `django/__init__.py`, incrementing to the
   next expected release ([example commit](https://github.com/django/django/commit/96700c7b378c592f0b1732302c22af2fd2c87fc6)).
2. Create a stub release note for the next feature release. Use the stub from
   the previous feature release or copy the contents from the current version
   and delete most of the contents leaving only the headings
   ([example commit](https://github.com/django/django/commit/9b5ad4056ccf9ff7ea548f72d28eb66c1b4f84cc)).
3. Remove `.. versionadded::` and `.. versionchanged::` annotations in the
   documentation from two releases ago, as well as any remaining older
   annotations. For example, in Django 5.1, notes for 4.2 will be removed
   ([example commit](https://github.com/django/django/commit/9edb7833b89e811eefd94974fb987f4605b0c0d7)).
4. Remove features that have reached the end of their deprecation cycle,
   including their docs and the `.. deprecated::` annotation. Each removal
   should be done in a separate commit for clarity. In the commit message, add
   a `Refs #XXXXX --` prefix linking to the original ticket where the
   deprecation began if possible. Make sure this gets noted in the removed
   features section in the release notes ([example commit](https://github.com/django/django/commit/f2d9c76aa7096ef3eed675b9eb824858f9dd81e5)).
5. Increase the default PBKDF2 iterations in
   `django.contrib.auth.hashers.PBKDF2PasswordHasher` by about 20%
   (pick a round number). Run the tests, and update the 3 failing
   hasher tests with the new values. Make sure this gets noted in the
   release notes ([example commit](https://github.com/django/django/commit/7288866da4dddf3705148c703421858ec19cdb78)).

Concrete examples for past feature release bootstrap branches: [5.2 bootstrap](https://github.com/django/django/pull/18127), [5.1 bootstrap](https://github.com/django/django/pull/17246), [5.0 bootstrap](https://github.com/django/django/pull/16432).

## Feature freeze tasks

1. Remove empty sections from the release notes ([example commit](https://github.com/django/django/commit/9e6e58bad237a80ddd5e3ab8b834cecdaad8455e)).
2. Build the release notes locally and read them. Make any necessary change
   to improve flow or fix grammar ([example commit](https://github.com/django/django/commit/435bdab93889dae01e71c79598edab10627cc1f9)).
3. Create a new stable branch from `main`. Be sure to fetch and update
   `upstream` to latest. For example, when feature freezing Django 5.2:

   ```shell
   $ git fetch upstream
   $ git checkout -b stable/5.2.x upstream/main
   $ git push upstream -u stable/5.2.x:stable/5.2.x
   ```

   At the same time, update the `django_next_version` variable in
   `docs/conf.py` on the stable release branch to point to the new
   development version. For example, when creating `stable/5.2.x`, set
   `django_next_version` to `'6.0'` on the new stable branch
   ([example commit](https://github.com/django/django/commit/1eb62e5b622ef7fd6e0123d8bbf6662d893d5d08)).
4. Create `Release` entries for the next version in the  on
   `djangoproject.com`. Add one for each milestone (alpha, beta, rc, and
   final), leaving *is active* unset to mark them as unreleased. Set target
   dates per the agreed schedule, and set the LTS flag if applicable. The
   `X.Y` roadmap page will be available at `/download/X.Y/roadmap/`.

   For example, when creating `stable/5.2.x`, add `Release` entries for
   `6.0a1`, `6.0b1`, `6.0rc1`, and `6.0`. The `6.0` roadmap can be
   then reviewed at <https://www.djangoproject.com/download/6.0/roadmap/>.
5. Go to the , create a new
   `DocumentRelease` object for the English language for the newly created
   `Release` object. Do not mark this as default.
6. Add the new branch to [Read the Docs](https://readthedocs.org/projects/django/). Since the automatically
   generated version names ("stable-A.B.x") differ from the version names used
   in Read the Docs ("A.B.x"), update the Read the Docs config for the version
   to point to the slug `A.B.x` and set it as active. [See more details](https://github.com/readthedocs/readthedocs.org/issues/12483).
7. [Create a PR on PyPI proposing the new Trove classifier](https://github.com/pypa/trove-classifiers/pulls?q=is%3Apr+django+trove+classifier).
   For example `Framework :: Django :: 5.2`.
8. Update the current branch under active development and add pre-release
   branch in the [Django release process](https://code.djangoproject.com/#Djangoreleaseprocess) on Trac.
9. Update the `docs/fixtures/doc_releases.json` JSON fixture for
   djangoproject.com, so people without access to the production DB can still
   run an up-to-date copy of the docs site
   ([example PR](https://github.com/django/djangoproject.com/pull/1446)).
   This will be merged after the final release.

## I ndáiríre an scaoilte

Ceart go leor, is é seo an chuid spraíúil, áit a bhrúimid scaoileadh amach i ndáiríre! Má tá tú ag eisiúint **ileisiúint**, déan na céimeanna seo arís do gach scaoileadh.

1. Seiceáil go bhfuil Jenkins \_\_ glas don leagan/na leaganacha atá tú ag cur amach. Is dócha nár cheart duit scaoileadh a eisiúint go dtí go mbeidh sé glas, agus ba cheart duit a chinntiú go gcuimsíonn an rith glas is déanaí na hathruithe atá á scaoileadh agat.
2. Glan na nótaí scaoilte don eisiúint seo. Déan na hathruithe seo i `príom` agus backport chuig gach brainse ina bhfuil na nótaí scaoilte do leagan áirithe suite.

   1. \<1994a2643881a9e3f9fa8d3e0794c1a9933a1831\>Le haghaidh scaoileadh gné, bain an ceannteideal `UNDER DEVELOPMENT` ag barr na nótaí scaoilte, bain an réimír Táthas ag súil leis agus nuashonraigh an dáta scaoilte, más gá (:commit: example commit ).
   2. \<34a503162fe222033a1cd3249bccad014fcd1d20\>Le haghaidh scaoileadh paiste, bain an réimír Táim ag súil leis agus nuashonraigh an dáta scaoilte do gach eisiúint, más gá (:commit: example commit ).
3. Tosaíonn scaoileadh i gcónaí ó bhrainse scaoilte, mar sin ba cheart duit a chinntiú go bhfuil tú ar bhrainse cobhsaí cothro Chomh maith leis sin, ba cheart go mbeadh timpeallacht fhíorúil glan tiomnaithe ar fáil agat in aghaidh an leagan atá Mar shampla:

   ```shell
   $ git checkout stable/4.1.x
   $ git pull
   ```
4. Más scaoileadh slándála é seo, cumaisc na paistí cuí ó django-slándáil \`. Athbhunaigh na paistí seo de réir mar is gá chun tiomantas simplí a dhéanamh ar gach ceann ar an mbrainse scaoilte seachas tiomantas cumaisc. Chun é seo a chinntiú, déan iad a chumasc leis an bhratach `--ff-only`; mar shampla:

   ```shell
   $ git checkout stable/4.1.x
   $ git merge --ff-only security/4.1.x
   ```

   (Glacann sé leis seo gur brainse sa repo `django-slándála` ina bhfuil na paistí slándála riachtanacha don chéad eisiúint eile sa tsraith 4.1 é slándálaí/4.1.x\`.)

   Má dhiúltaíonn git cumasc le `--ff-only`, aistrigh go dtí an brainse paiste slándála agus athbhunaigh é ar an mbrainse atá ar tí é a chumasc isteach (`git checkout security/4.1.x; git rebase stable/4.1.x`) agus ansin athraigh ar ais agus déan an cumaisc. Déan cinnte go míníonn an teachtaireacht tiomanta do gach socrú slándála gur socrú slándála é an tiomantas agus go leanfaidh fógra (:commit: example security commit \<bf39978a53f117ca02e9a0c78b76664a41a54745\>).
5. Nuashonraigh an uimhir leagan i `django/__init__.py` don scaoileadh. \<2719a7f8c161233f45d34b624a9df9392c86cc1b\>Féach le do thoil [nótaí maidir le feadán VERSION a shocraí](#notes-on-setting-the-version-tuple) thíos le haghaidh sonraí faoi VERSION\` (:commit: example commit ).

   1. If this is a pre-release package also update the "Development Status"
      trove classifier in `pyproject.toml` to reflect this. An `rc`
      pre-release should not change the trove classifier ([example
      commit for alpha release](https://github.com/django/django/commit/759921c8e9ad151932fc913ab429fef0a6112ef8),
      [example commit for beta release](https://github.com/django/django/commit/25fec8940b24107e21314ab6616e18ce8dec1c1c)).
   2. Seachas sin, déan cinnte go bhfuil an aicmitheoir socraithe go `Stádas Forbartha:: 5 - Táirgeacht/Cobhsa`.

### Building the artifacts

> **Optionally use helper scripts**
>
> You can streamline some of the steps below using helper scripts from the
> `scripts` folder:
>
> - Release script example run:
>
> ```shell
> $ PGP_KEY_ID=<key-id> PGP_KEY_URL=<key-url> DEST_FOLDER=~/releases scripts/do_django_release.py
> ```
>
> - Verify the release (after artifacts were uploaded):
>
> ```shell
> $ VERSION=5.2.1 scripts/verify_release.sh
> ```

1. Clibeáil an scaoileadh ag baint úsáide as `git tag`. Mar shampla:

   ```shell
   $ git tag --sign --message="Tag 4.1.1" 4.1.1
   ```

   \<tag\>Is féidir leat do chuid oibre a sheiceáil ag rith git tag --verify .
2. Déan cinnte go bhfuil crann go hiomlán glan agat trí git clean -dfx\` a reáchtáil.
3. Run `python -m build` to generate the release packages. This will create
   the release artifacts (tarball and wheel) in a `dist/` directory. For
   Django 5.0 or older, you need to run `make -f extras/Makefile` instead.
4. Ginigh hashes na bpacáistí scaoilte:

   ```shell
   $ cd dist
   $ md5sum *
   $ sha1sum *
   $ sha256sum *
   ```
5. Cruthaigh comhad “checksums”, `Django- <<VERSION> > .checksum.txt` ina bhfuil na hashes agus scaoil faisnéis. Tosaigh leis an teimpléad seo agus cuir isteach an leagan ceart, an dáta, an ID eochair GPG (ó gpg --list-keys --keyid-format LONG \`), ainm úsáideora GitHub bainisteora scaoilte, URL scaoilte, agus seicsuimeanna:

   ```text
   This file contains MD5, SHA1, and SHA256 checksums for the source-code
   tarball and wheel files of Django <<VERSION>>, released <<DATE>>.

   To use this file, you will need a working install of PGP or other
   compatible public-key encryption software. You will also need to have
   the Django release manager's public key in your keyring. This key has
   the ID ``XXXXXXXXXXXXXXXX`` and can be imported from GitHub, for example,
   if using the open-source GNU Privacy Guard implementation of PGP:

       curl https://github.com/<<RELEASE MANAGER GITHUB USERNAME>>.gpg | gpg --import -

   Once the key is imported, verify this file:

       gpg --verify <<THIS FILENAME>>

   Once you have verified this file, you can use normal MD5, SHA1, or SHA256
   checksumming applications to generate the checksums of the Django
   package and compare them to the checksums listed below.

   Release packages
   ================

   https://www.djangoproject.com/download/<<VERSION>>/tarball/
   https://www.djangoproject.com/download/<<VERSION>>/wheel/

   MD5 checksums
   =============

   <<MD5SUM>>  <<RELEASE TAR.GZ FILENAME>>
   <<MD5SUM>>  <<RELEASE WHL FILENAME>>

   SHA1 checksums
   ==============

   <<SHA1SUM>>  <<RELEASE TAR.GZ FILENAME>>
   <<SHA1SUM>>  <<RELEASE WHL FILENAME>>

   SHA256 checksums
   ================

   <<SHA256SUM>>  <<RELEASE TAR.GZ FILENAME>>
   <<SHA256SUM>>  <<RELEASE WHL FILENAME>>
   ```
6. \<version\>Sínigh an comhad seiceála (`gpg --clearsign --digest-algo SHA256 Django- .checksum.txt`). \<version\>Gineann sé seo doiciméad sínithe, `Django- <version>.checksum.txt.asc` ar féidir leat a fhíorú ansin ag baint úsáide as `gpg --verify Django- .checksum.txt.asc`.

## An scaoileadh (í) a chur ar fáil don phobal

Anois tá tú réidh chun an scaoileadh a chur amuigh ansin i ndáiríre. Chun seo a dhéanamh:

1. Create a new `Release` entry in the [djangoproject.com's admin](https://www.djangoproject.com/admin/releases/release/add/). If this is a
   security release, this should be done 15 minutes before the announced
   release time, no sooner:

   **Leagan**

     Must match the version number as defined in the tarball
     (`django-<version>.tar.gz`). For example: "5.2", "4.1.1", or "4.2rc1".

   **Is active**

     Set to False until the release is fully published (last step).

   **LTS**

     Enable if the release is part of an LTS (Long Term Support)
     branch.

   **Dates**

     Set the release date to today. This release will not be published until
     `is_active` is enabled.

   **Artifacts**

     Upload the tarball (`django-<version>.tar.gz`), wheel
     (`django-<version>-py3-none-any.whl`), and checksum
     (`django-<version>.checksum.txt.asc`) files created earlier.
2. Test that the release packages install correctly using `pip`. Here's one
   simple method (this just tests that the binaries are available, that they
   install correctly, and that migrations and the development server start, but
   it'll catch silly mistakes):
   <https://code.djangoproject.com/wiki/ReleaseTestNewVersion>.
3. Rith an tógáil  ar Jenkins chun an comhad (í) seicsum a fhíorú (m.sh. bain úsáid as 4.2rc1\` le haghaidh <https://media.djangoproject.com/pgp/Django-4.2rc1.checksum.txt>).
4. Upload the release packages to PyPI:

   ```shell
   $ twine upload --repository django dist/*
   ```
5. Update the newly created `Release` in the admin in `djangoproject.com`
   and enable the `is_active` flag.
6. Brúigh do chuid oibre agus an chlib nua:

   ```shell
   $ git push
   $ git push --tags
   ```
7. Déan an blag post ag fógairt an scaoileadh beo.
8. Le haghaidh scaoileadh leagan nua (m.sh. 4.1, 4.2), nuashonraigh an leagan cobhsaí réamhshocraithe de na doiciméid tríd an bhratach `is_default` a fhilleadh go True\` ar an réad cuí DocumentRelease\` sa bhunachar sonraí docs.djangoproject.com (déanfaidh sé seo go huathoibríoch go False\` do gach duine eile).

   Cruthaigh rudaí nua `DocumentRelease` do gach teanga a bhfuil iontráil aige don eisiúint roimhe seo. Nuashonraigh comhad  djangoproject.com tríd an toradh a ghintear ón ordú manage\_translations.py robots\_txt\` a reáchtáil sa bhrainse chobhsaí reatha ón stóras . Mar shampla, agus Django 4.2 á scaoileadh:

   ```shell
   $ git checkout stable/4.2.x
   $ git pull
   $ python manage_translations.py robots_txt
   ```
9. Post the release announcement to the [django-announce](/ga/6.0/internals/mailing-lists/#django-announce-mailing-list) mailing list and the
   Django Forum. This should include a link to the announcement blog post.
10. If this is a security release, publish the CVE metadata. (The
    [checklist app](#checklist-generator) generates JSON for this.):

    ```shell
    $ cve publish <cve-number> --cve-json-file <path-to-file>
    ```
11. If this is a security release, send a separate email to
    `oss-security@lists.openwall.com`. Provide "Django" plus the CVE IDs in
    the subject line. The message body should include the vulnerability details,
    for example, the announcement blog post text. Include a link to the
    announcement blog post.

## Iar-scaoileadh

Tá tú beagnach déanta! Níl le déanamh anois ach:

1. If this is not a pre-release, update the `VERSION` tuple in
   `django/__init__.py` again, incrementing to whatever the next expected
   release will be. For example, after releasing 4.1.1, update `VERSION` to
   `VERSION = (4, 1, 2, 'alpha', 0)` ([example commit](https://github.com/django/django/commit/a4d19953d46247ee1992b3427fe652e941524272)).
2. If this was an alpha release:

   1. Add the feature release version in [Trac's versions list](https://code.djangoproject.com/admin/ticket/versions).
   2. Create a new security branch from the freshly cut stable branch. Be sure
      to fetch and update `upstream` to latest. For example, after the 5.2
      alpha release:

      ```shell
      $ git fetch upstream
      $ git checkout -b security/5.2.x upstream/stable/5.2.x
      $ git push origin -u security/5.2.x:security/5.2.x
      ```
3. Más scaoileadh deiridh é seo:

   1. Update the `default_version` setting in the code.djangoproject.com's
      `trac.ini` file ([example PR](https://github.com/django/code.djangoproject.com/pull/268)).
   2. Update the current stable branch and remove the pre-release branch in the
      [Django release process](https://code.djangoproject.com/#Djangoreleaseprocess) on Trac.
   3. \< <https://github.com/django/djangoproject.com/pull/1444>\>Nuashonraigh leathanach íoslódála djangoproject.com ().
   4. Process the older versions that will reach End-Of-Mainstream and/or
      End-Of-Life support when this final release is published:

      1. Ensure that the EOL versions are mentioned in the blog post. See
         [example announcement](https://www.djangoproject.com/weblog/2025/apr/02/django-52-released/).
      2. Create a tag for the EOL stable branch and delete the stable branch.
         Inspect and use the `scripts/archive_eol_stable_branches.py` helper.
4. Más scaoileadh slándála a bhí ann, déan nuashonraithe:doc: /releases/security le sonraí na saincheisteanna a ndearnadh aghaidh orthu.
5. If this was a pre-release, the translation catalogs need to be updated:

   1. Make a new branch from the recently released stable branch:

      ```shell
      $ git checkout stable/A.B.x
      $ git checkout -b update-translations-catalog-A.B.x
      ```
   2. Ensure that the release's dedicated virtual environment is enabled and
      run the following:

      ```shell
      $ cd django
      $ django-admin makemessages -l en --domain=djangojs --domain=django
      processing locale en
      ```
   3. Make a pull request against the corresponding stable branch and merge
      once approved.
   4. Forward port the updated source translations to the `main` branch
      ([example commit](https://github.com/django/django/commit/aed303aff57ac990894b6354af001b0e8ea55f71)).
6. If this was an `alpha` pre-release, coordinate with the maintainer of
   [asgiref](https://pypi.org/project/asgiref/) to determine when to raise the minimum version before the
   final release. For the backport, add an upper bound on the next major
   version (example commits:
   [main](https://github.com/django/django/commit/df35cf578f99522dd1ba864d513be95d47bab7a5),
   [backport](https://github.com/django/django/commit/e5d2664908164d51d2daa46e375da8b6a93def03)).
7. If this was an `rc` pre-release, call for translations for the upcoming
   release in the [Django Forum - Internationalization category](https://forum.djangoproject.com/c/internals/i18n/14).

## Nótaí maidir leis an tuple VERSION a shocrú

Tá tuairisciú leagan Django á rialú ag an tuipéal `VERSION` i django/\_\_init\_\_.py\`. Is tuple cúig ghné é seo, a bhfuil a n-eilimintí:

1. Leagan mór.
2. Leagan mion.
3. Leagan micrea-leagan.
4. Stádas - is féidir a bheith ar cheann de “alfa”, “béite”, “rc” nó “críochnaitheach”.
5. Uimhir an tsraith, le haghaidh pacáistí alpha/beta/RC a ritheann i seicheamh (ag ceadú, mar shampla, “béita 1", “béite 2", srl.).

Le haghaidh scaoileadh deiridh, bíonn an stádas “deiridh” i gcónaí agus is é uimhir na sraithe i gcónaí 0. Tuairiscítear uimhir shraith 0 le stádas “alfa” mar “réamh-alfa”.

Roinnt samplaí:

- `(4, 1, 1, “deiridh”, 0)` → “4.1.1"
- `(4, 2, 0, “alfa”, 0)` → “4.2 réamh-alfa”
- `(4, 2, 0, “béite”, 1)` → “4.2 béite 1"
