#20678: Broken link for downloading docs as HTML
-------------------------------------+------------------------------------
Reporter: jennyd | Owner: nobody
Type: Bug | Status: new
Component: *.djangoproject.com | Version: 1.5
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+------------------------------------
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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.2c11ee304d15f09864d2fa3415388923%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.