#25553: Add lazy version of admin_static's static
-------------------------------+--------------------
Reporter: dsanders11 | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
To be CDN-friendly (with hashed static file names) it's important to run
[https://docs.djangoproject.com/en/1.8/topics/forms/media/ form assets]
through the static templatetag to get the correct filename. This can be
done via django.contrib.admin.templatetag.admin_static.static, but if any
chain of imports leads to static being invoked during a management command
when the staticfiles are inaccessible (e.g. before collectstatic is
performed) then it will fail to find the file and the command will error.
Lazy version can be used in these situations to lazily get the correct
filename for form assets so that it is not resolved during management
commands.
--
Ticket URL: <https://code.djangoproject.com/ticket/25553>
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/053.eb82dc800e3539f0f79e27985e165dfc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.