Adjust project template to leverage automatic SCRIPT_NAME prefix for STATIC_URL
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.
Change History
(8)
Has patch: |
set
|
Needs documentation: |
set
|
Severity: |
Release blocker → Normal
|
Triage Stage: |
Unreviewed → Accepted
|
Version: |
3.1 → master
|
Cc: |
Florian Apolloner added
|
Needs documentation: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Thanks. I don't see why this should be a release blocker.
PR