#30745: Allow serving a default file for FileField from static URL.
-------------------------------------+-------------------------------------
     Reporter:  bhch                 |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  File                 |                  Version:  2.2
  uploads/storage                    |
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by bhch):

 The current implementation doesn't return the path relative to
 `STATIC_URL`, but to `MEDIA_URL`. Using `placeholder.png` will return
 `/media/placeholder.png` -- makes it a little difficult for apps to
 distribute a default image.

 Overriding methods is certainly an option; but this seems to be a nice
 little shortcut feature.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30745#comment:2>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.cc29ffab3b4964d05bb03d06a191dd4b%40djangoproject.com.

Reply via email to