#32394: Adjust project template to leverage automatic SCRIPT_NAME prefix for
STATIC_URL
-------------------------------------+-------------------------------------
               Reporter:  Markus     |          Owner:  Markus Holtermann
  Holtermann                         |
                   Type:             |         Status:  assigned
  Cleanup/optimization               |
              Component:             |        Version:  3.1
  contrib.staticfiles                |
               Severity:  Release    |       Keywords:  script_name
  blocker                            |  static_url media_url
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 With #25598, Django will prefix the values of `STATIC_URL` and `MEDIA_URL`
 with `SCRIPT_NAME` if they are relative. For users to leverage this
 feature, they will need to adjust the `STATIC_URL` included in the
 settings.py and remove the leading `/`. I propose to remove the leading
 `/` from the project template to let users benefit from the change right
 away.

 Since the change doesn't affect existing projects, this is fully backwards
 compatible.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32394>
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/050.5011d50b3a7e590202745b94f1c35049%40djangoproject.com.

Reply via email to