How to release DjangoLink to this heading
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úLink to this heading
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á:
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.
Cruthléigh na nótaí scaoilte, ag lorg earráidí eagraíochta agus scríbhneoireachta. Blagphost agus fógra ríomhphoist a dhréachtú.
Update version numbers and create the release artifacts.
Create the new
Releasein the admin ondjangoproject.com.Set the proper date but ensure the flag
is_activeis disabled.Upload the artifacts (tarball, wheel, and checksums).
Fíoraigh sínithe pacáiste/na pacáistí, seiceáil an féidir iad a shuiteáil, agus cinntigh íosta feidhmiúlacht.
Uaslódáil an leagan/na leaganacha nua chuig PyPi.
Enable the
is_activeflag for each release in the admin ondjangoproject.com.Postáil iontráil an bhlag agus seol amach na fógraí ríomhphoist.
Update version numbers post-release in stable branch(es).
Add stub release notes for the next patch release in
mainand backport.
Tá go leor sonraí ann, mar sin léigh ar aghaidh le do thoil.
RiachtanaisLink to this heading
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, agussha256sumar Linux, nómd5agus 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”.
A clean Python virtual environment (Python 3.9+) to build artifacts, with these required Python packages installed:
$ python -m pip install build twineAccess to Django's project on PyPI to upload binaries, ideally with extra permissions to yank a release if necessary. Create a project-scoped token following the official documentation and set up your
$HOME/.pypircfile like this:~/.pypirc[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, with a Manager role. Generate an API Token in the user setting section and set up your
$HOME/.transifexrcfile like this:``~/.transifexrc `` [https://www.transifex.com] rest_hostname = https://rest.api.transifex.com token = # API tokenRochtain ar riarachán Django ar
djangoproject.commar “cothabhálaí láithreáin”.Access to create a post in the Django Forum - Announcements category and to send emails to the 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.
Tascanna réamhscaoilteLink to this heading
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álaLink to this heading
Reserve one CVE ID per security issue as follows. (Or, if you lack CNA credentials, email
cna@djangoproject.comwith a request.)Enable virtual environment with cvelib installed.
Export user information:
$ export CVE_USER=<user-email>@djangoproject.com CVE_ORG=DSFReserve:
$ cve --interactive reserve <quantity>
Ginigh an paiste/paistí (príobháideacha) ábhartha ag baint úsáide as
git format-patch, ceann don bhrainsepríomagus ceann do gach brainse chobhsaí atá á phaiteáil.
Seachtain roimh scaoileadh slándálaLink to this heading
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-securityGitHub wiki. BCC the pre-notification recipients, and be sure to include the relevant CVE IDs. Attach all the relevant patches (targetingmainand the stable branches), and sign the email text with the key you'll use for the release, with a command like:$ gpg --clearsign --digest-algo SHA256 prenotification-email.txtNotify django-announce of the upcoming security release with a general message such as:
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-issuesPrepare 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 scaoileadhLink to this heading
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.
Seiceáil leis na cumaisc eile chun a chinntiú nach bhfuil aon athruithe neamhthiomanta acu don scaoileadh.
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.
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.
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`.
If this is a feature release, ensure translations from Transifex have been integrated.
In addition to having a configured Transifex account, ensure that the tx CLI is available in your
PATH. You can then fetch all translations since a given date by running:$ 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 toUpdated translations from Transifexand 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):
$ 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
.poand.mo) and create a new PR targeting the stable branch of the corresponding release (example PR updating translations for 4.2).Once merged, forward port the changes into
main(example commit).<django-admin-manpage>:ref: `Nuashonraigh an leathanach lámhleabhar django-admin `:
$ cd docs $ make man $ man _build/man/django-admin.1 # do a quick sanity check $ cp _build/man/django-admin.1 man/django-admin.1agus ansin an leathanach fear athraithe a thiomnú.
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 repository. For example, when releasing Django 4.2:
$ git checkout -b stable/4.2.x origin/stable/4.1.x $ git push origin stable/4.2.x:stable/4.2.xScrí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: `sampla fógra scaoilte slándála `__, `sampla fógra scaoilte rialta `__, `fógra réamh-scaoilte sampla`__.
A few days before a feature freezeLink to this heading
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:
Update the
VERSIONtuple indjango/__init__.py, incrementing to the next expected release (example commit).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).
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).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 aRefs #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).Increase the default PBKDF2 iterations in
django.contrib.auth.hashers.PBKDF2PasswordHasherby 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).
Concrete examples for past feature release bootstrap branches: 5.2 bootstrap, 5.1 bootstrap, 5.0 bootstrap.
Feature freeze tasksLink to this heading
Remove empty sections from the release notes (example commit).
Build the release notes locally and read them. Make any necessary change to improve flow or fix grammar (example commit).
Create a new stable branch from
main. Be sure to fetch and updateupstreamto latest. For example, when feature freezing Django 5.2:$ git fetch upstream $ git checkout -b stable/5.2.x upstream/main $ git push upstream -u stable/5.2.x:stable/5.2.xAt the same time, update the
django_next_versionvariable indocs/conf.pyon the stable release branch to point to the new development version. For example, when creatingstable/5.2.x, setdjango_next_versionto'6.0'on the new stable branch (example commit).Create
Releaseentries for the next version in the `admin`__ ondjangoproject.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. TheX.Yroadmap page will be available at/download/X.Y/roadmap/.For example, when creating
stable/5.2.x, addReleaseentries for6.0a1,6.0b1,6.0rc1, and6.0. The6.0roadmap can be then reviewed at https://www.djangoproject.com/download/6.0/roadmap/.Go to the `Add document release page in the admin`__, create a new
DocumentReleaseobject for the English language for the newly createdReleaseobject. Do not mark this as default.Add the new branch to Read the Docs. 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.xand set it as active. See more details.Create a PR on PyPI proposing the new Trove classifier. For example
Framework :: Django :: 5.2.Update the current branch under active development and add pre-release branch in the Django release process on Trac.
Update the
docs/fixtures/doc_releases.jsonJSON 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). This will be merged after the final release.
I ndáiríre an scaoilteLink to this heading
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.
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.
Glan na nótaí scaoilte don eisiúint seo. Déan na hathruithe seo i
príomagus backport chuig gach brainse ina bhfuil na nótaí scaoilte do leagan áirithe suite.<1994a2643881a9e3f9fa8d3e0794c1a9933a1831>Le haghaidh scaoileadh gné, bain an ceannteideal
UNDER DEVELOPMENTag 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 `).<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 `).
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:
$ git checkout stable/4.1.x $ git pullMá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:$ 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álaina 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>).Nuashonraigh an uimhir leagan i
django/__init__.pydon scaoileadh. <2719a7f8c161233f45d34b624a9df9392c86cc1b>Féach le do thoil nótaí maidir le feadán VERSION a shocraí thíos le haghaidh sonraí faoi VERSION` (:commit: `example commit `).If this is a pre-release package also update the "Development Status" trove classifier in
pyproject.tomlto reflect this. Anrcpre-release should not change the trove classifier (example commit for alpha release, example commit for beta release).Seachas sin, déan cinnte go bhfuil an aicmitheoir socraithe go
Stádas Forbartha:: 5 - Táirgeacht/Cobhsa.
Building the artifactsLink to this heading
Clibeáil an scaoileadh ag baint úsáide as
git tag. Mar shampla:$ 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 ``.
Déan cinnte go bhfuil crann go hiomlán glan agat trí git clean -dfx` a reáchtáil.
Run
python -m buildto generate the release packages. This will create the release artifacts (tarball and wheel) in adist/directory. For Django 5.0 or older, you need to runmake -f extras/Makefileinstead.Ginigh hashes na bpacáistí scaoilte:
$ cd dist $ md5sum * $ sha1sum * $ sha256sum *Cruthaigh comhad “checksums”,
Django- <<VERSION> > .checksum.txtina 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: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>><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.ascar féidir leat a fhíorú ansin ag baint úsáide asgpg --verify Django- .checksum.txt.asc.
An scaoileadh (í) a chur ar fáil don phobalLink to this heading
Anois tá tú réidh chun an scaoileadh a chur amuigh ansin i ndáiríre. Chun seo a dhéanamh:
Create a new
Releaseentry in the djangoproject.com's admin. 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 branch.
- Dates
Set the release date to today. This release will not be published until
is_activeis 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.
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.Rith an tógáil `confirm-release`__ 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).
Upload the release packages to PyPI:
$ twine upload --repository django dist/*Update the newly created
Releasein the admin indjangoproject.comand enable theis_activeflag.Brúigh do chuid oibre agus an chlib nua:
$ git push $ git push --tagsDéan an blag post ag fógairt an scaoileadh beo.
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_defaulta 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
DocumentReleasedo gach teanga a bhfuil iontráil aige don eisiúint roimhe seo. Nuashonraigh comhad `robots.docs.txt`__ 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 `django-docs-translationy`__. Mar shampla, agus Django 4.2 á scaoileadh:$ git checkout stable/4.2.x $ git pull $ python manage_translations.py robots_txtPost the release announcement to the django-announce mailing list and the Django Forum. This should include a link to the announcement blog post.
If this is a security release, publish the CVE metadata. (The checklist app generates JSON for this.):
$ cve publish <cve-number> --cve-json-file <path-to-file>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-scaoileadhLink to this heading
Tá tú beagnach déanta! Níl le déanamh anois ach:
If this is not a pre-release, update the
VERSIONtuple indjango/__init__.pyagain, incrementing to whatever the next expected release will be. For example, after releasing 4.1.1, updateVERSIONtoVERSION = (4, 1, 2, 'alpha', 0)(example commit).If this was an alpha release:
Add the feature release version in Trac's versions list.
Create a new security branch from the freshly cut stable branch. Be sure to fetch and update
upstreamto latest. For example, after the 5.2 alpha release:$ 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
Más scaoileadh deiridh é seo:
Update the
default_versionsetting in the code.djangoproject.com'strac.inifile (example PR).Update the current stable branch and remove the pre-release branch in the Django release process on Trac.
< https://github.com/django/djangoproject.com/pull/1444>Nuashonraigh leathanach íoslódála djangoproject.com (`sampla PR`__).
Process the older versions that will reach End-Of-Mainstream and/or End-Of-Life support when this final release is published:
Ensure that the EOL versions are mentioned in the blog post. See example announcement.
Create a tag for the EOL stable branch and delete the stable branch. Inspect and use the
scripts/archive_eol_stable_branches.pyhelper.
Más scaoileadh slándála a bhí ann, déan nuashonraithe:doc: `/releases/security `le sonraí na saincheisteanna a ndearnadh aghaidh orthu.
If this was a pre-release, the translation catalogs need to be updated:
Make a new branch from the recently released stable branch:
$ git checkout stable/A.B.x $ git checkout -b update-translations-catalog-A.B.xEnsure that the release's dedicated virtual environment is enabled and run the following:
$ cd django $ django-admin makemessages -l en --domain=djangojs --domain=django processing locale enMake a pull request against the corresponding stable branch and merge once approved.
Forward port the updated source translations to the
mainbranch (example commit).
If this was an
alphapre-release, coordinate with the maintainer of 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, backport).If this was an
rcpre-release, call for translations for the upcoming release in the Django Forum - Internationalization category.
Nótaí maidir leis an tuple VERSION a shocrúLink to this heading
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í:
Leagan mór.
Leagan mion.
Leagan micrea-leagan.
Stádas - is féidir a bheith ar cheann de “alfa”, “béite”, “rc” nó “críochnaitheach”.
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"