--
Ticket URL: <https://code.djangoproject.com/ticket/20678>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/20678#comment:1>
Comment (by claudep):
This is an artifact of the `static` template tag, introduced in
https://github.com/django/djangoproject.com/commit/89b5cc54cbd1ad4ea512428197d1b788bfc3547a
--
Ticket URL: <https://code.djangoproject.com/ticket/20678#comment:2>
Comment (by bmispelon):
This issue was introduced with commit
https://github.com/django/djangoproject.com/commit/89b5cc54cbd1ad4ea512428197d1b788bfc3547a
that switched the site to using `CachedStaticFilesStorage`.
Unfortunately, the code that generates thoses zip files (the `update_docs`
command) is not using the staticfiles machinery, which broke the download
links.
I see two solutions:
1) Revert the download link to use `{{ STATIC_ROOT }}` instead of `{%
static %}`.
2) Change the `update_docs` command to make use of the staticfiles
infrastructure (or at least generate a compatible filename).
I think 2) might be the better option, but after looking into it a bit, I
found it tricky to implement.
--
Ticket URL: <https://code.djangoproject.com/ticket/20678#comment:3>
Comment (by aaugustin):
It could be more appropriate to treat the docs zip archives as media
files.
There're a media attached to a DocumentRelease object.
--
Ticket URL: <https://code.djangoproject.com/ticket/20678#comment:4>
* status: new => assigned
* owner: nobody => jezdez
--
Ticket URL: <https://code.djangoproject.com/ticket/20678#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In
[changeset:"cbe6e5bf02563b0a9332361897f1ebd350a9fa11/djangoproject.com"]:
{{{
#!CommitTicketReference repository="djangoproject.com"
revision="cbe6e5bf02563b0a9332361897f1ebd350a9fa11"
Fixed #20678 - Refer to the zip file correctly. Fixes a regression
introduced in 89b5cc54cbd1ad4ea512428197d1b788bfc3547a and
89b5cc54cbd1ad4ea512428197d1b788bfc3547a.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20678#comment:6>
Comment (by jezdez):
FTR I agree with aaugustin, the download is a "media" IMO.
--
Ticket URL: <https://code.djangoproject.com/ticket/20678#comment:7>