#32175: FORCE_SCRIPT_NAME documentation doesn't explain how the prefix is 
prepended
with regard to relative vs. absolute paths.
-----------------------------------------+-------------------------------
               Reporter:  MasonEgger     |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Documentation  |        Version:  3.1
               Severity:  Normal         |       Keywords:  documentation
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  1
                  UI/UX:  0              |
-----------------------------------------+-------------------------------
 When FORCE_SCRIPT_NAME is set it will prepend the prefix to URLs for
 STATIC_URL and MEDIA_URL. However, if either the static root is an
 absolute path (staring with a /) then this will be completely skipped.
 Since Django defaults to STATIC_URL being set to `/static/` it is not
 obvious that you may need to set this to be `STATIC_URL = "static/"`,
 removing the leading slash.

 The docs should have a note or warning in this section
 https://docs.djangoproject.com/en/3.1/ref/settings/#force-script-name
 explaining this.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32175>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.685753e0b7c2a00f3ba8cb9c66e396f0%40djangoproject.com.

Reply via email to