#18455: Form media rendering doesn't respect STATICFILES_STORAGE
------------------------+--------------------------------------------------
Reporter: djw | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Design decision needed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------+--------------------------------------------------
Changes (by aaugustin):
* stage: Unreviewed => Design decision needed
Comment:
By importing `django.contrib.staticfiles` in `django.forms`, you're adding
a dependency of core on contrib. This is at best frowed upon, at worst
prohibited.
----
> if the backend has been initialised before these tests run, it doesn't
respect the new values of STATIC_URL and MEDIA_URL, so the tests fail.
What's the best way to go about fixing this?
We should add a listener on the `setting_changed` signal that resets
caches that depend on STATIC_URL or MEDIA_URL.
--
Ticket URL: <https://code.djangoproject.com/ticket/18455#comment:4>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.