#26896: FileSystemStorage no longer accepts reverse_lazy as base_url
--------------------------------------+-----------------------------------
     Reporter:  tpazderka             |      Owner:  nobody
         Type:  Bug                   |     Status:  new
    Component:  File uploads/storage  |    Version:  1.8
     Severity:  Normal                |   Keywords:  storage, reverse_lazy
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+-----------------------------------
 Changes introduced with commit fb9d8f06 fixing #22717 causes
 `FileSystemStorage` to evaluate the content of `base_url` uppon
 initialization.
 This causes issues if the `base_url` is defined as `reverse_lazy` as it is
 resolved and can cause `ImportError`.

 I think that the laziness of the `base_url` should be preserved. Either
 the check for the trailing slash can me moved to path generation or the
 `__init__` can be updated to expect `reverse_lazy` as `base_url`.

--
Ticket URL: <https://code.djangoproject.com/ticket/26896>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.ba7b2916d1be4473628f5f594aaf594a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to