#32304: Django adds spurious "/" prefix to settings.STATIC_URL="http://server/";
----------------------------------------+------------------------
               Reporter:  Adam Hooper   |          Owner:  nobody
                   Type:  Bug           |         Status:  new
              Component:  Core (Other)  |        Version:  3.1
               Severity:  Normal        |       Keywords:
           Triage Stage:  Unreviewed    |      Has patch:  0
    Needs documentation:  0             |    Needs tests:  0
Patch needs improvement:  0             |  Easy pickings:  0
                  UI/UX:  0             |
----------------------------------------+------------------------
 Here's a piece of settings from a totally reasonable, sensible, okay
 Docker integration-test environment

 {{{
 STATIC_URL = "http://minio/static/";
 }}}

 Django 3.1 will implicitly add "/" to the URL, so my URLs look like
 ""/http://minio/static/images/app-icons/favicon.ico";.

 The features and bugs that interact here:

 * commit c574bec, adding feature #25598, prepends SCRIPT_NAME to
 STATIC_URL when STATIC_URL isn't a URL.
 * bug #9202: according to Django, "http://minio/static/"; isn't a valid
 URL. (It is.)

 Top me, the easiest fix is to address #9202....

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32304>
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/053.8eb1bedd563fa20aa973afa5686b69dd%40djangoproject.com.

Reply via email to