#24243: Allow HashedFilesMixin to handle file name fragments
-------------------------------------+------------------------------------
     Reporter:  atleta               |                    Owner:  atleta
         Type:  New feature          |                   Status:  new
    Component:  contrib.staticfiles  |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+------------------------------------
Changes (by timgraham):

 * needs_better_patch:  0 => 1
 * has_patch:  0 => 1
 * version:  1.7 => master
 * stage:  Unreviewed => Accepted


Comment:

 I'm tentatively accepting this ticket, although I'd like to confirm with
 @jezdez who authored `HashedFilesMixin`.

 As far as I could tell when using it (I tested with
 `CachedStaticFilesStorage`), `{% static 'foo/bar' %}` (that doesn't exist)
 will only cause an error when `DEBUG=False` (without this patch). This
 doesn't seem like a great behavior (errors go undetected until you're
 running in production). A better behavior might be log a warning when
 `DEBUG=True`. With this patch, references to missing files go undetected,
 but at least won't get crashes in production for missing files.

--
Ticket URL: <https://code.djangoproject.com/ticket/24243#comment:15>
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.e44ba74face3a3bdc55176b23850c95c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to