Changes between Initial Version and Version 1 of Ticket #36402


Ignore:
Timestamp:
May 20, 2025, 2:56:50 AM (4 months ago)
Author:
Sarah Boyce
Comment:

The documentation has updated since 2.0 to use a pyproject.toml file but confirmed that the built tarball has an underscore and the typo is still present there: https://docs.djangoproject.com/en/5.2/intro/reusable-apps/#packaging-your-app

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36402

    • Property Triage Stage UnreviewedAccepted
    • Property Summary 文档小bugTypo in generated tarball in packaging your app tutorial
    • Property Type UncategorizedCleanup/optimization
    • Property Version 5.1dev
  • Ticket #36402 – Description

    initial v1  
    11在 https://docs.djangoproject.com/zh-hans/2.0/intro/reusable-apps/ 文档链接 第8小节试着构建你自己的应用包通过 ptyhon setup.py sdist (在 django-polls``目录内)。这将创建一个名为 ``dist 的目录并构建你自己的应用包, django-polls-0.1.tar.gz。  python关键字拼错,让我这让的初学者很懵逼,希望能采纳改进,跟着步骤做的生成的包是django_polls-0.1.tar.gz 是 '_'而不是 '-' 导致我安装 (pip install --user django-polls/dist/django-polls-0.1.tar.gz) 一直找不到文件,希望能把这些错误优化掉,在这里我祝愿 Django团队越来越好!
     2
     3------
     4
     5In the ​https://docs.djangoproject.com/en/2.0/intro/reusable-apps/#packaging-your-app document link, try to build your own application package through `pip setup.py sdist` (in the django-polls directory). This will create a directory called dist and build your own application package, `django-polls-0.1.tar.gz`. The python keyword is misspelled, which makes me, a beginner, very confused. I hope to adopt improvements. The package generated by following the steps is `django_polls-0.1.tar.gz`, which is '_' instead of '-', which caused me to install (`pip install --user django-polls/dist/django-polls-0.1.tar.gz`) and I can't find the file. I hope these errors can be optimized. Here I wish the Django team better and better!
Back to Top