#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        |               Resolution:
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------
Description changed by Adam Hooper:

Old description:

> 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....

New description:

 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 and #25418: according to Django, "http://minio/static/"; isn't
 a valid URL. (It is.)

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

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32304#comment:1>
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/068.7b924bddb15acd0191de976b4f457bb5%40djangoproject.com.

Reply via email to